Documentation

Unity Engine

Unity Engine

Precalculating surface lighting with lightmaps

Resources for improving performance by setting up Unity to do complicated lighting calculations ahead of time.
Read time 1 minuteLast updated a month ago

Resources for improving performance by setting up Unity to do complicated lighting calculations ahead of time, either by baking lightmaps into a build or creating lightmaps at runtime.

Page

Description

Global illuminationLearn about baking lightmaps before runtime, or creating lightmaps at runtime using Enlighten Realtime Global Illumination.
Baking lightmaps before runtimeResources for precalculating the lit colors of GameObjects and storing them in textures called lightmaps.
Update lightmaps at runtime with Enlighten Realtime Global IlluminationResources for using Enlighten to precalculate visibility information, which Unity uses to create and update lightmaps at runtime.
Configuring lightmappingResources for choosing between baked and real-time lightmapping, and changing how GameObjects contribute to lightmaps.
Lightmap UVs and packingLearn how Unity generates and packs lightmap UVs to store illumination for static geometry.