mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Fix LightmapGI not being correctly applied to objects
This commit is contained in:
parent
d705613db3
commit
24ed12d4a3
2 changed files with 2 additions and 2 deletions
|
@ -844,7 +844,7 @@ void RenderForwardClustered::_fill_instance_data(RenderListType p_render_list, i
|
||||||
|
|
||||||
RenderElementInfo &element_info = rl->element_info[p_offset + 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) {
|
if (cant_repeat) {
|
||||||
prev_surface = nullptr;
|
prev_surface = nullptr;
|
||||||
|
|
|
@ -1976,7 +1976,7 @@ void RenderForwardMobile::_fill_instance_data(RenderListType p_render_list, uint
|
||||||
RenderElementInfo &element_info = rl->element_info[p_offset + i];
|
RenderElementInfo &element_info = rl->element_info[p_offset + i];
|
||||||
|
|
||||||
// Sets lod_index and uses_lightmap at once.
|
// 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) {
|
if (p_update_buffer) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue