- Home /
How to use the Terrain Transparency?
I tried to use the
http://wiki.unity3d.com/index.php/TerrainTransparency
But the information the link is giving is kind of short. I just want to make part of my terain invisible (The terrain has only 1 texture).
I have a specific question, I made a new shader with the shader code, what should I do with it? Just leave it in the Assets Library?
Anyway, could somone give me a more detailed explanation on how to make it work?
Thanks in Advance!
-Dan
that script isn't working in U5, i get this error Too many texture interpolators ....
etc
That's because the shader is meant for a much older version of Unity, and as such multiple features won't work as they were originally intended. In order to fix your specific problem, add the following after the surface declaration ("#pragma surface surf...") on a new line;
#pragma target 3.0
//Or if it is still not enough
#pragma target 4.0
Answer by shahinkey · Oct 12, 2013 at 02:56 PM
No Dear, You must create a material and put the shader there. Then move the material to the terrain. It makes the terrain transparent but it will not cast any shadows!!!