Zia.DirectionalLight Class

A directional light structure, used by several of the built-in Program classes.

Constructor

Name Description
DirectionalLight

Constructs a new DirectionalLight.


Constructor

new Zia.DirectionalLight (program, index) constructor

Defined in graphics/programs/DirectionalLight.js:12

Constructs a new DirectionalLight.

Parameters

Name Type Description
program Zia.Program

The associated program.

index Number

The index of this light (used to set uniforms correctly).