| 258 | /// Scene-relative bounds of this chunk's blocks, for frustum culling and |
| 259 | /// transparency depth sorting. |
| 260 | pub(crate) bounds_min: Vec3, |
| 261 | pub(crate) bounds_max: Vec3, |
| 262 | } |
| 263 | |
| 264 | fn volume_bounds_visible_in_primary_view(model_visible: bool, editor_hidden: bool, bounds: Option<(Vec3, Vec3)>, frustum: &crate::rendering::graphics::frustum::Frustum) -> bool { |
| 265 | model_visible && !editor_hidden && bounds.is_some_and(|(min, max)| frustum.intersects_aabb(min, max)) |
nothing calls this directly
no outgoing calls
no test coverage detected