mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-16 18:01:40 +00:00
Return shadow_sky_body_orbit_tilt setting
Used as a default value when the game does not change the value via API (e.g. legacy server)
This commit is contained in:
parent
9af587c54e
commit
f3b198e490
8 changed files with 28 additions and 7 deletions
|
@ -98,7 +98,8 @@ public:
|
|||
}
|
||||
void setBodyOrbitTilt(float body_orbit_tilt)
|
||||
{
|
||||
m_sky_params.body_orbit_tilt = body_orbit_tilt;
|
||||
if (body_orbit_tilt != SkyboxParams::INVALID_SKYBOX_TILT)
|
||||
m_sky_params.body_orbit_tilt = rangelim(body_orbit_tilt, -90.f, 90.f);
|
||||
}
|
||||
void overrideColors(video::SColor bgcolor, video::SColor skycolor)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue