Terrain.Layer Shader
The Terrain.Layer shader is used for painting and blending terrain texture layers in a level. Besides needing a bump map and high-passed diffuse map, the Terrain.Layer shader also requires a height map with either offset bump mapping (OBM) or parallax occlusion mapping (POM) enabled. Blending uses the height map to determine how the materials blend together. For example, if you have pebbles on one material and dirt as another, you may want the pebbles to accurately stand out from the dirt.
Here are a few notes regarding usage of this shader:
-
The Detail normals texture is not an external texture, but rather a texture generated by Lumberyard through code.
-
The Decal parameters don't appear under Shader Params unless you put a texture into the Decal slot first. The Decal Bumpmap slot also appears after this task.
-
Flow map textures go in the Detail slot.
Shader Parameters
- Blend Factor
-
Changes the visibility of the blended layer. A height map is required. OBM or OBM shader generation parameter must be enabled first.
Default value: 0
- Blend Falloff
-
Changes the falloff of blending. A height map is required. OBM or OBM shader generation parameter must be enabled first.
Default value: 1
- Detail bump scale
-
Detail mapping shader generation parameter must be enabled first.
Default value:
- Detail gloss scale
-
Detail mapping shader generation parameter must be enabled first.
Default value:
- DetailTextureStrength
-
Sets the strength of the diffuse map, which dictates how much detail texture is visible over the layer texture. The higher the value, the more you see only your Diffuse map.
Default value: 1
- Height bias
-
POM shader generation parameter must be enabled first.
Default value: 0.5
- Indirect bounce color
-
Sets the amount of indirectly bounced color
Default value: 136,136,136
-
Default value:
- OBM Displacement
-
OBM shader generation parameter must be enabled first.
Default value: 0.01
- POM Displacement
-
POM shader generation parameter must be enabled first.
Default value: 0.01
- Self shadow strength
-
POM shader generation parameter must be enabled first.
Default value: 3
Shader Generation Parameters
- Offset bump mapping (OBM)
-
Uses offset bump mapping. Requires a height map (_displ format).
- Detail mapping
-
Uses detail mapping.
- Parallax occlusion mapping (POM)
-
Uses parallax occlusion mapping. Requires a height map (_displ format).