I was trying to use this shader but it came out that it makes some artifacts - I can see object through my terrain in scene but its hidden in game mode.
I am using Unity 2017, I’ve created new material with this shader and added it to a terrain, than I have added transparent texture to it but its not working properly, did I miss something ?
Hi,
well I have the same effect. Its the same if you use the “Build In Legacy Diffuse” Material settings of the terrain.
Maybe the above shader uses the legacy base shader.
Maybe look at the build in shader and play around with the dependency shader.
I cant test this because I’m a little bit busy because of our current project. I’m sorry!
If you find a solution please let me know.
Hello !
it do’esn’t work at all for me…
I’ve created a shader, putted you code into,
in unity i get this : [quote]
Shader warning in ‘Nature/Terrain/Diffuse’: Unrecognized #pragma surface directive: standard at line 26
[/quote]
i’ve created a completely transparent bmp with a black alpha, and checked alpha is transparency in the inspector