diff options
author | SmallJoker <mk939@ymail.com> | 2019-08-17 15:42:36 +0200 |
---|---|---|
committer | SmallJoker <mk939@ymail.com> | 2019-08-23 19:17:43 +0200 |
commit | 6ada090bb05d9e6d5961a59f33ff6e104b44061a (patch) | |
tree | 632bbefcd414b1707500c79f88de741bb3234aac /src/map.h | |
parent | 7d016b4efd279d2ac2bbb84b457bfe6e5d7f4a56 (diff) | |
download | minetest-6ada090bb05d9e6d5961a59f33ff6e104b44061a.tar.gz minetest-6ada090bb05d9e6d5961a59f33ff6e104b44061a.tar.bz2 minetest-6ada090bb05d9e6d5961a59f33ff6e104b44061a.zip |
Occlusion: Check for light_propagates and do mapblock bounds checks
Diffstat (limited to 'src/map.h')
-rw-r--r-- | src/map.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; |