[page:Object3D] → [page:Light] →
[name]
This light's color gets applied to all the objects in the scene globally.
Example
[example:canvas_camera_orthographic camera / orthographic ]
[example:canvas_interactive_voxelpainter interactive / voxelpainter ]
[example:canvas_materials materials ]
[example:canvas_sandbox sandbox ]
[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]( [page:Integer color], [page:Float intensity] )
[page:Integer color] — Numeric value of the RGB component of the color.
[page:Float intensity] -- Numeric value of the light's strength/intensity.
This creates an Ambientlight with a color and intensity.
Properties
See the base [page:Light Light] class for common properties.
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]