mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-30 07:41:22 +00:00
- fix wrong fog color used for ssao when using multisampling
This commit is contained in:
parent
e150483ead
commit
b19e11433a
1 changed files with 1 additions and 4 deletions
|
@ -22,10 +22,7 @@ void main()
|
||||||
ivec2 ipos = ivec2(uv * vec2(texSize));
|
ivec2 ipos = ivec2(uv * vec2(texSize));
|
||||||
|
|
||||||
#if defined(MULTISAMPLE)
|
#if defined(MULTISAMPLE)
|
||||||
vec3 fogColor = vec3(0.0);
|
vec3 fogColor = texelFetch(SceneFogTexture, ipos, 0).rgb;
|
||||||
for (int i = 0; i < SampleCount; i++)
|
|
||||||
fogColor += texelFetch(SceneFogTexture, ipos, i).rgb;
|
|
||||||
fogColor /= float(SampleCount);
|
|
||||||
#else
|
#else
|
||||||
vec3 fogColor = texelFetch(SceneFogTexture, ipos, 0).rgb;
|
vec3 fogColor = texelFetch(SceneFogTexture, ipos, 0).rgb;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue