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

Occlusion: Check for light_propagates and do mapblock bounds checks

This commit is contained in:
SmallJoker 2019-08-17 15:42:36 +02:00
parent 7d016b4efd
commit 6ada090bb0
3 changed files with 60 additions and 34 deletions

View file

@ -310,8 +310,9 @@ protected:
// This stores the properties of the nodes on the map.
const NodeDefManager *m_nodedef;
bool isOccluded(v3s16 pos_origin, v3s16 pos_blockcenter, float step,
float stepfac, float start_offset, float end_offset, u32 needed_count);
bool isOccluded(const v3s16 &pos_camera, const v3s16 &pos_target,
const core::aabbox3d<s16> &block_bounds, float step, float stepfac,
float offset, u32 needed_count);
private:
f32 m_transforming_liquid_loop_count_multiplier = 1.0f;