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 7, 2017
1 parent 250dfc7 commit 0dd5c91
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
4 changes: 2 additions & 2 deletions builtin/settingtypes.txt
Expand Up @@ -512,9 +512,9 @@ zoom_fov (Field of view for zoom) int 15 7 160
# This setting is for the client only and is ignored by the server.
display_gamma (Gamma) float 1.0 0.5 3.0

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

lighting_beta (Lightness sharpness) float 2.0 0.0 4.0
lighting_beta (Lightness sharpness) float 0.0 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
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.0

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

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

# Path to texture directory. All textures are first searched from here.
# type: path
Expand Down
4 changes: 2 additions & 2 deletions src/defaultsettings.cpp
Expand Up @@ -135,8 +135,8 @@ 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("lighting_alpha", "0.0");
settings->setDefault("lighting_beta", "0.0");
settings->setDefault("display_gamma", "1.0");
settings->setDefault("texture_path", "");
settings->setDefault("shader_path", "");
Expand Down
2 changes: 2 additions & 0 deletions src/settings_translation_file.cpp
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 0dd5c91

Please sign in to comment.