Inferensys

Glossary

Baked Lighting

Baked lighting is a real-time rendering optimization technique where complex, static lighting calculations are precomputed offline and stored in texture maps called lightmaps for fast application at runtime.
Compute infrastructure aisle representing runtime, scale, and model serving.
NEURAL APPEARANCE MODELING

What is Baked Lighting?

A core real-time rendering optimization technique for achieving complex, static lighting effects with minimal runtime cost.

Baked lighting is a computer graphics optimization where complex, static lighting calculations—such as global illumination, soft shadows, and ambient occlusion—are precomputed (or "baked") offline and stored in texture maps called lightmaps for application at runtime. This process trades offline computation time for real-time performance, enabling visually rich, physically plausible lighting on static geometry within game engines and interactive applications without the prohibitive cost of calculating light bounces in real-time. It is a foundational technique within Physically Based Rendering (PBR) workflows for environments.

The technique is integral to inverse rendering and neural appearance modeling, where the goal is to estimate scene properties from images. Baking effectively solves the lighting equation for fixed conditions, storing the result. Modern extensions include baking into more complex representations like Spherical Harmonics for Precomputed Radiance Transfer (PRT), allowing for some dynamic lighting effects on static objects. Its primary limitation is immutability; baked lighting cannot respond to changes in scene lighting or geometry without a costly rebake.

NEURAL APPEARANCE MODELING

Core Characteristics of Baked Lighting

Baked lighting is a fundamental real-time rendering optimization where complex, static lighting calculations are precomputed and stored for efficient runtime application. This section details its defining technical attributes and trade-offs.

01

Static Scene Assumption

Baked lighting is fundamentally predicated on a static scene. The geometry, materials, and light sources involved in the precomputation cannot change at runtime. This includes:

  • Immovable objects: Walls, floors, and architectural elements.
  • Static lights: Sunlight, sky illumination, and fixed interior lights.
  • Unchanging materials: Surface properties like albedo and roughness. Any dynamic element, like a moving character or a switched-on flashlight, requires separate, real-time lighting techniques.
02

Precomputation & Lightmaps

The core process involves offline precomputation using a path tracer or radiosity solver to simulate complex light transport like global illumination, color bleeding, and soft shadows. The results are baked into texture maps called lightmaps.

  • UV Unwrapping: Each static object requires a second set of texture coordinates (UVs) to map the 3D surface to the 2D lightmap.
  • Texel Resolution: The density of this mapping determines lighting detail; higher resolution increases memory cost.
  • Storage: Lightmaps typically store baked irradiance or final shaded color, which is multiplied with the material's albedo at runtime.
03

Runtime Performance vs. Memory

This technique offers an extreme performance-for-memory trade-off. Runtime shading is reduced to a simple texture fetch and multiply, enabling complex lighting on low-end hardware.

  • Performance Gain: Eliminates costly real-time GI, shadow, and bounce light calculations per frame.
  • Memory Cost: Lightmaps can consume significant video memory (VRAM). A complex scene may require hundreds of MBs in lightmap data.
  • Bandwidth: The precomputed data must be loaded into memory, impacting asset streaming and load times.
04

Absence of High-Frequency Dynamics

Baked lighting cannot represent high-frequency dynamic effects because it is a precomputed snapshot. This includes:

  • Real-time shadows from moving objects.
  • Dynamic time-of-day changes (e.g., moving sun).
  • Interactive light sources (e.g., turning lights on/off).
  • Specular highlights from moving lights or the viewer. These limitations necessitate a hybrid rendering approach, combining baked static lighting with dynamic techniques for interactive elements.
05

Artifact Management

The baking process can introduce visual artifacts that require careful management:

  • Light Bleeding: Unwanted colored light leaking through thin geometry or seams, caused by low-resolution sampling or UV packing issues.
  • Seams: Visible discontinuities in lighting at UV chart boundaries.
  • Texel Density Mismatches: Differing lighting resolution across surfaces causing blurry or blocky spots.
  • Shadow Acne: Self-shadowing artifacts due to floating-point precision issues during the bake. Mitigation involves artist-driven workflows for UV layout, probe placement, and bake settings.
06

