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:
commit
cec7f1e7bc
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue