Lighting
Light scenes with the scene sun and local Point / Spot lights. Balance brightness with lux, lumens, and auto-exposure. The next pages cover the world sun, local lights, shadows, and exposure in order.
Light system
Section titled “Light system”Scene sun: one directional light for the whole scene. Brightness is Lux. Angle is Azimuth (deg) and Elevation (deg).
Local lights: Point and Spot only. Brightness is Lumens.
Opaque surfaces on a perspective view use clustered deferred shading, so a pixel only shades the point and spot lights that can reach it. Orthographic views, water, translucent surfaces, and volumetric fog still consider every local light.
| Type | Use | Shadows |
|---|---|---|
| Point | Lanterns, bulbs, fill. | Optional |
| Spot | Flashlights, cones. Cone Angle (deg) is half-angle, default 45. | Optional |
Key concepts
Section titled “Key concepts”Lumens: Point and Spot output. Default 800 lm.
Lux: Illuminance. Sun uses Lux (gameplay default 6). Sky fill is Ambient Lux (default 2), C# renderer_set_sky_ambient_lux. There is no property named “Sky ambient”.
EV100: Camera exposure. exposure_scale = exp2(-ev100). Higher EV100 darkens the image.
Color temperature: Kelvin. Warm ~2700K, daylight ~5500K.
Shadow maps
Section titled “Shadow maps”Sun shadows are cascaded (CSM). Cascade count and sun shadow distance come from File -> Settings -> Shadow Quality, not Scene Settings.
Local shadows use a budget of 16 lights and two AND gates. The Local shadows chapter covers the limits.
API reference
Section titled “API reference”Continue reading
Section titled “Continue reading”Previous: Engine Settings: graphics, shadows, and audio mixer.
Next: Scene sun: global sun and sun-shadow scales.
