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

Allow server side occlusion culling.

This commit is contained in:
Lars Hofhansl 2017-02-27 23:06:15 -08:00 committed by Auke Kok
parent 6738c7e9a3
commit ba4b704ebf
7 changed files with 92 additions and 66 deletions

View file

@ -314,6 +314,7 @@ public:
void transforming_liquid_add(v3s16 p);
s32 transforming_liquid_size();
bool isBlockOccluded(MapBlock *block, v3s16 cam_pos_nodes);
protected:
friend class LuaVoxelManip;
@ -335,6 +336,9 @@ protected:
// This stores the properties of the nodes on the map.
INodeDefManager *m_nodedef;
bool isOccluded(v3s16 p0, v3s16 p1, float step, float stepfac,
float start_off, float end_off, u32 needed_count);
private:
f32 m_transforming_liquid_loop_count_multiplier;
u32 m_unprocessed_count;