Eevee: Fix broken AO and Contact shadows on certain platform.
authorClément Foucault <foucault.clem@gmail.com>
Wed, 14 Feb 2018 18:02:03 +0000 (19:02 +0100)
committerClément Foucault <foucault.clem@gmail.com>
Wed, 14 Feb 2018 18:02:03 +0000 (19:02 +0100)
This was caused by ce0f70fbd62fc812a2508c27a2f392cde0acbdfa

source/blender/draw/engines/eevee/shaders/effect_minmaxz_frag.glsl

index ea1dba385941f8b3976af1dd4ce7805bf33afce7..05fef73b159317718d4d107cef05b9032b1064af 100644 (file)
@@ -70,7 +70,6 @@ void main()
 #if defined(GPU_INTEL) || defined(GPU_ATI)
        /* Use color format instead of 24bit depth texture */
        fragColor = vec4(val);
-#else
-       gl_FragDepth = val;
 #endif
+       gl_FragDepth = val;
 }
\ No newline at end of file