Hi, guys:
I am leaning about how to create my own depth texture by replacement shader. It work until i add the clip inside my replacement. What i expect is that i do not want the depth to be draw if there is already a depth which is smaller ( like the ZWrite Less do ). Please help me ! It is very hard to learn shader OMG.
Ths HowardCamera.cs is to create camera at the light postion, and RenderWithShader.
The LightDepthCamer.shader is my replacement shader.
9538237–1346755–LightDepthCamera.shader (1.45 KB)
9538237–1346758–HowardCamera.cs (4.45 KB)