Hi,
Long story short, I am trying to modify the waving algorithm for grass objects on the terrain. I’ve managed to do this by altering the built-in WavingDoublePass.shader. Unfortunately, these modifications do not transfer over to the _CameraDepthTexture as rendered by the built-in Camera-DepthTexture.shader. I have modified this shader as well to refer to the modified waving algorithm and things look great when I run my project in the Unity Editor.
Sadly, when I build my project the engine does not use my modified Camera-DepthTexture.shader! I worried that perhaps it was using the Camera-DepthNormalTexture.shader so I modified that as well but to no avail. Other things I have tried are making alterations to the TerrainEngine.cginc file itself (but this has no effect until the shaders are recompiled).
Hopefully someone can help.
Thanks.