文档

Unity Engine


User Manual

Script Reference

Unity Engine


Lightmap UVs and packing

Learn how Unity generates and packs lightmap UVs to store illumination for static geometry.
阅读时间1 分钟最后更新于 23 天前

Lightmaps are pre-calculated lighting textures that store illumination for static geometry. Unity generates them via a multi-step process that transforms 3D mesh data into optimized 2D textures. Both the Realtime Global Illumination system and the Baked Global Illumination system use lightmaps, and therefore need lightmap UVs.

Page

Description

Lightmap generation processLearn how Unity generates lightmaps.
Baked lightmap UVsLearn how baked lightmap UVs are per-mesh so all instances share the same UVs.
Real-time lightmap UVsLearn how Unity computes real-time lightmap UVs.
Generating lightmap UVsGenerate lightmap UVs on import or use your own.
Lightmap packingLearn how Unity packs lightmaps and select the Unity lightmap packer.
Check lightmap UVsCheck real-time and baked lightmap UVs.
Lightmap UVs referenceLearn about the model import settings.