Create a default directional light, pointing downward
Private
_directionPrivate
Optional
_shadowPrivate
Optional
_shadowPrivate
Optional
_shadowPrivate
Optional
_shadowAmbient colour of the light. Default: [0, 0, 0]
Colour of the light, used for both diffuse and specular. Default: [0, 0, 0]
Is this light enabled. Default: true
Get the shadow map framebuffer, will be undefined if shadows are not enabled
Get the shadow map options, will be undefined if shadows are not enabled
Get the shadow map program, will be undefined if shadows are not enabled
Get the shadow map texture, will be undefined if shadows are not enabled
Are shadows enabled for this light?
Return the base set of uniforms for this light
Enable shadows for this light, this will create a shadow map texture and framebuffer There is no way to disabled shadows once enabled
Optional
options: ShadowOptionsA set of ShadowOptions to configure how shadows are calculated
Get the forward view matrix for the virtual camera used to render the shadow map. Returns undefined if shadows are not enabled
The main camera used to view the scene, needed to get a good shadow view
Generated using TypeDoc
A directional light source, typically global with the context having only a single instance Having multiple directional lights is not supported