Skip to main content

Lighting

Inherits from Instance

Lighting is responsible for controlling the state of the lighting in the place. It provides many different options for creators to enhance and fine-tune the visuals of their worlds.

Not Creatable Service

Summary

Properties

Details

Lighting may contain objects such as ImageSky, GradientSky, SunLight to change the look of the sky.

Lighting can also store other lights that are visible in the Environment, however it is recommended to store these lights inside of the Environment.


Properties

AmbientColor

Lighting.AmbientColor: Color

Determines the color of the ambient light. Ambient light is light that is not coming from any particular direction, and is used to simulate light bouncing off of surfaces.

This property is only used if AmbientSource is set to AmbientSource.AmbientColor.


AmbientSource

Lighting.AmbientSource: AmbientSource

Determines the source of the ambient light


SunBrightness

Lighting.SunBrightness: float

Determines the brightness of the sun


SunColor

Lighting.SunColor: Color

Determines the color of the sun. This affects the color of the ambient lighting in the environment.


Shadows

Lighting.Shadows: boolean

Determines whether or not shadows are enabled