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

Add a missing 0 in fog.glsl

This commit is contained in:
Abdu Sharif 2022-07-04 17:31:03 +00:00 committed by Cody Glassman
parent c9264de22a
commit c09648c349

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); float fogValue = clamp((dist - gl_Fog.start) * gl_Fog.scale, 0.0, 1.0);
#endif #endif
#ifdef ADDITIVE_BLENDING #ifdef ADDITIVE_BLENDING
color.xyz *= 1 - fogValue; color.xyz *= 1.0 - fogValue;
#else #else
color.xyz = mix(color.xyz, gl_Fog.color.xyz, fogValue); color.xyz = mix(color.xyz, gl_Fog.color.xyz, fogValue);
#endif #endif