[page:Object3D] → [page:Light] →

[name]

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.

Example

[example:webgl_animation_cloth animation / cloth ]
[example:webgl_animation_skinning_blending animation / skinning / blending ]

var light = new THREE.AmbientLight( 0x404040 ); // soft white light scene.add( light );

Constructor

[name]( [param:Integer color], [param:Float intensity] )

[page:Integer color] - (optional) Numeric value of the RGB component of the color. Default is 0xffffff.
[page:Float intensity] - (optional) Numeric value of the light's strength/intensity. Default is 1.

Creates a new [name].

Properties

See the base [page:Light Light] class for common properties.

[property:Boolean castShadow]

This is set to *undefined* in the constructor as ambient lights cannot cast shadows.

Methods

See the base [page:Light Light] class for common methods.

Source

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]