aboutsummaryrefslogtreecommitdiff
path: root/client/shaders
diff options
context:
space:
mode:
authornumberZero <silverunicorn2011@yandex.ru>2017-01-31 11:42:39 +0400
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-01-31 08:42:39 +0100
commit74afe6fe6bf5bd6eeba3b6f4fbbfbe8758e7f750 (patch)
tree45fc7d6dd243a0fb251a45004e643af0dfc2cff6 /client/shaders
parentcdc538e0a242167cd7031d40670d2d4464b87f2c (diff)
downloadminetest-74afe6fe6bf5bd6eeba3b6f4fbbfbe8758e7f750.tar.gz
minetest-74afe6fe6bf5bd6eeba3b6f4fbbfbe8758e7f750.tar.bz2
minetest-74afe6fe6bf5bd6eeba3b6f4fbbfbe8758e7f750.zip
Fix fog weirdness (#5146)
Diffstat (limited to 'client/shaders')
-rw-r--r--client/shaders/nodes_shader/opengl_fragment.glsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/shaders/nodes_shader/opengl_fragment.glsl b/client/shaders/nodes_shader/opengl_fragment.glsl
index 914f9f873..7c5b9b613 100644
--- a/client/shaders/nodes_shader/opengl_fragment.glsl
+++ b/client/shaders/nodes_shader/opengl_fragment.glsl
@@ -37,7 +37,7 @@ const float fogShadingParameter = 1 / ( 1 - fogStart);
vec3 uncharted2Tonemap(vec3 x)
{
- return ((x * (0.22 * x + 0.03) + 0.002) / (x * (0.22 * x + 0.3) + 0.06)) - 0.03334;
+ return ((x * (0.22 * x + 0.03) + 0.002) / (x * (0.22 * x + 0.3) + 0.06)) - 0.03333;
}
vec4 applyToneMapping(vec4 color)