MCPcopy Create free account
hub / github.com/Incline-Developers/Incline / BlockModelGpuCache

Class BlockModelGpuCache

src/rendering/scene/gpu_cache.rs:260–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
264fn 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))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected