Skip to content

Commit

Permalink
Increase upper limit of display_gamma to 10 (#8618)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClobberXD authored and paramat committed Jun 27, 2019
1 parent 429a989 commit 91d244c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion builtin/settingtypes.txt
Expand Up @@ -637,7 +637,7 @@ fov (Field of view) int 72 45 160

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

# Gradient of light curve at minimum light level.
lighting_alpha (Darkness sharpness) float 0.0 0.0 4.0
Expand Down
2 changes: 1 addition & 1 deletion src/light.cpp
Expand Up @@ -66,7 +66,7 @@ void set_light_table(float gamma)
params.center = g_settings->getFloat("lighting_boost_center");
params.sigma = g_settings->getFloat("lighting_boost_spread");
// Gamma correction
params.gamma = rangelim(gamma, 0.5f, 3.0f);
params.gamma = rangelim(gamma, 0.5f, 10.0f);

// Boundary values should be fixed
light_LUT[0] = 0;
Expand Down

0 comments on commit 91d244c

Please sign in to comment.