Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

Multiple RenderTexture and depth buffer

$
0
0
Is it possible to write to one depthBuffer and multiple colorbuffers using RenderTexture objects? In my project I have two RenderTexture objects assigned to separate camera texture targets. Within Start() method my second camera sets: `camera.SetTargetBuffers(camera.targetTexture.colorBuffer, firstcamera.targetTexture.depthBuffer);` The final result is of course put in camera.targetTexture, but unfortunately without taking into consideration the depthBuffer information from the first camera. Any ideas why it isn't working?

Viewing all articles
Browse latest Browse all 171066

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>