Skip to content

Commit

Permalink
Hardcode body_orbit_tilt to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Zughy committed Sep 24, 2023
1 parent eda1f70 commit 4db24cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions doc/lua_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -7756,9 +7756,8 @@ child will follow movement and rotation of that bone.
* `base_color`: ColorSpec, changes fog in "skybox" and "plain".
(default: `#ffffff`)
* `body_orbit_tilt`: Float, rotation angle of sun/moon orbit in degrees.
Due to legacy reasons, this field is not set by default.
After a value is assigned, it can only be changed to another float value.
Valid range [-60.0,60.0] (default: `nil`)
Valid range [-60.0,60.0] (default: `0.0`)
* `type`: Available types:
* `"regular"`: Uses 0 textures, `base_color` ignored
* `"skybox"`: Uses 6 textures, `base_color` used as fog.
Expand Down
2 changes: 1 addition & 1 deletion src/client/sky.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ Sky::Sky(s32 id, RenderingEngine *rendering_engine, ITextureSource *tsrc, IShade
}

m_directional_colored_fog = g_settings->getBool("directional_colored_fog");
m_sky_params.body_orbit_tilt = g_settings->getFloat("shadow_sky_body_orbit_tilt", -60., 60.);
m_sky_params.body_orbit_tilt = 0.0f;
m_sky_params.fog_start = rangelim(g_settings->getFloat("fog_start"), 0.0f, 0.99f);

setStarCount(1000);
Expand Down

0 comments on commit 4db24cf

Please sign in to comment.