SpotLight Class

Extends SpotLight
Module: Lights

A SpotLight emit light from a point in a specific direction in a cone volume.

SpotLight has a target that is always represented in words coordinates, and can be moved to change where the light is pointing at.

Based on SpotLight documentation for the object can be found at https://

Item Index



  • target

SpotLight looks to the target object coordinates.

The target object should always be at the scene root.




Update light shadow map atributtes at runtime.