[page:Object3D] →

[name]

Abstract base class for lights.

Constructor

[name]( [page:Integer color], [page:float intensity] )

[page:Integer color] — Numeric value of the RGB component of the color.
[page:Float intensity] — Numeric value of the light's strength/intensity.
This creates a light with color and intensity.

Properties

See the base [page:Object3D Object3D] class for common properties.

[property:Color color]

Color of the light.

[property:Float intensity]

Light's intensity.
In "physically correct" mode, the product of color * intensity is interpreted as luminous intensity measured in candela.
Default — *1.0*.

Methods

See the base [page:Object3D Object3D] class for common methods.

[method:Light copy]( [page:Light source] )


Copies value of *source* to this Light object.

[method:JSON toJSON]( [page:String meta] )

Return Light data in JSON format.

Source

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