- Home /
Can't get _LastCameraDepthTexture to work
Hi everyone, I want to use a secondary's camera depth in a shader but I always get my main camera's depth, _CameraDepthTexture and _LastCameraDepthTexture both get me the same result. According to documentation _LastCameraDepthTexture should return a half-resolution depth buffer of the camera that rendered last. I made sure my secondary camera depth is set the highest and I'm not using any render textures. I also tried setting DepthTextureMode.Depth in a script but I always get the same result, main camera depth...
Any help appreciated!
Your answer
Follow this Question
Related Questions
Culling Mask with Depth Occlusion 1 Answer
Use camera depth texture to find distance from camera 0 Answers
How to get depth texture and render texture from one camera 0 Answers
How to get the depth values of the camera view? 1 Answer
Is there a way to write to Deferred Depth from a command buffer in CameraEvent.AfterImageEffects? 1 Answer