[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:Float color], [page:Float intensity], [page:Float distance] )

Properties

.[page:Vector3 position]

Light's position.
Default — *new THREE.Vector3()*.

.[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*.

Source

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