I have 2 cameras, set to use different culling masks, and my MainCamera is set to:
Clear Flags = Solid Color
Depth = 0
the second camera is set to:
Clear Flags = Depth only
Depth = 1
So the second camera’s view is shown overlaid the first camera view. That much works fine. The problem is that shaders and directional lights seem to work differently for the second camera. Either my meshes are all washed out bright, are black or dark grey. I can’t get the shaders to work the same for both camera. Trial and error at this point. I have tried vertex lit, diffuse fast, several of the iphone shaders. I have just 1 directional light in the scene.
So what kind of special requirements does a depth only camera add to the shader and or light setup in the scene?
Any suggestions would be appreciated. Thanks!