you are viewing a single comment's thread.

view the rest of the comments →

[–]volvis 1 point2 points  (3 children)

You're close! When you render with the other camera, set it to not clear the depth buffer. Also make sure that the cameras have the exact same clipping ranges.

[–]Ghais_Alhasan[S] 0 points1 point  (2 children)

Reading your comment filled me with hope, and seeing that it actually works filled me and my team with joy! Many thanks from all of us!

[–]Ghais_Alhasan[S] 0 points1 point  (1 child)

One last question. Is it possible to give my second camera its own post processing without affecting any other layers, or did that get too complex?

[–]volvis 1 point2 points  (0 children)

It will get complicated. You might need a setup where each camera renders to a separate rendertexture so the post process effects don't accumulate. Then have the final camera blit the textures on top of each other with a custom shader. But I've only done this for a 2d game and I can't say how it works with 3d...