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

class TerrainMaterial in Tinman.AddOns.Components

Describes a terrain material for texturing.

sealed class TerrainMaterial  

Public / Attributes

Horizontal

The horizontal terrain texture.

public readonly field Horizontal
type TerrainTexture

Key

Optional material key.

public readonly field Key
type MaterialKey

Remarks:

The material key is used to extract material weights from the Texture layer.

Name

Human-readable name of this terrain material.

public property Name { get set }
type string
value The terrain material name or null.

Placeholder

A placeholder texture using the material key color (see Color).

public readonly field Placeholder
type IModelTexture

Vertical

The vertical terrain texture (for triplanar mapping) or null (for standard UV-mapping).

public readonly field Vertical
type TerrainTexture

Public / Constructors

TerrainMaterial

Creates a new instance of TerrainMaterial.

public constructor TerrainMaterial (MaterialKey key, TerrainTexture horizontal, TerrainTexture vertical, string name = null)
params key The material key for this terrain material.
  horizontal [not-null] The horizontal terrain texture.
  vertical The vertical terrain texture (triplanar mapping) or null (UV-mapping). Defaults to null.
  name Optional human-readable name of this terrain material. Defaults to null.