- Home /
Better shader effects on terrain - Bumpmapping or Specular?
Is it possible to get effects like bump-mapping or specular lighting on the surface of a terrain? The built options for the terrain only seems to allow a set of diffuse textures.
Answer by jonas-echterhoff · Nov 18, 2009 at 01:04 PM
Official answer: no.
Unofficial, and more importantly, unsupported answer: it should actually be possible to override the built-in terrain shaders with your own: Download the built-in shaders, and add the Terrain splat shaders to your project, and change them as you like. However, we may at some point in the future decide to change how the shaders in the terrain engine are used - this would break any web players trying to replace them in this matter.
In case new Unity 4.2+ users find this thread, this is no longer true. See this post:
https://www.google.com/#q=unity+terrain+with+custom+shader&safe=active
for a simple official way of using Nature/bump-spec custom terrain material (and additional info on other shaders)
Answer by Kos-Dvornik · May 28, 2013 at 11:42 AM
Yes with Unity 4+. Custom shader and material on terrain. Here is tutorial with mixed global and local normal map: http://kostiantyn-dvornik.blogspot.com/2013/01/unity-4-cool-sweet-terrain-tutorial.html