diff options
author | Lars Hofhansl <larsh@apache.org> | 2017-02-27 23:06:15 -0800 |
---|---|---|
committer | Auke Kok <sofar+github@foo-projects.org> | 2017-03-11 18:11:19 -0800 |
commit | ba4b704ebf24952ab9a84c914b8ad6c45dabfaba (patch) | |
tree | d0e8d00948e40dbf20c9f3eb009ba494fb551648 /src/map.h | |
parent | 6738c7e9a310514fca7d4ddb685800391756626b (diff) | |
download | minetest-ba4b704ebf24952ab9a84c914b8ad6c45dabfaba.tar.gz minetest-ba4b704ebf24952ab9a84c914b8ad6c45dabfaba.tar.bz2 minetest-ba4b704ebf24952ab9a84c914b8ad6c45dabfaba.zip |
Allow server side occlusion culling.
Diffstat (limited to 'src/map.h')
-rw-r--r-- | src/map.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |