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

struct Tinman.Heightmap.Sample

Short Name:
  • struct Sample
Fields:

Represents a single heightmap sample.

Fields

The following table lists all fields of this config type.

Field Type Constraint Default
optional coverage number
# >= 0 && # <= 1
1

The coverage values determines how much "valid" data is stored in the heightmap sample: A coverage of 0 means that no data is stored at all; a coverage of 1 means that the sample data if fully valid. Usually, one these two values is used. Intermediate values result from interpolation and are used for proper merging of heightmap data.

optional elevation number
# >= -1 && # <= 1
0

The normalized elevation value of the heightmap sample. A value of 0 represents zero elevation (e.g. on the surface of the ellipsoid); a value of +/-1 represents maximum/minimum elevation along the terrain-space up vector.

optional texture Tinman.Color  
Colors.Zero

The texture diffuse color of the heightmap sample.

optional material Tinman.Material  
null

The material token of the heightmap sample.

optional displacement number
# >= -1 && # <= 1
0

The normalized displacement value of the heightmap sample. A value of 0 represents zero displacement; a value of +/-1 represents maximum/minimum displacement along the terrain-space normal vector.

Usages

The following table shows all usages of this config type.

Used By: