[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:Number distance])
[page:Integer hex] — Numeric value of the RGB component of the color.
[page:Float intensity] — Numeric value of the light's strength/intensity.
[page:Number distance] -- The distance of the light where the intensity is 0. When distance is 0, then the distance is endless.
Creates a light at a specific position in the scene. The light shines in all directions (roughly similar to a light bulb.)
Properties
[property:Float intensity]
Light's intensity.
Default - *1.0*.
[property: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]