- Home /
Rendering to DepthTextureMode.Depth
When a camera's depthTextureMode is set to DepthTextureMode.DepthNormals you can render to that depth+normals texture by targeting BuiltinRenderTextureType.DepthNormals from a command buffer.
However when the depthTextureMode is set to DepthTextureMode.Depth I would expect that it renders to BuiltinRenderTextureType.Depth but that target appears to not exist for that camera (I get a console warning about it). BuiltinRenderTextureType.ResolvedDepth also isn't it. And it also doesn't appear to be the actual depth buffer for the camera either as I'm already outputting depth to that via SV_DEPTH but when I setup an ImageEffect that just uses camera depth and displays it the values I wrote to the cameras depth buffer are not there.
What I missing/misunderstanding?
Thanks, Andrew.
Your answer
Follow this Question
Related Questions
Depth Rendering Issue 0 Answers
Image effects do not work when rendering with multiple cameras 0 Answers
Camera depthbuffer question. 0 Answers
Scene View Camera Depth Texture? 0 Answers