TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

class TerrainTexture in Tinman.AddOns.Components

Describes a material-based terrain texture.

sealed class TerrainTexture  

Public / Attributes

AlbedoReflectivity

Combined texture map for: albedo, reflectivity.

public readonly field AlbedoReflectivity
type IModelTexture

Remarks:

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

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

Displacement

The displacement map or null.

public readonly field Displacement
type IModelTexture

Remarks:

The displacement map stores displacement amounts, which are used to displace mesh vertices along their normal vectors. See DisplacementMap.

DisplacementRange

The terrain-space range of Displacement.

public readonly field DisplacementRange
type VerticalRange

Remarks:

The displacement range is given in metres. See Displacement.

NormalAmbientRoughness

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

public readonly field NormalAmbientRoughness
type IModelTexture

Remarks:

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

The green channel stores the inverse ambient occlusion intensity (linear). See OcclusionMap.

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

Scale

The texture scale, in terrain-space.

public readonly field Scale
type float32

Public / Constructors

TerrainTexture

Creates a new instance of TerrainTexture.

public constructor TerrainTexture (IModelTexture albedoReflectivity, IModelTexture normalAmbientGloss = null, IModelTexture displacement = null, VerticalRange displacementRange = default(VerticalRange), float32 scale = 1)
params albedoReflectivity Combined texture map for: albedo, reflectivity. (see AlbedoReflectivity).
  normalAmbientGloss Combined texture map for normals, ambient occlusion and gloss (see NormalAmbientRoughness). Defaults to null.
  displacement The displacement map (see Displacement).
  displacementRange The terrain-space range of displacement (see DisplacementRange).
  scale The texture scale, in terrain-space. Defaults to 1.