From b19e11433a844aafcec45939ca2bed72622f7aa0 Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Sun, 5 May 2019 23:23:47 +0200 Subject: [PATCH] - fix wrong fog color used for ssao when using multisampling --- wadsrc/static/shaders/glsl/ssaocombine.fp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/wadsrc/static/shaders/glsl/ssaocombine.fp b/wadsrc/static/shaders/glsl/ssaocombine.fp index 8fb17752f9..0d592549f3 100644 --- a/wadsrc/static/shaders/glsl/ssaocombine.fp +++ b/wadsrc/static/shaders/glsl/ssaocombine.fp @@ -22,10 +22,7 @@ void main() ivec2 ipos = ivec2(uv * vec2(texSize)); #if defined(MULTISAMPLE) - vec3 fogColor = vec3(0.0); - for (int i = 0; i < SampleCount; i++) - fogColor += texelFetch(SceneFogTexture, ipos, i).rgb; - fogColor /= float(SampleCount); + vec3 fogColor = texelFetch(SceneFogTexture, ipos, 0).rgb; #else vec3 fogColor = texelFetch(SceneFogTexture, ipos, 0).rgb; #endif