1
0
Fork 0
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:
x2048 2023-03-24 12:34:21 +01:00 committed by GitHub
parent 9af587c54e
commit f3b198e490
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 28 additions and 7 deletions

View file

@ -19,6 +19,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#pragma once
struct SkyColor
{
video::SColor day_sky;
@ -32,6 +33,8 @@ struct SkyColor
struct SkyboxParams
{
static constexpr float INVALID_SKYBOX_TILT = -1024.f;
video::SColor bgcolor;
std::string type;
std::vector<std::string> textures;
@ -40,7 +43,7 @@ struct SkyboxParams
video::SColor fog_sun_tint;
video::SColor fog_moon_tint;
std::string fog_tint_type;
float body_orbit_tilt;
float body_orbit_tilt { INVALID_SKYBOX_TILT };
};
struct SunParams
@ -96,7 +99,6 @@ public:
sky.fog_sun_tint = video::SColor(255, 244, 125, 29);
sky.fog_moon_tint = video::SColorf(0.5, 0.6, 0.8, 1).toSColor();
sky.fog_tint_type = "default";
sky.body_orbit_tilt = 0.0f;
return sky;
}