Fix T80023 Invisible objects or glitches with object 'in front' + 'X-ray'
Rendering only to the depth buffer seems to need a valid fragment shader with a color output on some platform.
This commit is contained in:
parent
f5ccf8727f
commit
3ee2ca0d3c
Notes:
blender-bot
2023-02-14 05:37:19 +01:00
Referenced by issue #80023, Invisible objects or glitches with object 'in front' + 'X-ray'
|
@ -8,6 +8,8 @@ out vec4 fragColor;
|
|||
void main()
|
||||
{
|
||||
float depth = texture(depthBuffer, uvcoordsvar.st).r;
|
||||
/* Fix issues with Intel drivers (see T80023). */
|
||||
fragColor = vec4(0.0);
|
||||
/* Discard background pixels. */
|
||||
if (depth == 1.0) {
|
||||
discard;
|
||||
|
|
Loading…
Reference in New Issue