Skip to content

Commit

Permalink
Update default lighting settings
Browse files Browse the repository at this point in the history
  • Loading branch information
numberZero committed Jul 5, 2017
1 parent 250dfc7 commit 3d9ec42
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
6 changes: 3 additions & 3 deletions builtin/settingtypes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -510,11 +510,11 @@ 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.4 0.5 3.0

lighting_alpha (Darkness sharpness) float 1.0 0.0 4.0
lighting_alpha (Darkness sharpness) float 0.8 0.0 4.0

lighting_beta (Lightness sharpness) float 2.0 0.0 4.0
lighting_beta (Lightness sharpness) float 1.6 0.0 4.0

# Path to texture directory. All textures are first searched from here.
texture_path (Texture path) path
Expand Down
10 changes: 8 additions & 2 deletions minetest.conf.example
Original file line number Diff line number Diff line change
Expand Up @@ -587,8 +587,14 @@

# 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.
# type: float min: 1 max: 3
# display_gamma = 2.2
# type: float min: 0.5 max: 3.0
# display_gamma = 1.4

# type: float min: 0.0 max: 4.0
# lighting_alpha = 0.8

# type: float min: 0.0 max: 4.0
# lighting_beta = 1.6

# Path to texture directory. All textures are first searched from here.
# type: path
Expand Down
6 changes: 3 additions & 3 deletions src/defaultsettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ void set_default_settings(Settings *settings)
settings->setDefault("leaves_style", "fancy");
settings->setDefault("connected_glass", "false");
settings->setDefault("smooth_lighting", "true");
settings->setDefault("lighting_alpha", "1.0");
settings->setDefault("lighting_beta", "2.0");
settings->setDefault("display_gamma", "1.0");
settings->setDefault("lighting_alpha", "0.8");
settings->setDefault("lighting_beta", "1.6");
settings->setDefault("display_gamma", "1.4");
settings->setDefault("texture_path", "");
settings->setDefault("shader_path", "");
settings->setDefault("video_driver", "opengl");
Expand Down
2 changes: 2 additions & 0 deletions src/settings_translation_file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,8 @@ fake_function() {
gettext("Field of view while zooming in degrees.\nThis requires the \"zoom\" privilege on the server.");
gettext("Gamma");
gettext("Adjust the gamma encoding for the light tables. Higher numbers are brighter.\nThis setting is for the client only and is ignored by the server.");
gettext("Darkness sharpness");
gettext("Lightness sharpness");
gettext("Texture path");
gettext("Path to texture directory. All textures are first searched from here.");
gettext("Video driver");
Expand Down

0 comments on commit 3d9ec42

Please sign in to comment.