You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Change MAX for MIN, fixes #26170
This commit is contained in:
@@ -2208,7 +2208,7 @@ PoolVector<int> VoxelLightBaker::create_gi_probe_data() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
uint16_t alpha = MAX(uint32_t(bake_cells[i].alpha * 65535.0), 65535);
|
uint16_t alpha = MIN(uint32_t(bake_cells[i].alpha * 65535.0), 65535);
|
||||||
uint16_t level = bake_cells[i].level;
|
uint16_t level = bake_cells[i].level;
|
||||||
|
|
||||||
w32[ofs++] = (uint32_t(level) << 16) | uint32_t(alpha);
|
w32[ofs++] = (uint32_t(level) << 16) | uint32_t(alpha);
|
||||||
|
|||||||
Reference in New Issue
Block a user