Skip to content

Commit 5a1975a

Browse files
committedMay 10, 2015
Change lower limit of display_gamma to 1.0 (linear light)
Now matches function comment
1 parent 2b99d90 commit 5a1975a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

Diff for: ‎minetest.conf.example

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
# Disable for speed or for different looks.
117117
#smooth_lighting = true
118118
# Adjust the gamma encoding for the light tables. Valid values are in the range
119-
# 1.1 to 3.0 (inclusive); lower numbers are brighter. This setting is for the
119+
# 1.0 to 3.0 (inclusive); lower numbers are brighter. This setting is for the
120120
# client only and is ignored by the server
121121
#display_gamma = 1.8
122122
# Path to texture directory. All textures are first searched from here.

Diff for: ‎src/light.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ void set_light_table(float gamma)
8888
0
8989
};
9090

91-
gamma = rangelim(gamma, 1.1, 3.0);
91+
gamma = rangelim(gamma, 1.0, 3.0);
9292

9393
float brightness = brightness_step;
9494

0 commit comments

Comments
 (0)
Please sign in to comment.