[page:Object3D] → [page:Light] →
[name]
This illuminates the scene from a complete surface. This light only works in the [page:WebGLDeferredRenderer deferredrenderer].
Example
areaLight1 = new THREE.AreaLight( 0xffffff, 1 );
areaLight1.position.set( 0.0001, 10.0001, -18.5001 );
areaLight1.rotation.set( -0.74719, 0.0001, 0.0001 );
areaLight1.width = 10;
areaLight1.height = 1;
scene.add( areaLight1 );
Constructor
[name]( [page:Integer hex], [page:Float intensity])
[page:Integer hex] — Numeric value of the RGB component of the color.
[page:Float intensity] — Numeric value of the light's strength/intensity.
This creates a arealight with color.
Properties
[property:Vector3 right]
Sets or gets an unit vector that indicates the right side of the light. This is calculated in local space.
[property:Vector3 normal]
Sets or gets an unit vectorSets or gets an unit vector that indicates the right side of the light. This is calculated in local space.
[property:number height]
Sets or gets the height of the illuminating plane.
[property:number width]
Sets or gets the width of the illuminating plane.
[property:Float intensity]
Light's intensity.
Default — *1.0*.
[property:number constantAttenuation]
Sets or gets the attention of the light in constant space. This is independant of the distance of the light.
[property:number linearAttenuation]
Sets or gets the attention of the light in linear space. This increases the attenuation linearly with the distance from the light.
[property:number quadraticAttenuation]
Sets or gets the attention of the light in linear space. This increases the attenuation quadratic with the distance from the light.
Source
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]