Skip to content

[Patch] Stop clear glass from writing its own depth over passthrough - #1412

Merged
untoldengine merged 1 commit into
developfrom
issue/1411
Nov 11, 2026
Merged

untoldengine merged 1 commit into
developfrom
issue/1411

Conversation

@untoldengine

Copy link
Copy Markdown
Owner

Summary

  • In visionOS mixed immersion, every transparent draw forced a real depth write into the compositor submission, even clear glass panes with nothing virtual behind them.
  • That stamped the glass plane's own near-field depth over the real-world passthrough revealed through it, so the compositor reprojected that passthrough using the wrong depth on head rotation — the real object smeared against the glass.
  • Fix: extend the existing isGlass && material.paneShowsItself gate (already used for non-mixed XR) to mixed mode too, so only frosted/self-showing panes write their own depth; clear panes leave the depth of whatever is behind them, same as other XR modes.

Test plan

  • Verified on Apple Vision Pro: ArchViz scene, glass window with no virtual object behind it, mixed immersion — real-world object no longer smears across the glass on head rotation.
  • swift build succeeds.

Fixes #1411

In mixed immersion, every transparent draw wrote its own depth into the
compositor submission, including clear panes with nothing virtual behind
them. That stamped the glass plane's near-field depth over real-world
passthrough, mismatching the compositor's reprojection of the actual
(unrelated, usually farther) real object on head rotation and smearing it.
Only frosted/self-showing panes need to write their own depth; clear panes
now leave the depth of whatever is behind them, matching the existing
non-mixed XR behavior.

Fixes #1411
@untoldengine
untoldengine merged commit c5993dc into develop Nov 11, 2026
3 of 4 checks passed
@untoldengine
untoldengine deleted the issue/1411 branch November 11, 2026 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

visionOS: real-world passthrough smears through glass with nothing behind it on head rotation

1 participant