Function createPointLight
-
Parameters
- position: [number, number, number]
World-space position of the light.
- intensity: number = 1.0
Scalar multiplier applied to the light's diffuse and specular contribution.
Returns PointLight
Plain
PointLightdata to be added to a scene viaaddToScene. - position: [number, number, number]
Creates a point light that emits in all directions from
positionwith distance falloff.