Skip to content
Permalink
Browse files

- fix wrong fog color used for ssao when using multisampling

  • Loading branch information...
dpjudas authored and madame-rachelle committed May 5, 2019
1 parent e150483 commit b19e11433a844aafcec45939ca2bed72622f7aa0
Showing with 1 addition and 4 deletions.
  1. +1 −4 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

0 comments on commit b19e114

Please sign in to comment.
You can’t perform that action at this time.