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

interface IPixelLayerOps in Tinman.Terrain.Heightmaps.Painting

Defines instance operations for IPixelLayer objects.

interface IPixelLayerOps base of IPixelLayer

Methods

LightAmbient

Applies a lambertian lighting term to the target pixels in Pixels.

method LightAmbient (int64 lightColor)
type IPixelLayer
params lightColor The ambient light color (the alpha channel is ignored).
returns [not-null] The resulting pixel layer.

See also:

Colors

LightDirectional

Applies a lambertian lighting term to the target pixels in Pixels.

method LightDirectional (Vec3F lightDirection, int64 lightColor)
type IPixelLayer
params lightDirection The light direction vector.
  lightColor The directional light color (the alpha channel is ignored).
returns [not-null] The resulting pixel layer.

Remarks:

The X and Y refer to pixel coordinates, Z is pointing downwards.

See also:

Colors