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

class Tinman.Pixel.Directional

Short Name:
  • class Directional
Derived From:
Fields:

Computes a directional lighting term from the input buffer pixels and the light color and adds the resulting color to the pixels in the output buffer.

Fields

The following table lists all fields of this config type.

Field Type Constraint Default
required source Pixel
# != null
 

The input buffer.

optional color Tinman.Color  
Colors.White

The directional light color.

optional vector Vec3  
{1, 1, -2}

The light direction vector (does not need to be of unit length). The image X- and Y-axes form a left-handed coordinates system when combined with the Z-axis.