Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Baking lightmaps before runtime

Resources for precalculating the lit colors of GameObjects and storing them in textures called lightmaps.
Read time 1 minuteLast updated a month ago

Resources for precalculating the lit colors of GameObjects and storing them in textures called lightmaps.

Page

Description

Lightmaps and bakingLearn about precalculating the color and brightness of surfaces in a scene, then storing the result in a texture called a lightmap for later use.
Set up your scene and lights for bakingSet up meshes and GameObjects so that they store precalculated color in lightmaps.
Preview baked lightingEdit a scene and preview changes to lightmaps and lighting without affecting the baked lightmaps.
Bake lightingGenerate lightmaps for your scene.
Configuring baking lightmapsResources for selecting CPU or GPU lightmapping, and changing how GameObjects store lighting in lightmaps.
Troubleshooting baked lightmapsSolve common issues with baked lightmaps, such as hard edges or light bleeding.
Troubleshooting materials missing specular highlightsTroubleshoot issues causing materials missing specular highlights.
Optimize baked lightmapsSpeed up baking time by configuring baking settings or selecting different GPUs for rendering and baking.
Lightmapping settings in the Lighting Settings Asset referenceExplore the properties and settings in the Lighting Settings Asset window to customize baking lightmaps.

Additional resources