1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-31 12:36:40 +00:00

Merge branch 'shader_error' into 'master'

Add a missing 0 in fog.glsl

See merge request OpenMW/openmw!2089
This commit is contained in:
Cody Glassman 2022-07-04 17:31:03 +00:00
commit cec7f1e7bc

View file

@ -18,7 +18,7 @@ vec4 applyFogAtDist(vec4 color, float euclideanDist, float linearDist)
float fogValue = clamp((dist - gl_Fog.start) * gl_Fog.scale, 0.0, 1.0);
#endif
#ifdef ADDITIVE_BLENDING
color.xyz *= 1 - fogValue;
color.xyz *= 1.0 - fogValue;
#else
color.xyz = mix(color.xyz, gl_Fog.color.xyz, fogValue);
#endif