Search Unity

Image Effect Shader in Prefab

Discussion in 'Prefabs' started by unity_1CXGnc5jTSMU9Q, Apr 17, 2019.

  1. unity_1CXGnc5jTSMU9Q

    unity_1CXGnc5jTSMU9Q

    Joined:
    Apr 17, 2019
    Posts:
    1
    Good Morning,

    This is my first post and I am new to Unity although I have been working with it for the past year. I have built several scenes and various scripts and I am at the point where I am now trying to clean everything up and make some nice prefabs so I can get my project going. I have created several Image Effect Shaders and I call these in a script in the OnRenderImage step. I want to make a prefab out of my work and I am unable to put the shaders which are dependencies of the prefab into the prefab.

    I am wondering how I can add shaders to a prefab or do I have to make a material and add this? There are no objects in my prefab which have the shaders applied to them as they are used directly on the camera.