diff options
author | sofar <sofar@foo-projects.org> | 2023-02-25 16:08:33 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-26 01:08:33 +0100 |
commit | 2083252c05ece1e47c1c476fda2b9eda3bf332a0 (patch) | |
tree | 3af58a210bad99834110e4aff820ce04ee839b2b /src/skyparams.h | |
parent | 6e1c70e02b00df94a584bb4247cfa4f4c616c8d5 (diff) | |
download | minetest-2083252c05ece1e47c1c476fda2b9eda3bf332a0.tar.xz |
Sky: transmit body_orbit_tilt to client. (#13193)
This obsoletes the current client-side setting entirely. The server can
transmit the tilt to the client directly and will send 0.0f as default
value.
Co-authored-by: x2048 <codeforsmile@gmail.com>
Co-authored-by: sfan5 <sfan5@live.de>
Diffstat (limited to 'src/skyparams.h')
-rw-r--r-- | src/skyparams.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/skyparams.h b/src/skyparams.h index 07068634b..6c904d2a1 100644 --- a/src/skyparams.h +++ b/src/skyparams.h @@ -40,6 +40,7 @@ struct SkyboxParams video::SColor fog_sun_tint; video::SColor fog_moon_tint; std::string fog_tint_type; + float body_orbit_tilt; }; struct SunParams @@ -95,6 +96,7 @@ 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; } |