SpotLight¶
SpotLight is a source of light emitting in a specific direction and angle that can be placed in the world.
Inherits DynamicInstance
Properties¶
Angle : number
¶
Specifies the angle of the spotlight.
Brightness : number
¶
Specifies how bright/intense the light is.
Brightness should ideally be between 0-1
Color : Color¶
Specifies the color of the light.
Range : number
¶
Specifies how far out the light can reach.
Shadows : boolean
¶
Specifies whether this light emits shadows or not.
Having many lights with shadows enabled will cause a massive hit in performance. Consider minimzing the amount of lights with shadows to ensure every player is enjoying your place with minimal framerate issues.