diff options
author | numberZero <silverunicorn2011@yandex.ru> | 2017-01-31 11:42:39 +0400 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-01-31 08:42:39 +0100 |
commit | 74afe6fe6bf5bd6eeba3b6f4fbbfbe8758e7f750 (patch) | |
tree | 45fc7d6dd243a0fb251a45004e643af0dfc2cff6 /client | |
parent | cdc538e0a242167cd7031d40670d2d4464b87f2c (diff) | |
download | minetest-74afe6fe6bf5bd6eeba3b6f4fbbfbe8758e7f750.tar.gz minetest-74afe6fe6bf5bd6eeba3b6f4fbbfbe8758e7f750.tar.bz2 minetest-74afe6fe6bf5bd6eeba3b6f4fbbfbe8758e7f750.zip |
Fix fog weirdness (#5146)
Diffstat (limited to 'client')
-rw-r--r-- | client/shaders/nodes_shader/opengl_fragment.glsl | 2 |
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) |