diff options
author | Lars Hofhansl <larsh@apache.org> | 2016-12-03 21:43:25 -0800 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2016-12-07 04:07:54 +0000 |
commit | 075833e39368e63e06889f21140f816420e83541 (patch) | |
tree | c40d5390e23bbe87a8672f44e8c51649d3331091 /client/shaders/water_surface_shader/opengl_fragment.glsl | |
parent | 9714cdcf4ba51b44cca72e133ec5ef2a3c9f50f6 (diff) | |
download | minetest-075833e39368e63e06889f21140f816420e83541.tar.gz minetest-075833e39368e63e06889f21140f816420e83541.tar.bz2 minetest-075833e39368e63e06889f21140f816420e83541.zip |
Fog: Make fraction of visible distance at which fog starts configurable
Optimise the fetching of global settings 'camera_smoothing',
'cinematic' and 'cinematic_camera_smoothing'.
Cache 'cam_smoothing'.
Diffstat (limited to 'client/shaders/water_surface_shader/opengl_fragment.glsl')
-rw-r--r-- | client/shaders/water_surface_shader/opengl_fragment.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/shaders/water_surface_shader/opengl_fragment.glsl b/client/shaders/water_surface_shader/opengl_fragment.glsl index 4164870c7..c4e78470d 100644 --- a/client/shaders/water_surface_shader/opengl_fragment.glsl +++ b/client/shaders/water_surface_shader/opengl_fragment.glsl @@ -21,7 +21,7 @@ bool texSeamless = false; const float e = 2.718281828459; const float BS = 10.0; -const float fogStart = 0.4; +const float fogStart = FOG_START; const float fogShadingParameter = 1 / ( 1 - fogStart); #ifdef ENABLE_TONE_MAPPING |