Skip to main content
Version: Next (dev)

Lighting

Lighting in Plasma is fully dynamic and physically based. Every light can move and change at runtime, light is specified in real-world units (lumen, lux, Kelvin), and light that bounces between surfaces (global illumination) is computed with ray tracing every frame. There are no lightmaps to bake.

The Bistro sample at dusk: street lamps, lit shop windows and string lights, with bounce light on the facades and cobblestones

How lighting is put together​

A lit pixel combines several parts. Each has its own page:

PartWhat it isSet up with
Direct lightLight that travels straight from a light source to the surface.Light components, Direct lighting modes
ShadowsWhere direct light is blocked.Dynamic shadows, Virtual shadow maps, Contact shadows
Indirect (bounce) lightLight reflected off other surfaces, which lights areas the lights don't reach.Global illumination
Sky lightLight from the sky and environment.Sky light, Ambient light
ReflectionsMirror-like and glossy reflections of the scene.Global illumination › reflections, Reflection probes
Ambient occlusionDarkening of creases and contact areas.Ambient occlusion

Surfaces are described with Physically Based Rendering (PBR) materials: base colour, normal, roughness and metalness. Emissive materials can light the scene as well (EmissiveLighting).

Brightness is physical: a 100 W bulb is about 1600 lm, the sun about 100,000 lux, and the camera's exposure turns that into an image, like a real camera. Start with Physical Light Units if the scene looks too dark or blown out.

Light types​

LightUse it for
Directional lightThe sun or moon: parallel light from one direction over the whole scene.
Point lightBulbs, lamps, fire: light in all directions from a point.
Spot lightFlashlights, stage lights, downlights: a cone of light, optionally with a cookie.
Rect lightWindows, panels, softboxes, screens: a rectangular area light with soft highlights and optional cookie.
Disk lightRound ceiling lights, spot lamps with a large lens: a circular area light.
Cylinder lightFluorescent tubes and neon strips: a tube-shaped area light.
Sky lightLight and reflections from the sky, captured from the scene's sky.
Ambient lightA constant light from above and below, so nothing is fully black.
Fill lightArtistic touch-ups: brightening or darkening an area without a visible light source.
Reflection probesLocal reflections for areas that ray-traced reflections don't cover.

All lights share a set of common settings: colour and temperature, intensity in physical units, range and falloff, shadows, and how much they feed global illumination. Those are described once on Light Properties, together with the editor's light header, which shows a light's brightness at a distance and offers Fixture presets for common real-world lamps.

Area Lights compares rect, disk and cylinder lights: when to use which, what they cost and how their shadows work.

Shadows​

Every light decides whether it casts shadows. The directional light uses virtual or cascaded shadow maps; local lights share a shadow atlas. Shadow-casting lights cost the most, so keep their number and range low. See Dynamic Shadows, and Virtual Shadow Maps for the sun.

Contact shadows add the fine shadows where objects touch the ground, for the sun and the most important local lights, also for lights without shadow maps.

Global illumination​

Bounce light, reflections and sky occlusion are ray traced at runtime, so they follow every change to lights and geometry. You choose a technique for each part:

  • Diffuse GI (bounce light): screen-probe ray-traced GI (the default), path tracing, or radiance cascades for stable, noise-free bounce light.
  • Specular GI (reflections): screen-space, screen-space with ray-traced misses, fully ray traced, or path traced.
  • Direct lighting: classic shadow-mapped lighting, or ray-traced modes such as ReSTIR DI or guided direct lighting for scenes with many shadowed lights. See Direct Lighting Modes.
  • Ambient occlusion: SSAO, MSAO or ray-traced AO. See Ambient Occlusion.

The quality presets choose these per player; a post process volume can override them for a scene or an area; and each light can opt out of GI or scale its contribution. Ray tracing needs Rendering.RT.Enable. GPUs with hardware ray tracing use it automatically; on other GPUs, GI can trace in software when Rendering.RT.Software.Enable is on. See Global Illumination for what each part needs.

Start with Global Illumination.

Performance and debugging​

  • Overlapping lights cost the most. Use few shadow-casting lights, keep their range small, and turn shadows off on small fill lights.
  • The viewport's Render Mode menu has lighting views, such as Lighting › Direct Lighting Only, the GI views, Surface › Ambient Occlusion and Performance › Light Count. See the debugging section of each page and Editor Views.
  • The Profiler GPU passes tab shows what shadows, GI and lighting cost per frame.

See Also​

In this section​

Light PropertiesColour, temperature, intensity units, range, shadows and fixture presets shared by all lights.
Physical Light UnitsLumen, candela, lux, Kelvin and exposure, with real-world reference values.
Directional Light ComponentThe directional light component adds a light source that illuminates the entire scene from one direction.
Point Light ComponentThe point light component adds a dynamic light source that illuminates the scene equally in all directions.
Spot Light ComponentThe spot light component adds a dynamic light source that illuminates the scene within a cone.
Area LightsRect, disk and cylinder lights compared: when to use which, cost and shadows.
Rect Light ComponentRectangular area lights with shaped highlights and prefiltered cookies.
Disk Light ComponentA circular area light for round fixtures and large lenses.
Cylinder Light ComponentA tube-shaped area light for fluorescent tubes and neon.
Sky Light ComponentThe skylight component illuminates the entire scene, similar to the ambient light component.
Ambient Light ComponentThe Ambient Light Component lights up all objects equally.
Fill Light Component
Reflection Probe ComponentsThe two reflection probe components, box reflection probe component and sphere reflection probe component allow for localized reflections to be added to a scene.
Dynamic ShadowsLight sources, such as point lights, spot lights and directional lights may cast dynamic shadows.
Virtual Shadow MapsVirtual shadow maps replace directional shadow cascades with a paged clipmap around the camera.
Contact ShadowsGround small objects with short screen-space shadows for the sun and key lights.
Global IlluminationRay-traced bounce light, reflections and sky occlusion, and how to choose a technique.
Radiance CascadesStable, noise-free ray-traced bounce light at a fixed cost.
Ambient OcclusionSSAO, MSAO and ray-traced AO, and how they combine with GI.
Direct Lighting ModesClassic shadow-mapped lighting, probe-cached, ReSTIR DI and guided direct lighting.
Guided Direct LightingGuided direct lighting shades and shadows many local lights with a fixed per-cell ray budget.