Don't cull the chunk section the player is standing in

This commit is contained in:
Thinkofname 2016-03-28 00:18:55 +01:00
parent 6ef08d73b1
commit fc0a0e3090
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ impl World {
let min = cgmath::Point3::new(pos.0 as f32 * 16.0, -pos.1 as f32 * 16.0, pos.2 as f32 * 16.0);
let bounds = collision::Aabb3::new(min, min + cgmath::Vector3::new(16.0, -16.0, 16.0));
if renderer.frustum.contains(bounds) == collision::Relation::Out {
if renderer.frustum.contains(bounds) == collision::Relation::Out && from != Direction::Invalid {
continue;
}
(sec.is_some(), sec.map_or(chunk_builder::CullInfo::all_vis(), |v| v.cull_info))