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:
Clément Foucault 2020-09-13 15:51:46 +02:00
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'
1 changed files with 2 additions and 0 deletions

View File

@ -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;