From 26596bdc2ef7537619ab763668381f8b5496b726 Mon Sep 17 00:00:00 2001 From: Sébastien Crozet Date: Sun, 22 Jan 2023 19:01:09 +0100 Subject: Voxel fracture experiments --- src/pipeline/debug_render_pipeline/debug_render_pipeline.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/pipeline/debug_render_pipeline') diff --git a/src/pipeline/debug_render_pipeline/debug_render_pipeline.rs b/src/pipeline/debug_render_pipeline/debug_render_pipeline.rs index bb9fd78..423a309 100644 --- a/src/pipeline/debug_render_pipeline/debug_render_pipeline.rs +++ b/src/pipeline/debug_render_pipeline/debug_render_pipeline.rs @@ -402,6 +402,7 @@ impl DebugRenderPipeline { let vtx = s.to_polyline(self.style.border_subdivisions); backend.draw_line_strip(object, &vtx, pos, &Vector::repeat(1.0), color, true) } + TypedShape::Voxels(_) => todo!(), TypedShape::Custom(_) => {} } } @@ -555,6 +556,9 @@ impl DebugRenderPipeline { let (vtx, idx) = s.to_outline(self.style.border_subdivisions); backend.draw_polyline(object, &vtx, &idx, pos, &Vector::repeat(1.0), color) } + TypedShape::Voxels(s) => s.iter_outline(|a, b| { + backend.draw_line(object, pos * a, pos * b, color); + }), TypedShape::Custom(_) => {} } } -- cgit