Directional

Description

Name

class Tinman.Pixel.Directional

Derived from

Pixel

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 / Required

source

Type

Pixel

Constraint

# != null

The input buffer.

Fields / Optional

color

Type

Tinman.Color

Default

{Color.Name: White}

The directional light color.


vector

Type

Vec3

Default

{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.