Browse Source

Increase upper limit of display_gamma (#8618)

Port of Old MT commit 91d244c522
From: ANAND <ClobberXD@gmail.com>
Date: Thu, 27 Jun 2019 08:34:12 +0530
master
OldCoder 3 months ago
parent
commit
e2357379c8
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      builtin/settingtypes.txt
  2. 1
    1
      src/light.cpp

+ 1
- 1
builtin/settingtypes.txt View File

@@ -590,7 +590,7 @@ zoom_fov (Field of view for zoom) int 15 7 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

lighting_alpha (Darkness sharpness) float 0.0 0.0 4.0


+ 1
- 1
src/light.cpp View File

@@ -44,7 +44,7 @@ void set_light_table(float gamma)
const float b = 3 - 2 * alpha - beta;
const float c = alpha;
// gamma correction
gamma = rangelim(gamma, 0.5, 3.0);
gamma = rangelim (gamma, 0.5, 10.0);

for (size_t i = 0; i < LIGHT_MAX; i++) {
float x = i;

Loading…
Cancel
Save