Fix: EEVEE: Missing overlay when viewport resolution scale is greater than 1

This is a partial fix as it doesn't fix the gpencil
scene intersection.
This commit is contained in:
Clément Foucault
2024-12-08 21:54:03 +01:00
parent 7b6cc57215
commit c89be1b774

View File

@@ -626,7 +626,7 @@ float film_display_depth_amend(ivec2 texel, float depth)
if (scaling_factor > 1) {
/* The workaround below creates ugly artifacts for overlays relying on depth equal tests.
* In this case, it is better to rely on overlay engine to do a depth pass (see #124013). */
return 0.0;
return 1.0;
}
/* This effectively offsets the depth of the whole 2x2 region to the lowest value of the region
* twice. One for X and one for Y direction. */