Create a default directional light, pointing downward
Ambient 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
A directional light source, typically global with the context having only a single instance Having multiple directional lights is not supported