AmbientLight
This light globally illuminates all objects in the scene equally.
This light cannot be used to cast shadows as it does not have a direction.
Code Example
const light = new THREE.AmbientLight( 0x404040 ); // soft white light
scene.add( light );
Constructor
AmbientLight
function AmbientLight( color: Integer, intensity: Float ): void;
color - (optional) Numeric value of the RGB component of the color.
Default is 0xffffff.
intensity - (optional) Numeric value of the light's strength/intensity.
Default is 1.
Creates a new AmbientLight.
Properties
See the base Light class for common properties.
isAmbientLight
isAmbientLight: Boolean;
Read-only flag to check if a given object is of type AmbientLight.
Methods
See the base Light class for common methods.