summaryrefslogtreecommitdiff
path: root/gfx/gl/shaders
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/gl/shaders')
-rw-r--r--gfx/gl/shaders/basicShader.fs1
1 files changed, 1 insertions, 0 deletions
diff --git a/gfx/gl/shaders/basicShader.fs b/gfx/gl/shaders/basicShader.fs
index ab5e58b..ff1c822 100644
--- a/gfx/gl/shaders/basicShader.fs
+++ b/gfx/gl/shaders/basicShader.fs
@@ -24,5 +24,6 @@ main()
float clear = round(mix(textureColour.a, 1, Colour.a));
gPosition = vec4(FragPos, clear);
gNormal = vec4(Normal, clear);
+ gl_FragDepth = mix(1.0, gl_FragCoord.z, clear);
gAlbedoSpec = mix(textureColour, vec4(Colour.rgb, 1), Colour.a);
}