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

enum HeightmapLayer in Tinman.Terrain.Heightmaps

Enumeration of heightmap layers.

[Flags, PersistentEnum]
enum HeightmapLayer  

Items

None = 0

No heightmap layers.

Elevation = 0x01

Elevation values, interpreted along the terrain-space up-vector.

See also:

HeightmapSample.Elevation
HeightmapSamples.Elevation
HeightmapRegion.Elevation
Texture = 0x02

64-bit ARGB color-key values that describe the texture of the terrain surface.

See also:

HeightmapSample.Texture
HeightmapSamples.Texture
HeightmapRegion.Texture
Material = 0x04

64-bit material tokens that describe the material of the terrain surface.

See also:

HeightmapSample.Material
HeightmapSamples.Material
HeightmapRegion.Material
MaterialToken
Displacement = 0x08

Elevation values, interpreted along the terrain-space surface normal vector.

DataMask = 0x0F

Bitmask that contains the data layers.

See also:

HeightmapLayer.Elevation
HeightmapLayer.Texture
HeightmapLayer.Material
HeightmapLayer.Displacement
RangeMask = 0x09

Bitmask that contains all layers that depend on a value range (see VerticalRange).

Coverage = 0x40000000

Sample coverage values.

Remarks:

The heightmap sample layer values are premultiplied with the coverage amount. This must be taken into account when manually creating heightmap sample data (for example by using the Modulate) method.

See also:

HeightmapSample.Coverage
HeightmapSamples.Coverage
HeightmapRegion.Coverage
All = 0x7FFFFFFF

All heightmap layers.