TerrainMaterialTexture

Description

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

Describes a material-based terrain texture.

Public / Constants

Default


public static readonly attribute Default → (TerrainMaterialTexture)

A TerrainMaterialTexture with default texture values and unity scale.

Public / Constructors

TerrainMaterialTexture


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

AlbedoReflectivity


public readonly attribute AlbedoReflectivity → (IModelTexture)

Combined texture map for: albedo, reflectivity.

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

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

Displacement


public readonly attribute Displacement → (IModelTexture)

The displacement map or null.

This texture is interpreted according to IMaterial.DisplacementMap.

NormalAmbientRoughness


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.NormalMap.

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

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

ScaleDisplacement


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.

ScaleTexture


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.