mNo edit summary Tags: Visual edit apiedit |
(Updated Github links) Tags: Visual edit apiedit |
||
(3 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
</gallery> |
</gallery> |
||
[[File:Urho_Terrain_Quad_Images.jpg|thumb|center|500px]] |
[[File:Urho_Terrain_Quad_Images.jpg|thumb|center|500px]] |
||
− | This is based on the [[Quad Textures|four textures in one image technique]]. The terrain shader shipped with Urho is extended with normal, specular and |
+ | This is based on the [[Quad Textures|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.<br> |
+ | 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/ |
+ | There is a material testing project using this: https://github.com/damu/Urho_Material_Test/tree/046d9fd50fc1fb11ed6d3274fc7f66f975fb5bef<br> |
+ | The Blender files used to create the materials are also in there, in /blends. |
||
Direct links to material related files: |
Direct links to material related files: |
||
− | *Material file: https://github.com/ |
+ | *Material file: https://github.com/damu/Urho_Material_Test/blob/046d9fd50fc1fb11ed6d3274fc7f66f975fb5bef/Build/bin/Data/Materials/Terrain_quad_dsnh.xml |
− | *Technique file: https://github.com/ |
+ | *Technique file: https://github.com/damu/Urho_Material_Test/blob/046d9fd50fc1fb11ed6d3274fc7f66f975fb5bef/Build/bin/Data/Techniques/TerrainBlend_quad_dsnh.xml |
− | *GLSL Shader: https://github.com/ |
+ | *GLSL Shader: https://github.com/damu/Urho_Material_Test/blob/046d9fd50fc1fb11ed6d3274fc7f66f975fb5bef/Build/bin/Data/Shaders/GLSL/TerrainBlend_quad_dsnh.glsl |
− | *Grass texture: https://raw.githubusercontent.com/ |
+ | *Grass texture: https://raw.githubusercontent.com/damu/Urho_Material_Test/master/Build/bin/Data/Textures/blender_grass_quad.jpg |
− | *Bricks texture: https://raw.githubusercontent.com/ |
+ | *Bricks texture: https://raw.githubusercontent.com/damu/Urho_Material_Test/master/Build/bin/Data/Textures/blender_bricks_quad.jpg |
− | *Sand texture: https://raw.githubusercontent.com/ |
+ | *Sand texture: https://raw.githubusercontent.com/damu/Urho_Material_Test/master/Build/bin/Data/Textures/blender_sand_quad.jpg |
− | *Splatting texture: https://raw.githubusercontent.com/ |
+ | *Splatting texture: https://raw.githubusercontent.com/damu/Urho_Material_Test/master/Build/bin/Data/Textures/splatting.png |
Latest revision as of 01:44, 12 March 2016
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: https://raw.githubusercontent.com/damu/Urho_Material_Test/master/Build/bin/Data/Textures/blender_grass_quad.jpg
- Bricks texture: https://raw.githubusercontent.com/damu/Urho_Material_Test/master/Build/bin/Data/Textures/blender_bricks_quad.jpg
- Sand texture: https://raw.githubusercontent.com/damu/Urho_Material_Test/master/Build/bin/Data/Textures/blender_sand_quad.jpg
- Splatting texture: https://raw.githubusercontent.com/damu/Urho_Material_Test/master/Build/bin/Data/Textures/splatting.png