From: Craig Robbins Date: Sun, 10 May 2015 16:03:09 +0000 (+1000) Subject: Change lower limit of display_gamma to 1.0 (linear light) X-Git-Tag: 0.4.13~286 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5a1975a4e38caa1385cfefac299ce17018172714;p=oweals%2Fminetest.git Change lower limit of display_gamma to 1.0 (linear light) Now matches function comment --- diff --git a/minetest.conf.example b/minetest.conf.example index 3d67afed5..4e3e97b95 100644 --- a/minetest.conf.example +++ b/minetest.conf.example @@ -116,7 +116,7 @@ # Disable for speed or for different looks. #smooth_lighting = true # Adjust the gamma encoding for the light tables. Valid values are in the range -# 1.1 to 3.0 (inclusive); lower numbers are brighter. This setting is for the +# 1.0 to 3.0 (inclusive); lower numbers are brighter. This setting is for the # client only and is ignored by the server #display_gamma = 1.8 # Path to texture directory. All textures are first searched from here. diff --git a/src/light.cpp b/src/light.cpp index 08380a180..5dc01fcf0 100644 --- a/src/light.cpp +++ b/src/light.cpp @@ -88,7 +88,7 @@ void set_light_table(float gamma) 0 }; - gamma = rangelim(gamma, 1.1, 3.0); + gamma = rangelim(gamma, 1.0, 3.0); float brightness = brightness_step;