Struct SpotLight

A spotlight, such as a reflector spotlight or a lantern.

struct SpotLight ;

A Spotlight is a type of Light node that emits lights in a specific direction, in the shape of a cone. The light is attenuated through the distance. This attenuation can be configured by changing the energy, radius and attenuation parameters of Light.

Properties

NameTypeDescription
spotAngle[get, set] doubleThe spotlight's angle in degrees.
spotAngleAttenuation[get, set] doubleThe spotlight's angular attenuation curve.
spotAttenuation[get, set] doubleThe spotlight's light energy attenuation curve.
spotRange[get, set] doubleThe maximal range that can be reached by the spotlight.