Integration with Modern Pipelines

In contemporary Physically Based Rendering (PBR) engines, baked lighting is rarely used in isolation. It integrates into a deferred or forward+ rendering pipeline as one component:

  • Light Probes: Capture indirect lighting from the bake for dynamic objects.
  • Reflection Probes: Pre-filter environment maps for specular reflections.
  • Ambient Occlusion (AO) Maps: Often baked separately or combined into the lightmap.
  • Hybrid GI: Baked lighting provides base indirect illumination, which is then combined with real-time direct lighting and screen-space techniques for a fully dynamic appearance.
NEURAL APPEARANCE MODELING

How Baked Lighting Works: The Technical Pipeline

Baked lighting is a foundational real-time graphics optimization that precomputes complex, static illumination to enable photorealistic visuals on constrained hardware.

Baked lighting is a real-time rendering optimization where complex, static lighting calculations—such as global illumination, soft shadows, and color bleeding—are precomputed (baked) offline and stored in texture maps called lightmaps for application at runtime. This pipeline transforms a scene's geometry, materials, and light sources into a set of 2D textures that encode the final incident light, decoupling visual fidelity from runtime computational cost. The core trade-off is the loss of dynamic lighting interaction in exchange for a massive performance gain and high-quality, physically plausible results.

The technical pipeline begins with a 3D scene containing static geometry, material properties (like albedo and roughness), and light sources. A lightmap UV atlas is generated, unwrapping the 3D mesh onto 2D texture coordinates. A light baking engine, often using path tracing or radiosity, then simulates light transport, calculating the direct and indirect illumination for each texel. The resulting radiance data is packed into lightmaps and, during runtime, a simplified shader samples these textures, applying the precomputed lighting to the model's surface without performing expensive ray tracing or global illumination calculations in real time.

RENDERING OPTIMIZATION

Baked Lighting vs. Dynamic Lighting: A Technical Comparison

A comparison of two core lighting methodologies in real-time computer graphics, focusing on performance, quality, and use-case suitability for applications like digital twins and spatial computing.

Technical Feature / MetricBaked LightingDynamic LightingHybrid (Baked + Dynamic)

Core Mechanism

Precomputed lighting stored in lightmaps or light probes

Real-time calculation per frame (e.g., direct shading, shadow mapping)

Baked indirect + dynamic direct lighting

Runtime Performance Impact

Very Low (texture lookup)

High (per-pixel/vertex calculations, shadow passes)

Moderate (dynamic direct + baked indirect lookup)

Supports Moving Objects

Limited (dynamic objects receive baked indirect via probes)

Global Illumination (Indirect Bounces)

Yes (precomputed, high quality)

Yes (real-time approximations like VXGI, SSGI)

Yes (baked GI + dynamic approximations)

Shadow Quality for Static Geometry

Very High (precomputed, soft, contact-correct)

Variable (depends on technique/resolution; can be hard/aliased)

High (static shadows baked, dynamic shadows real-time)

Memory Footprint

High (stored lightmap textures)

Low (algorithmic, no precomputed data)

Moderate to High (lightmaps + probe data)

Iteration Time (Artist Workflow)

Slow (requires rebaking on scene change)

Instant (changes visible in editor)

Moderate (bake required for indirect/static changes)

Best Suited For

Static environments, architectural viz, digital twins

Fully dynamic scenes (e.g., games with day/night cycle), VR/AR

Most real-time applications (static world, dynamic characters/objects)

BAKED LIGHTING

Frequently Asked Questions

A deep dive into the precomputed lighting technique essential for real-time graphics, digital twins, and high-fidelity visualization.

Baked lighting is a real-time rendering optimization technique where complex, static lighting calculations—such as global illumination, soft shadows, and ambient occlusion—are precomputed (or 'baked') offline and stored in texture maps called lightmaps. At runtime, the game engine or renderer samples these precomputed lightmaps, applying the lighting information directly to the geometry without performing expensive dynamic calculations. This process involves a lightmap UV unwrap of the 3D model, a high-quality offline render (often using a path tracer), and the baking of the resulting illumination data into textures that are blended with the model's albedo (color) texture during real-time shading.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.