Skip to content

Latest commit

 

History

History
56 lines (33 loc) · 1.48 KB

PointLight.rst

File metadata and controls

56 lines (33 loc) · 1.48 KB

PointLight - A point light

Constructor

Attributes

.. attribute:: PointLight.color

    Light :class:`Color`

.. attribute:: PointLight.intensity

    Light intensity

    ``default 1.0``

.. attribute:: PointLight.position

    Position of the light

.. attribute:: PointLight.distance

    If non-zero, light will attenuate linearly from maximum intensity at light ``position`` down to zero at ``distance``


Example

// red point light shining from the front

var pointLight = new THREE.PointLight( 0xff0000 );
pointLight.position.set( 0, 0, 10 );
scene.add( pointLight );