View that owns this DirLight. When destroyed, the View will destroy this DirLight as well.
The DirLight configuration
Parameters for a DirLight.
Optional
color?: FloatArrayParamOptional
dir?: FloatArrayParamOptional
id?: stringOptional ID, generated automatically when omitted.
Optional
intensity?: numberOptional
space?: string3D coordinate space in which the DirLight is oriented.
Accepted value is "world" or "view".
Default is "world".
True once this Component has been destroyed.
Don't use this Component if this is true
.
Protected
dirtyID of this DirLight, unique within the View.
Readonly
viewThe View to which this DirLight belongs.
Gets the RGB color of this DirLight.
Default value is [0.7, 0.7, 0.8]
.
The DirLight's RGB color.
Sets the RGB color of this DirLight.
Default value is [0.7, 0.7, 0.8]
.
The DirLight's RGB color.
Gets the direction in which the DirLight is shining.
Default value is [1.0, 1.0, 1.0]
.
The direction vector.
Sets the direction in which the DirLight is shining.
Default value is [1.0, 1.0, 1.0]
.
The direction vector.
Gets the intensity of this DirLight.
Default value is 1.0
for maximum intensity.
The DirLight's intensity.
Sets the intensity of this DirLight.
Default intensity is 1.0
for maximum intensity.
The DirLight's intensity
The coordinate system the DirLight is defined in - "view"
or "space"
.
Protected
cleanForces this component to action any deferred state updates.
Protected
cleanGives this component an opportunity to action any defered state updates.
Destroys this DirLight.
Protected
errorProtected
Logs an error for this component to the JavaScript console.
The console message will have this format: [ERROR] [<component type> =<component id>: <message>
The error message to log
Configures this DirLight.
Ignores DirLightParams.space, because DirLight.space is not dynamically updatable.
Protected
logProtected
Logs a message for this component.
The message will have this format: [LOG] [<component type> <component id>: <message>
The message to log
Protected
setFlags this component as having a defered state updates it needs to perform.
Gets this DirLight's current configuration.
Protected
warnProtected
Logs a warning for this component to the JavaScript console.
The console message will have this format: [WARN] [<component type> =<component id>: <message>
The warning message to log
Emits an event when the Component has been destroyed.
A directional light source within a View.