- Home /
unity 5 terrain shaders
Hi, I just moved my game to unity 5 and the terrain used to have a specular sparkle look to it in the light. It was sparkling sand. Now the specular shader looks incredibly flat. The terrain is not sparkling at all anymore. On top of that some particles wont render if they are close to the terrain. I know the shading was switched to PBR, but is there no way to get the sparkling effect back? also what shader should I use for a slash attack sprite that I want to alpha fade out. I was using particles alpha blend but this shader wont render in certain positions anymore...
Is there really no way to get the terrain to be specular anymore? Any advice on this would be great.
Is it possible to write or use my own shaders for the terrain? or even the old shaders from unit 4?
Answer by ODINKONG · Mar 07, 2015 at 10:04 PM
Ok I figured it out. I was using code to change the material type. The code in unity 4 for this only needs the line. terr.materialTemplate = (Material)Resources.Load ("materials/sand");
But in unity 5 I had to change it to this terr.materialType = Terrain.MaterialType.Custom; terr.materialTemplate = (Material)Resources.Load ("materials/sand"); just a simple API change
Answer by Avash · Mar 07, 2015 at 08:38 PM
No, there never has been and never will be. Jk you can add specular with an shader like Relief Terrain Pack or such. There never was a built in specular map support but a new terrain system has been confirmed: http://forum.unity3d.com/threads/official-new-terrain-system.255232/
Ok that's awesome, but there was this shine on the bump map in unity 4 for the terrain that was present before and now its not. on the right is the sand I had In unity 4 and on the left is the sand I have now in unity 5. Its the same texture but its not shiny anymore. Is there a way to make it shiny in unity 5.
Answer by tanoshimi · Mar 07, 2015 at 10:54 PM
For the old v4 specular terrain shader, select Built-In Legacy Specular. And yes, you can write your own terrain shaders - select Custom.
Your answer
Follow this Question
Related Questions
How to remove unwanted shine (smoothness) on terrain? 7 Answers
Unity 5 upgrade broke lightmapped shader 1 Answer
Billboard trees glow white in dark scene. 2 Answers
Adding a static fog in the bottom of a terrain 1 Answer
FX/Flare is always on top 0 Answers