mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 12:12:28 +00:00
Merge pull request #85635 from clayjohn/RD-ReflectionProbes-mobile
Set ReflectionProbe frame before mapping id in mobile renderer
This commit is contained in:
commit
4c3d95e02c
@ -1669,6 +1669,8 @@ void LightStorage::update_reflection_probe_buffer(RenderDataRD *p_render_data, c
|
||||
for (uint32_t i = 0; i < reflection_count; i++) {
|
||||
ReflectionProbeInstance *rpi = reflection_sort[i].probe_instance;
|
||||
|
||||
rpi->last_pass = RSG::rasterizer->get_frame_number();
|
||||
|
||||
if (using_forward_ids) {
|
||||
forward_id_storage->map_forward_id(FORWARD_ID_TYPE_REFLECTION_PROBE, rpi->forward_id, i, rpi->last_pass);
|
||||
}
|
||||
@ -1717,8 +1719,6 @@ void LightStorage::update_reflection_probe_buffer(RenderDataRD *p_render_data, c
|
||||
|
||||
// hook for subclass to do further processing.
|
||||
RendererSceneRenderRD::get_singleton()->setup_added_reflection_probe(transform, extents);
|
||||
|
||||
rpi->last_pass = RSG::rasterizer->get_frame_number();
|
||||
}
|
||||
|
||||
if (reflection_count) {
|
||||
|
Loading…
Reference in New Issue
Block a user