DirectionalLight

Directional Light

Constructors

this
this(vec3f color = vec3f(1.0f), vec3f direction = vec3f(0.0f), bool castShadows = false)

The shadow map's depth texture.

Members

Functions

calculateProjView
void calculateProjView(box3f frustum)

calculates the light's projection and view matrices, and combines them

initialize
void initialize()

Initializes the lights.

Variables

direction
vec3f direction;

The direction the light points in.

Inherited Members

From Light

color
vec3f color;

The color the light gives off.

castShadows
bool castShadows;

If it should cast shadows

Meta