[page:Object3D] → [page:Light] →
[name]
Affects objects using [page:MeshLambertMaterial] or [page:MeshPhongMaterial].
Example
var light = new THREE.PointLight( 0xff0000, 1, 100 );
light.position.set( 50, 50, 50 );
scene.add( light );
Constructor
[name]([page:Integer hex], [page:Float intensity], [page:todo distance])
[page:Integer hex] — Numeric value of the RGB component of the color.
[page:Float intensity] — Numeric value of the light's strength/intensity.
distance -- todo
Creates a light at a specific position in the scene. The light shines in all directions (roughly similar to a light bulb.)
Properties
.[page:Float intensity]
Light's intensity.
Default - *1.0*.
.[page:Float distance]
If non-zero, light will attenuate linearly from maximum intensity at light *position* down to zero at *distance*.
Default — *0.0*.
Methods
Source
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]