Lightmapper: Prevent infinite loop when blitting lightmaps into an atlas

This commit is contained in:
BlueCube3310
2024-07-11 23:42:52 +02:00
parent 14877d1f99
commit 60a255a0d0
6 changed files with 29 additions and 6 deletions

View File

@ -137,6 +137,12 @@
<constant name="BAKE_ERROR_TEXTURE_SIZE_TOO_SMALL" value="9" enum="BakeError">
Lightmap baking failed as the maximum texture size is too small to fit some of the meshes marked for baking.
</constant>
<constant name="BAKE_ERROR_LIGHTMAP_TOO_SMALL" value="10" enum="BakeError">
Lightmap baking failed as the lightmap is too small.
</constant>
<constant name="BAKE_ERROR_ATLAS_TOO_SMALL" value="11" enum="BakeError">
Lightmap baking failed as the lightmap was unable to fit into an atlas.
</constant>
<constant name="ENVIRONMENT_MODE_DISABLED" value="0" enum="EnvironmentMode">
Ignore environment lighting when baking lightmaps.
</constant>