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 ​
| Parameter | Type |
|---|---|
light | Light |
Returns ​
light is PositionalLight