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:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user