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

class Tinman.Pixel.Shade

Short Name:
  • class Shade
Derived From:
Fields:

Applies a color shade to the target pixels, depending on the elevation values.

For shading, terrain-space elevation values are used.

Fields

The following table lists all fields of this config type.

Field Type Constraint Default
required source Pixel
# != null
 

The source pixel layer.

required colorFrom Tinman.Color    

The color shade at Shade.elevationFrom.

required colorTo Tinman.Color    

The color shade at Shade.elevationTo.

required elevationFrom number    

The elevation value at the start of the shade interval.

required elevationTo number    

The elevation value at the start of the shade interval.

required falloff number
# > 0
 

Length of falloff interval.

optional power number  
1

Optional exponent to use for transforming the linear blending factor.