Lighting
sets the sun, sky, ambient light, and exposure that the renderer meters the scene with
Properties
7 members Access: read only
- Ambient:
{ Tint: vector, Intensity: number, Source: number } ambient light tint, strength, and source
- Exposure:
{ MinEV: number, MaxEV: number } auto exposure bounds
- Flare:
{ Intensity: number, Scale: number, Tint: vector, Ghost: number } lens flare, intensity 0 disables it
- Shadows:
{ Mode: number, Fill: number } shadow mode and the light level inside shadows
- Sky:
{ Mode: number, Color: vector, Contribution: number } background mode, color, and sky share of ambient light
- Stars:
{ Luminance: number } night sky star brightness
- Sun:
{ Azimuth: number, Elevation: number, Tint: vector, Intensity: number } sun direction, tint, and strength
Configuring Sunlight, Sky, and Exposure
Lifecycle: Shared
Sun angle, tint, ambient fill, sky, and exposure are all plain writable properties.
Luau
local L = game.Lighting-- Solar orientation and intensityL.Sun.Azimuth = 220L.Sun.Elevation = 40L.Sun.Tint = Vector3.new(1, 0.95, 0.9)L.Sun.Intensity = 1.0-- Ambient environment fillL.Ambient.Source = 1 -- ColorL.Ambient.Tint = Vector3.new(0.2, 0.25, 0.35)L.Ambient.Intensity = 0.5-- Atmospheric sky domeL.Sky.Mode = 0 -- AtmosphereL.Sky.Contribution = 0.8-- Dynamic exposure boundsL.Exposure.MinEV = 0L.Exposure.MaxEV = 16