-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix updating lightmap captures on Mobile #99367
Conversation
Updated my MRP to this PR: This PR Indeed fixes the issues for the Mobile Renderer, thanks! Mobile_Probes.mp4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally, it works as expected.
if (p_render_list == RENDER_LIST_OPAQUE && lightmap_captures_used) { | ||
RD::get_singleton()->buffer_update(scene_state.lightmap_capture_buffer, 0, sizeof(LightmapCaptureData) * lightmap_captures_used, scene_state.lightmap_captures); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that despite this being done in the opaque render list, it works on dynamic objects that have transparent materials too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
These fixes always make me laugh when I run into them. You prepare yourself to do a deep dive into figuring out how a system works and what needs to change and then you realize that its literally just one forgotten line of code
Thanks! |
Fixes #84846
"The best solution is usually the easiest one"
The mobile backend would only create the probe buffer, but never update it (unlike Forward)