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

Improve occlusion culling in corridors with additional check

This commit is contained in:
sfan5 2019-08-23 00:14:45 +02:00
parent e8716ffede
commit efbac7e446
2 changed files with 75 additions and 0 deletions

View file

@ -310,6 +310,8 @@ protected:
// This stores the properties of the nodes on the map.
const NodeDefManager *m_nodedef;
bool determineAdditionalOcclusionCheck(const v3s16 &pos_camera,
const core::aabbox3d<s16> &block_bounds, v3s16 &check);
bool isOccluded(const v3s16 &pos_camera, const v3s16 &pos_target,
float step, float stepfac, float start_offset, float end_offset,
u32 needed_count);