mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix consistency of sky sun/moon texture behaviour
Also cleans up related code somewhat.
This commit is contained in:
parent
37d80784dd
commit
f8cef52ea0
7 changed files with 79 additions and 139 deletions
|
@ -31,6 +31,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
/*
|
||||
RemotePlayer
|
||||
*/
|
||||
|
||||
// static config cache for remoteplayer
|
||||
bool RemotePlayer::m_setting_cache_loaded = false;
|
||||
float RemotePlayer::m_setting_chat_message_limit_per_10sec = 0.0f;
|
||||
|
@ -46,6 +47,7 @@ RemotePlayer::RemotePlayer(const char *name, IItemDefManager *idef):
|
|||
g_settings->getU16("chat_message_limit_trigger_kick");
|
||||
RemotePlayer::m_setting_cache_loaded = true;
|
||||
}
|
||||
|
||||
movement_acceleration_default = g_settings->getFloat("movement_acceleration_default") * BS;
|
||||
movement_acceleration_air = g_settings->getFloat("movement_acceleration_air") * BS;
|
||||
movement_acceleration_fast = g_settings->getFloat("movement_acceleration_fast") * BS;
|
||||
|
@ -59,19 +61,12 @@ RemotePlayer::RemotePlayer(const char *name, IItemDefManager *idef):
|
|||
movement_liquid_sink = g_settings->getFloat("movement_liquid_sink") * BS;
|
||||
movement_gravity = g_settings->getFloat("movement_gravity") * BS;
|
||||
|
||||
// copy defaults
|
||||
m_cloud_params.density = 0.4f;
|
||||
m_cloud_params.color_bright = video::SColor(229, 240, 240, 255);
|
||||
m_cloud_params.color_ambient = video::SColor(255, 0, 0, 0);
|
||||
m_cloud_params.height = 120.0f;
|
||||
m_cloud_params.thickness = 16.0f;
|
||||
m_cloud_params.speed = v2f(0.0f, -2.0f);
|
||||
|
||||
// Skybox defaults:
|
||||
m_cloud_params = SkyboxDefaults::getCloudDefaults();
|
||||
m_skybox_params = SkyboxDefaults::getSkyDefaults();
|
||||
m_sun_params = SkyboxDefaults::getSunDefaults();
|
||||
m_moon_params = SkyboxDefaults::getMoonDefaults();
|
||||
m_star_params = SkyboxDefaults::getStarDefaults();
|
||||
m_sun_params = SkyboxDefaults::getSunDefaults();
|
||||
m_moon_params = SkyboxDefaults::getMoonDefaults();
|
||||
m_star_params = SkyboxDefaults::getStarDefaults();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue