Skip to content

Commit

Permalink
- fix wrong fog color used for ssao when using multisampling
Browse files Browse the repository at this point in the history
  • Loading branch information
dpjudas authored and madame-rachelle committed May 14, 2019
1 parent e150483 commit b19e114
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions wadsrc/static/shaders/glsl/ssaocombine.fp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b19e114

Please sign in to comment.