Skip to content

Documentation / @ripl/3d / lightIsDirectional

Function: lightIsDirectional() ​

lightIsDirectional(light): light is DirectionalLight

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

Type guard that narrows a light to a DirectionalLight.

Parameters ​

ParameterType
lightLight

Returns ​

light is DirectionalLight