Skip to content

Documentation / @ripl/3d / lightIsPositional

Function: lightIsPositional() ​

lightIsPositional(light): light is PositionalLight

Defined in: 3d/src/core/lights.ts:407

Type guard that narrows a light to one that radiates from a position.

Parameters ​

ParameterType
lightLight

Returns ​

light is PositionalLight