mirror of
https://github.com/minetest/minetest.git
synced 2025-07-04 00:40:24 +02:00
Enable negative values for sun/moon orbit tilt (Northern hemisphere) (#12904)
This commit is contained in:
@ -103,10 +103,8 @@ Sky::Sky(s32 id, RenderingEngine *rendering_engine, ITextureSource *tsrc, IShade
|
||||
|
||||
m_directional_colored_fog = g_settings->getBool("directional_colored_fog");
|
||||
|
||||
if (g_settings->getBool("enable_dynamic_shadows")) {
|
||||
float val = g_settings->getFloat("shadow_sky_body_orbit_tilt");
|
||||
m_sky_body_orbit_tilt = rangelim(val, 0.0f, 60.0f);
|
||||
}
|
||||
if (g_settings->getBool("enable_dynamic_shadows"))
|
||||
m_sky_body_orbit_tilt = g_settings->getFloat("shadow_sky_body_orbit_tilt", -60.0f, 60.0f);
|
||||
|
||||
setStarCount(1000);
|
||||
}
|
||||
|
Reference in New Issue
Block a user