Skip to content

Commit 91d244c

Browse files
ClobberXDparamat
authored andcommittedJun 27, 2019
Increase upper limit of display_gamma to 10 (#8618)
1 parent 429a989 commit 91d244c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

Diff for: ‎builtin/settingtypes.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ fov (Field of view) int 72 45 160
637637

638638
# Adjust the gamma encoding for the light tables. Higher numbers are brighter.
639639
# This setting is for the client only and is ignored by the server.
640-
display_gamma (Gamma) float 1.0 0.5 3.0
640+
display_gamma (Gamma) float 1.0 0.5 10.0
641641

642642
# Gradient of light curve at minimum light level.
643643
lighting_alpha (Darkness sharpness) float 0.0 0.0 4.0

Diff for: ‎src/light.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ void set_light_table(float gamma)
6666
params.center = g_settings->getFloat("lighting_boost_center");
6767
params.sigma = g_settings->getFloat("lighting_boost_spread");
6868
// Gamma correction
69-
params.gamma = rangelim(gamma, 0.5f, 3.0f);
69+
params.gamma = rangelim(gamma, 0.5f, 10.0f);
7070

7171
// Boundary values should be fixed
7272
light_LUT[0] = 0;

0 commit comments

Comments
 (0)
Please sign in to comment.