- Home /
Question by
matmuze · Jan 16, 2015 at 03:14 AM ·
camerarender texturedepth buffer
How to access the RenderTexture of the _CameraDepthTexture
Hi there,
I would like to access the RenderTexture of the _CameraDepthTexture which is automatically bound to shaders.
I am interested in this because I use the function Graphics.DrawProcedural to draw some geometries and does not automatically update the camera depth buffer so called _CameraDepthTexture.
So my wish is to enable Graphics.SetRandomWriteTarget for this render texture in order to be able to modify this depth texture and use all the post-processing shader wihtout having to rewrite them.
Do you guys know if there is some kind of handle to this _CameraDepthTexture available somewhere ?
Best wishes, Mat.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613180456im_/https://answers.unity.com/themes/thub/images/avi.jpg)