Eevee: Fix SSR & AO on Vega + Mesa.

Really strange bug. Maybe gl_FragDepth is broken on this implementation.
This commit is contained in:
Clément Foucault 2018-02-07 05:30:26 +01:00
parent 708ef19d88
commit ce0f70fbd6
Notes: blender-bot 2023-02-14 19:45:25 +01:00
Referenced by commit 2464dcef37, Eevee: Fix broken AO and Contact shadows on certain platform.
1 changed files with 4 additions and 2 deletions

View File

@ -23,7 +23,9 @@ uniform sampler2D depthBuffer;
#define minmax(a, b) max(a, b)
#endif
#ifdef GPU_INTEL
/* On some AMD card / driver conbination, it is needed otherwise,
* the shader does not write anything. */
#if defined(GPU_INTEL) || defined(GPU_ATI)
out vec4 fragColor;
#endif
@ -65,7 +67,7 @@ void main()
}
#endif
#ifdef GPU_INTEL
#if defined(GPU_INTEL) || defined(GPU_ATI)
/* Use color format instead of 24bit depth texture */
fragColor = vec4(val);
#else