sealed class Tinman.AddOns.Components.HeightmapSampleGui

Full source code is included in the Tinman 3D SDK download.

A GUI component that displays the values of a HeightmapSample.

The following default Layout settings are defined for LightingGui objects:

Public / Constructors


public constructor HeightmapSampleGui → ()

Creates a new instance of HeightmapSampleGui.

Public / Attributes


public attribute LayerMask → (get,set)

value : HeightmapLayer

Bitwise combination of HeightmapLayer values.

The mask of heightmap layers this object uses.

These heightmap layers store actual terrain data:

Missing data is represented with the HeightmapLayer.Coverage layer. It describes how much information is present in a stored heightmap sample. The semantics of coverage with heightmap samples is the same as premultiplied alpha with texture samples. A LayerMask without HeightmapLayer.Coverage means that all samples are fully solid. If a LayerMask contains the HeightmapLayer.Coverage layer but no others, the coverage values are used to represent 'holes' in the terrain (e.g. creating holes for caves, tunnels, etc.).


public attribute Range → (get,set)

value : VerticalRange

The vertical range, in metres.


public attribute Sample → (get,set)

value : HeightmapSample

The heightmap sample.

The heightmap sample to display.