[page:Object3D] →
[name]
Abstract base class for lights - all other light types inherit the properties and methods
described here.
Constructor
[name]( [param:Integer color], [param:float intensity] )
[page:Integer color] - (optional) hexadecimal color of the light. Default is 0xffffff (white).
[page:Float intensity] - (optional) numeric value of the light's strength/intensity. Default is 1.
Creates a new [name]. Note that this is not intended to be called directly (use one of derived classes instead).
Properties
See the base [page:Object3D Object3D] class for common properties.
[property:Color color]
Color of the light. Defaults to a new [page:Color] set to white, if not passed in the constructor.
[property:Float intensity]
The light's intensity, or strength.
In [page:WebGLRenderer.physicallyCorrectLights physically correct] mode, the product of
[page:.color color] * intensity is interpreted as luminous intensity measured in candela.
Default - *1.0*.
[property:Boolean isLight]
Used to check whether this or derived classes are lights. Default is *true*.
You should not change this, as it used internally for optimisation.
Methods
See the base [page:Object3D Object3D] class for common methods.
[method:Light copy]( [param:Light source] )
Copies the value of [page:.color color] and [page:.intensity intensity] from the
[page:Light source] light into this one.
[method:JSON toJSON]( [param:String meta] )
Return Light data in JSON format.
Source
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]