Capítulo 132 de 859
A light that gets emitted from a single point in all directions. A common use case for this is to replicate the light emitted from a bare lightbulb.
This light can cast shadows - see the PointLightShadow for details.
const light = new THREE.PointLight( 0xff0000, 1, 100 );
light.position.set( 50, 50, 50 );
scene.add( light );
Constructor
| Signature |
|---|
| `new PointLight( color : number |
Properties
| Property | Description |
|---|---|
.decay : number | The amount the light dims along the distance of the light. In context of physically-correct rendering the default value should not be changed. |
.distance : number | When distance is zero, light will attenuate according to inverse-square law to infinite distance. When distance is non-zero, light will attenuate according to inverse-square law until near the distan… |
.isPointLight : boolean (readonly) | This flag can be used for type testing. |
.power : number | The light's power. Power is the luminous power of the light measured in lumens (lm). Changing the power will also change the light's intensity. |
.shadow : PointLightShadow | This property holds the light's shadow configuration. |