mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-16 18:01:40 +00:00
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>
This commit is contained in:
parent
6e1c70e02b
commit
2083252c05
12 changed files with 30 additions and 19 deletions
|
@ -96,6 +96,10 @@ public:
|
|||
{
|
||||
m_fallback_bg_color = fallback_bg_color;
|
||||
}
|
||||
void setBodyOrbitTilt(float body_orbit_tilt)
|
||||
{
|
||||
m_sky_params.body_orbit_tilt = body_orbit_tilt;
|
||||
}
|
||||
void overrideColors(video::SColor bgcolor, video::SColor skycolor)
|
||||
{
|
||||
m_bgcolor = bgcolor;
|
||||
|
@ -164,7 +168,6 @@ private:
|
|||
bool m_directional_colored_fog;
|
||||
bool m_in_clouds = true; // Prevent duplicating bools to remember old values
|
||||
bool m_enable_shaders = false;
|
||||
float m_sky_body_orbit_tilt = 0.0f;
|
||||
|
||||
video::SColorf m_bgcolor_bright_f = video::SColorf(1.0f, 1.0f, 1.0f, 1.0f);
|
||||
video::SColorf m_skycolor_bright_f = video::SColorf(1.0f, 1.0f, 1.0f, 1.0f);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue