Merge pull request #85635 from clayjohn/RD-ReflectionProbes-mobile

Set ReflectionProbe frame before mapping id in mobile renderer
This commit is contained in:
Rémi Verschelde 2023-12-04 23:20:47 +01:00
commit 4c3d95e02c
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -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) {