mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Add clouds API
This commit is contained in:
parent
95409da87d
commit
f1d7a26b7c
17 changed files with 357 additions and 50 deletions
|
@ -65,6 +65,14 @@ RemotePlayer::RemotePlayer(const char *name, IItemDefManager *idef):
|
|||
movement_liquid_fluidity_smooth = g_settings->getFloat("movement_liquid_fluidity_smooth") * BS;
|
||||
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(255, 255, 240, 240);
|
||||
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);
|
||||
}
|
||||
|
||||
void RemotePlayer::serializeExtraAttributes(std::string &output)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue