Skip to content

Solari: Set virtual guide depth on mirror environment miss - #25817

Open
Reklle wants to merge 1 commit into
bevyengine:mainfrom
Reklle:solari-psr-environment-depth
Open

Reklle wants to merge 1 commit into
bevyengine:mainfrom
Reklle:solari-psr-environment-depth

Conversation

@Reklle

@Reklle Reklle commented Sep 17, 2026

Copy link
Copy Markdown

Objective

When a reflection ray misses and hits the environment, the specular motion vector correctly points to infinity. However, the guide depth stays stuck at the glass surface, potentially causing inconsistencies for DLSS-RR.

Solution

Passed psr and primary_world_position into psr_environment_miss. When replace_fully is active, it overrides the virtual depth using the same scaling math as the replace_primary_surface hit branch.

Albedo, normal, and other guide textures are untouched on a miss.

Testing

Cannot run with the dlss feature (no NVIDIA GPU). Tested on an RX 7900 XTX.

Could someone test this on NVIDIA hardware by moving the camera parallel to a mirror that reflects the sky?

AI Disclosure: I used Claude to test it on my setup scene.

@github-actions

Copy link
Copy Markdown
Contributor

Welcome, new contributor!

Please make sure you've read our contributing guide, as well as our policy regarding AI usage, and we look forward to reviewing your pull request shortly ✨

@stuartparmenter stuartparmenter added C-Bug An unexpected or incorrect behavior A-Rendering Drawing game state to the screen S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Sep 17, 2026
@github-project-automation github-project-automation Bot moved this to Needs SME Triage in Rendering Sep 17, 2026
@JMS55 JMS55 added S-Needs-Testing Testing must be done to verify an issue or fix and removed S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Sep 17, 2026
@JMS55

JMS55 commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

guide depth stays stuck at the glass surface

What glass surface? Solari does not support transparencies yet.


I do not currently have time to test this, as I am quite busy prepping for the 0.20 release. Please find someone else to test side by side and confirm this improves denoising results, and post video/screenshot proof in this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Rendering Drawing game state to the screen C-Bug An unexpected or incorrect behavior S-Needs-Testing Testing must be done to verify an issue or fix

Projects

Status: Needs SME Triage

Development

Successfully merging this pull request may close these issues.

3 participants