Skip to content

Documentation / @ripl/3d / lightIsSpot

Function: lightIsSpot() ​

lightIsSpot(light): light is SpotLight

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

Type guard that narrows a light to a SpotLight.

Parameters ​

ParameterType
lightLight

Returns ​

light is SpotLight