TruWorlds

Lighting

Inherits: GameSystem

Lighting is a game system that manages global lighting settings in the game world.

Properties

AmbientLightColor Color3

The ambient light color of the game world.

BackgroundColor Color3

The default background color of the game world.

SunAngle float

The yaw angle of the sun in the game world, in degrees.

SunBrightness float

The brightness of the sunlight in the game world.

SunCastShadow bool

Whether the sun casts shadows in the game world. This has no effect on lower graphic quality levels.

SunColor Color3

The color of the sunlight in the game world.