TerrainTextureParameters
Description
- Derived from
-
RenderEffectParameters abstract
Shared render effect parameters for unique multi-texturing of the terrain.
The following low-level render effect parameter slots are always defined (N := TerrainSlotMapping.SlotCount):
-
'g_materialAlbedo', RenderEffectParameterType.Vector4
Texture atlas sources for albedo (RenderEffectParameterType.Vector4):x := terrain layer slot index y := component index for red z := component index for green w := component index for blue
Mapped to TextureSource.
-
'g_materialGloss', RenderEffectParameterType.Vector4
Texture atlas source for gloss:x := terrain layer slot index y := component index for gloss z := scale factor for linear sample value w := offset value for scaled sample value
Mapped to TextureSource.
-
'g_materialNormal', RenderEffectParameterType.Vector4
Texture atlas source for normal:x := terrain layer slot index y := component index for normal X-axis z := component index for normal Y-axis w := component index for normal Z-axis
Mapped to TextureSource.
-
'g_materialOcclusion', RenderEffectParameterType.Vector4
Texture atlas source for ambient occlusion:x := terrain layer slot index y := component index for ambient occlusion z := scale factor for linear sample value w := offset value for scaled sample value
Mapped to TextureSource.
-
'g_materialOpacity', RenderEffectParameterType.Vector4
Texture atlas source for opacity:x := terrain layer slot index y := component index for opacity z := scale factor for linear sample value w := offset value for scaled sample value
Mapped to TextureSource.
-
'g_materialReflectivity', RenderEffectParameterType.Vector4
Texture atlas source for grayscale reflectivity:x := terrain layer slot index y := component index for grayscale reflectivity z := scale factor for linear sample value w := offset value for scaled sample value
Mapped to TextureSource.
-
'g_terrainData', RenderEffectParameterType.Float
Depicts which material values to read from vertex data, instead from texture samples:x := terrain-space normal vectors: 0 : use normal map 1 : use vertex data
Mapped to TerrainSlotMapping.Normal.
-
TexturingBatchParameters with TexturingBatchParameters.FlagNoTextureArray = FlagNoTextureArray, mapped to TextureAtlas.
Public / Constants
Public / Attributes
TextureAtlas
The aggregated texture atlas parameters for each terrain layer slot, see TerrainSlotMapping.SlotCount.