This is based on the four textures in one image technique. The terrain shader shipped with Urho is extended with normal, specular and height mapping. The normal mapping code is based on LitBase.glsl.
This material is using four image files to get 13 textures out of them.
There is a material testing project using this: https://github.com/damu/Urho_Material_Test/tree/046d9fd50fc1fb11ed6d3274fc7f66f975fb5bef
The Blender files used to create the materials are also in there, in /blends.
Direct links to material related files:
- Material file: https://github.com/damu/Urho_Material_Test/blob/046d9fd50fc1fb11ed6d3274fc7f66f975fb5bef/Build/bin/Data/Materials/Terrain_quad_dsnh.xml
- Technique file: https://github.com/damu/Urho_Material_Test/blob/046d9fd50fc1fb11ed6d3274fc7f66f975fb5bef/Build/bin/Data/Techniques/TerrainBlend_quad_dsnh.xml
- GLSL Shader: https://github.com/damu/Urho_Material_Test/blob/046d9fd50fc1fb11ed6d3274fc7f66f975fb5bef/Build/bin/Data/Shaders/GLSL/TerrainBlend_quad_dsnh.glsl
- Grass texture:
- Bricks texture:
- Sand texture:
- Splatting texture: