Fix #114000: EEVEE-Next: Fade/Facing overlays #120976

Merged
Jeroen Bakker merged 1 commits from Jeroen-Bakker/blender:eevee/fix/114000 into main 2024-04-23 14:45:52 +02:00

1 Commits

Author SHA1 Message Date
Jeroen Bakker 9cc6d0122f Fix #114000: EEVEE-Next: Fade/Facing overlays
buildbot/vexp-code-patch-lint Build done. Details
buildbot/vexp-code-patch-linux-x86_64 Build done. Details
buildbot/vexp-code-patch-darwin-x86_64 Build done. Details
buildbot/vexp-code-patch-darwin-arm64 Build done. Details
buildbot/vexp-code-patch-windows-amd64 Build done. Details
buildbot/vexp-code-patch-coordinator Build done. Details
The fade and facing overlays use a depth equal test. EEVEE next uses
multiple samples to construct the depth and the depth can be different
than the death-center pixel depth.

This PR uses depth-less tests, but in case of the facing overlays it
can produce some artifacts at sharp edges where the normals bleeds.

Other solution would be to render the depth center depth buffer when
one of these overlays are turned on, but that adds overhead as that
will most likely be redrawn for each draw loop.
2024-04-23 13:44:16 +02:00