EnvironmentMap

Description

abstract class Tinman.Engine.Components.EnvironmentMap

Abstract base class for IEnvironmentMap implementations.

The default property implementations behave as follows:

Public / Methods

Vector

2 overloads


[Pure]
public static method Vector1 → (2)

altitude in : float64

The altitude angle of the light, in the range [-90..90] degrees.

azimuth in : float64

The azimuth angle of the light, in the range [-180..180] degrees.

returns → Vec3D

The unit-length light direction vector, in cartesian coordinates, where the coordinate axes are defined as follows:

  • X+ : points towards light source at altitude 0°, azimuth 90°

  • Y+ : points towards light source at altitude 90°, azimuth 0°

  • Z+ : points towards light source at altitude 0°, azimuth 180°

The light vector points from the light source towards the coordinate origin.

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


[Pure]
public static method Vector2 → (1)

light in : Vec3D

The light direction vector.

returns → Vec2D

The computed angles:
Vec2D.X : the azimuth angle of the light, in the range [-180..180] degrees,
Vec2D.Y : the altitude angle of the light, in the range [-90..90] degrees.

Computes the altitude and azimuth angles for the given light direction vector.

Protected / Constructors

Environment​Map


protected constructor EnvironmentMap → ()

Creates a new instance of EnvironmentMap.