TerrainMaterialTexture

Description

[ShutdownSurvive]
sealed class Tinman.Engine.Components.TerrainMaterialTexture

Describes a material-based terrain texture.

Terrain textures use the Specular-Glossiness PBR-workflow, see IMaterial.

Public / Constants

Default


public static readonly attribute Default → (TerrainMaterialTexture)

A TerrainMaterialTexture with default texture values and unity scale.

Public / Constructors

Terrain​Material​Texture


public constructor TerrainMaterialTexture → (5)

albedoReflectivity in : IModelTexture

Combined texture map for: albedo, reflectivity. (see AlbedoReflectivity).

normalAmbientGloss opt : IModelTexture = null

Combined texture map for normals, ambient occlusion and gloss (see NormalAmbientRoughness).

displacement opt : IModelTexture = null

The displacement map (see Displacement).

scaleDisplacement opt : float32 = 0

The terrain-space length that corresponds to the maximum displacement.

scaleTexture opt : float32 = 1

The terrain-space length that corresponds to the distance between the UV-coordinate pair (0,0) and (1,0) in the terrain textures.

Creates a new instance of TerrainMaterialTexture.

Public / Attributes

Albedo​Reflectivity


public readonly attribute AlbedoReflectivity → (IModelTexture)

Combined texture map for: albedo, reflectivity.

The red, green and blue channels store the albedo color (sRGB). See IMaterial.BaseColor.

The alpha channel stores the inverse grayscale reflectivity (linear). See IMaterial.Reflectivity.

Displacement


public readonly attribute Displacement → (IModelTexture)

The displacement map or null.

This texture is interpreted according to IMaterial.Displacement.

Normal​Ambient​Roughness


public readonly attribute NormalAmbientRoughness → (IModelTexture)

Combined texture map for normals, ambient occlusion and gloss, or null.

The red and blue channels store the reduced unit-length tangent-space normal vectors (see Image.EncodeNormals). See IMaterial.Normal.

The green channel stores the ambient occlusion values (linear). See IMaterial.Occlusion.

The alpha channel stores the inverse gloss resp. roughness value (linear). See IMaterial.Glossiness.

Scale​Displacement


public readonly attribute ScaleDisplacement → (float32)

The terrain-space length that corresponds to the maximum displacement.

This factor is expected to establish the correct scale for the terrain textures, without any artificial or artistic adjustment.

The values of ScaleDisplacement and ScaleTexture define the correct relationship between displacement values and normal vectors.

Scale​Texture


public readonly attribute ScaleTexture → (float32)

The terrain-space length that corresponds to the distance between the UV-coordinate pair (0,0) and (1,0) in the terrain textures.

This factor is expected to establish the correct scale for the terrain textures, without any artificial or artistic adjustment.

The values of ScaleDisplacement and ScaleTexture define the correct relationship between displacement values and normal vectors.