View that owns this DirLight. When destroyed, the View will destroy this DirLight as well.
The DirLight configuration
Parameters for a DirLight.
Optionalcolor?: FloatArrayParamOptionaldir?: FloatArrayParamOptionalid?: stringOptional ID, generated automatically when omitted.
Optionalintensity?: numberOptionalspace?: 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.
ProtecteddirtyID of this DirLight, unique within the View.
ReadonlyviewThe 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".
ProtectedcleanForces this component to action any deferred state updates.
ProtectedcleanGives this component an opportunity to action any defered state updates.
Destroys this DirLight.
ProtectederrorProtectedLogs 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.
ProtectedlogProtectedLogs a message for this component.
The message will have this format: [LOG] [<component type> <component id>: <message>
The message to log
ProtectedsetFlags this component as having a defered state updates it needs to perform.
Gets this DirLight's current configuration.
ProtectedwarnProtectedLogs 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.