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

interface ILightProvider in Tinman.AddOns.Components

interface ILightProvider base of EnvironmentMapResource
  IEnvironmentMap
  LightingGui

Attributes

LightLatitude

Latitude of the prominent light in this environment map, if applicable.

property LightLatitude { get }
type float64
value [-90..90] The latitude angle in degrees or NanD if there is no prominent light.

LightLongitude

Longitude of the prominent light in this environment map, if applicable.

property LightLongitude { get }
type float64
value [-180..180] The longitude angle in degrees or NanD if there is no prominent light.

LightSize

Apparent size of prominent light in this environment map, if applicable.

property LightSize { get }
type float64
value [>=0] The apparent diameter of the prominent light, given as an angle in degrees. Will be NanD if there is no prominent light.

SetLightMask

Can the SetLight method be used to configure the prominent light?

property SetLightMask { get }
type int32
value Zero or more of the following bits:
1: LightLatitude can be configured.
2: LightLongitude can be configured.
4: LightSize can be configured.

Methods

SetLight

Configures the prominent light.

method SetLight (float64 latitude, float64 longitude, float64 size)
params latitude Latitude of the prominent light in this environment map (see LightLatitude).
  longitude Longitude of the prominent light in this environment map (see LightLongitude).
  size Apparent size of prominent light in this environment map, in degrees (see LightSize).

Extensions

LightVector

Computes the direction vector of the prominent light in this environment map.

[Pure]
method LightVector ()
type Vec3D
returns The unit-length light direction vector, in world-space.

SetLight

Configures the prominent light.

method SetLight (ILightProvider other)
params other [not-null] The light provider from which to copy the light settings.