Explorar o código

Fixed ambient quad shader.

Lasse Öörni %!s(int64=14) %!d(string=hai) anos
pai
achega
ed3751e1f8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      SourceAssets/GLSLShaders/Ambient.frag

+ 1 - 1
SourceAssets/GLSLShaders/Ambient.frag

@@ -20,5 +20,5 @@ void main()
     // Store coarse linear depth to alpha channel for deferred antialiasing
     gl_FragColor = vec4(ambientColor + GetFogFactor(linearDepth) * cFogColor, linearDepth);
     // Copy the actual hardware depth value with slight bias to the destination depth buffer
-    gl_FragDepth = min(depth + 0.0000001;
+    gl_FragDepth = min(depth + 0.0000001, 1.0);
 }