Repository navigation
GTAONode: Fix dashed creases at a reduced resolution. - #35710
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mrdoob
force-pushed
the
halfres-crease-normal
branch
from
November 25, 2026 09:43
1f7e7d5 to
69ddb1a
Compare
Collaborator
|
The PR works for GTAO. But not with SSGI. The same flicker mentioned in #35361 (comment) is now back. The code you have removed in You can test this by configure a resolution scale of 0.5 in |
Owner
Author
|
Oh, I didn't see the flicker at 0.5 but I do see it at 0.25: Screen.Recording.2026-11-25.at.23.07.29.movI'll focus this PR on GTAONode. |
Picking a single texel at creases makes the ceiling corner flicker in webgpu_postprocessing_ssgi at low resolution scales. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
Author
|
Updated 👌 |
Mugen87
approved these changes
Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related issue: #35361
Description
At a reduced resolution (
resolutionScale < 1, e.g.0.5inwebgpu_postprocessing_ao),GTAONodetakes the center depth from the nearest of the 2x2 depth texels. Since #35361, it takes the normal from that texel only at silhouettes (view-space depth difference above 1%). At creases, it keeps the blended normal.At a crease, the blended normal points between the two surfaces (about 45° at a wall/floor corner), so the corner is shaded as more open than it is. A crease is rarely aligned with the texel grid, so it keeps moving in and out of the 2x2 blocks, and the AO shows dashed light lines along every crease.
This PR takes the normal from the nearest depth texel at creases too, which also removes the 1% test and its two
depthToViewZ()calls.GTAO at half resolution, AO only, averaged over 24 frames:
The mean absolute error against a Cycles AO render of the same scene goes from 6.21 to 6.15 (out of 255). With TRAA, the camera jitter mostly averages the dashes out, but they show up in the AO-only view and without temporal filtering.
#35361 kept the blended normal at creases because picking one texel makes creases flicker in the SSGI demo. That is still the case for
SSGINode(visible atresolutionScale = 0.25), so this PR leaves it unchanged. For GTAO, I measured the frame-to-frame flicker on narrow crops along creases, with TRAA at DPR 2, both with a static camera (TRAA jitter only) and with a slow camera orbit, and couldn't find an increase:Flicker is the mean absolute second temporal difference of the final output, out of 255 (it cancels steady camera motion).
Live links
Enable
aoOnlyin the GUI to see the creases: