Skip to content

Threepp.PointLight

Point light

A light emitted from a single point in all directions.

Shadows are set up in the same way as for DirectionalLight. However, setShadowOrthoBounds is for directional lights only and has no effect on point lights.

Members

Constructors

Properties

Methods


PointLight

Constructor

Arguments

Arguments Default Description
color 0xffffff Light color (0xRRGGBB).
intensity void Light intensity.
distance 0 Maximum range of the light (0 for unlimited).
decay 1 Decay rate.

Description

Constructor


type

Property \ Access: r/w

Description

"PointLight" (read-only)


distance

Property \ Access: r/w

Description

Maximum range of the light


decay

Property \ Access: r/w

Description

Decay rate


getPower

Method

Description

Gets the light power


setPower

Method

Arguments

Arguments Default Description
power  

Description

Sets the light power


setShadowMapSize

Method

Arguments

Arguments Default Description
w  
h  

Description

Shadow map resolution (default 2048x2048)


setShadowBias

Method

Arguments

Arguments Default Description
bias  

Description

Shadow bias to reduce shadow acne (e.g. -0.0005)


setShadowNormalBias

Method

Arguments

Arguments Default Description
bias  

Description

Bias along the normal


setShadowRadius

Method

Arguments

Arguments Default Description
radius  

Description

Soft shadow radius (PCF)


setShadowNearFar

Method

Arguments

Arguments Default Description
near  
far  

Description

near/far of the shadow camera


dispose

Method

Description

Releases resources