- Home /
Question by
armoredpokey · Feb 18, 2014 at 03:25 AM ·
renderingmaterialsshaderlabcamerasvisibility
materials visible if seen by (1) all or (2) any camera(s)
I have multiple cameras in my scene rendering on top of each other.
I would like to create two different materials with the following properties:
A material that is rendered if seen by ALL cameras
A material that is rendered if seen by ANY camera
No matter the render depth of those individual cameras.
This seems relatively simple; in one case, you logical-AND together visibilty, and in the other, you logical-OR. Something tells me it would have to be done on the shader/subshader level using ShaderLab syntax, though, and I don't know too much about that!
Let me know if you know how to do this using ShaderLab (or anything else!)
Comment