View that owns this DirLight. When destroyed, the View will destroy this DirLight as well.
The DirLight configuration
Parameters for a DirLight.
Optionalcolor?: Vec3Optionaldir?: Vec3Optionalid?: 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".
ID 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".
Destroys this DirLight.
Configures this DirLight.
Ignores DirLightParams.space, because DirLight.space is not dynamically updatable.
Gets this DirLight's current configuration.
A directional light source within a View.