1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

day/night working client side

This commit is contained in:
Perttu Ahola 2010-12-19 16:51:45 +02:00
parent 240499dc2c
commit 0ca9423b8b
22 changed files with 955 additions and 676 deletions

View file

@ -224,6 +224,11 @@ public:
return MAPTYPE_BASE;
}
virtual void drop()
{
delete this;
}
void updateCamera(v3f pos, v3f dir)
{
JMutexAutoLock lock(m_camera_mutex);
@ -375,9 +380,14 @@ public:
Updates the faces of the given block and blocks on the
leading edge.
*/
void updateMeshes(v3s16 blockpos, u32 daylight_factor);
void updateMeshes(v3s16 blockpos, u32 daynight_ratio);
void expireMeshes();
void expireMeshes(bool only_daynight_diffed);
/*
Takes the blocks at the trailing edges into account
*/
bool dayNightDiffed(v3s16 blockpos);
//core::aabbox3d<s16> getDisplayedBlockArea();
@ -544,6 +554,11 @@ public:
return MAPTYPE_CLIENT;
}
void drop()
{
ISceneNode::drop();
}
/*
Forcefully get a sector from somewhere
*/