PointLight - A point light

Constructor

class PointLight(hex, intensity, distance)

A point light

Part of scene graph

Inherits from Light() Object3D()

Affects MeshLambertMaterial() and MeshPhongMaterial()

Arguments:
  • hex (integer) – light color
  • intensity (float) – light intensity
  • distance (float) – distance affected by light

Attributes

PointLight.color

Light Color()

PointLight.intensity

Light intensity

default 1.0

PointLight.position

Position of the light

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 );

Previous topic

DirectionalLight - A directional light

Next topic

SpotLight - A spotlight

This Page