diff options
Diffstat (limited to 'src/renderergl2/glsl/generic_vp.glsl')
-rw-r--r-- | src/renderergl2/glsl/generic_vp.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/renderergl2/glsl/generic_vp.glsl b/src/renderergl2/glsl/generic_vp.glsl index 0e5b38b4..8543ffd7 100644 --- a/src/renderergl2/glsl/generic_vp.glsl +++ b/src/renderergl2/glsl/generic_vp.glsl @@ -193,7 +193,7 @@ float CalcFog(vec3 position) float t = dot(vec4(position, 1.0), u_FogDepth); float eyeOutside = float(u_FogEyeT < 0.0); - float fogged = float(t < eyeOutside); + float fogged = float(t >= eyeOutside); t += 1e-6; t *= fogged / (t - u_FogEyeT * eyeOutside); |