- Home /
OnRenderImage with multi camera
Hey,that's a problem when i use OnRenderImage.
There are 2 cameras in my scene.“A” camera only render the layer “Terrain” with depth -1 and clear with skybox.
And “B” Camera render others with depth 0 and clear nothing. Well,all the things wrok correctly.
Than I use OnRenderImage in "A" to get a decal effect only on the terrain,but on the screen I CAN'T see the decal......The shader is same as shadowmap.
I'm sure the decal shader is right because I can see the decal on the ground when I disable the camera B.
So......Why OnRenderImage can't work correctly when there is another Camera with larger depth?
Your answer

Follow this Question
Related Questions
I'm trying to get a picture in game and display it on a plane 2 Answers
dynamic hole in layer / texture / camera 0 Answers
Image Effect Scripts on a separate object from Camera 1 Answer
Adding an image effect at run time with script usingUnity 5 1 Answer
Why does camera not register color until objects are close up? 0 Answers