A tool for the most efficient lightmap packing in Unity.
It generates unique uv2 per mesh, instead of using lightmap UV offsets, which when combined with static batching doesn’t create any extra cost. Additional vertex streams are used to set uv2 in editor, which requires modifications to bakery scripts. Lightmap Scale is also calculated differently which allows it to have perfectly uniform texel density when lightmap scale is set to 1.
https://github.com/z3y/XatlasLightmap.git
Tools > XatlasLightmap > PatchBakery
(only once)XatlasLightmapPacker
script on a GameObjectSponza:
Checker preview:
Sponza 2:
com.z3y.xatlaslightmap
未設定
0.1.6
2019.4 以降
なし
なし
なし
未設定
未設定