Merge pull request #54510 from pycbouh/lightmapper-respect-maximum-size-3.x
This commit is contained in:
commit
4b7d1aed66
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,7 @@ Error LightmapperCPU::_layout_atlas(int p_max_size, Vector2i *r_atlas_size, int
|
|||
}
|
||||
|
||||
float mem_utilization = static_cast<float>(mem_occupied) / mem_used;
|
||||
if (slices * atlas_size.y < 16384) { // Maximum Image size
|
||||
if (slices * atlas_size.y <= 16384) { // Maximum Image size
|
||||
if (mem_used < best_atlas_memory || (mem_used == best_atlas_memory && mem_utilization > best_atlas_mem_utilization)) {
|
||||
best_atlas_size = atlas_size;
|
||||
best_atlas_offsets = curr_atlas_offsets;
|
||||
|
|
Loading…
Reference in a new issue