浏览代码

Fixed ambient quad shader.

Lasse Öörni 14 年之前
父节点
当前提交
ed3751e1f8
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);
 }