A super simple terrain shadergraph for unity's terrain system
Features:
- Made to be used with the unity terrain system.
- Blends by height and angle to make a natural looking terrain
- Six layers: Water, Sand, Grass, Rock, Snow, Cliffs
- Includes normal map slots to make a realistic looking terrain
- Includes metallic and smoothness settings for each different layer
- Cliffs use a triplanar node to prevent texture warping
- Made using only Unity's default nodes, nothing fancy, it just works.
How to use:
- Make a material with the shader
- Place the material into the material slot in your terrain's settings
- The height value is determined by the height of your terrain in the terrain settings i.e. if your terrain is 5000 units high you would set the values to something like water 500, sand 1000, grass 2000, rock 3000, snow 4000, etc
Note: Because the cliffs use a triplanar node the scale value is reversered so intead of using a value like 10 you'll use a value like 0.01
Credits
- I improved upon the terrain shader created by Snubber here: https://github.com/jacklaplante/Unity-URP-Terrain-Shader