Fix LightmapGI not being correctly applied to objects

(cherry picked from commit 24ed12d4a3)
This commit is contained in:
BlueCube3310 2025-10-01 19:18:09 +02:00 committed by Thaddeus Crews
parent 0990896d91
commit dd92108759
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC
2 changed files with 2 additions and 2 deletions

View file

@ -846,7 +846,7 @@ void RenderForwardClustered::_fill_instance_data(RenderListType p_render_list, i
RenderElementInfo &element_info = rl->element_info[p_offset + i];
element_info.value = uint32_t(surface->sort.sort_key2 & 0x0FFF00000000);
element_info.value = uint32_t((surface->sort.sort_key2 & 0x0FFF00000000) >> 32u);
if (cant_repeat) {
prev_surface = nullptr;

View file

@ -1975,7 +1975,7 @@ void RenderForwardMobile::_fill_instance_data(RenderListType p_render_list, uint
RenderElementInfo &element_info = rl->element_info[p_offset + i];
// Sets lod_index and uses_lightmap at once.
element_info.value = uint32_t(surface->sort.sort_key2 & 0x01FF00000000);
element_info.value = uint32_t((surface->sort.sort_key2 & 0x01FF00000000) >> 32u);
}
if (p_update_buffer) {