summaryrefslogtreecommitdiff
path: root/src/3d/visual_debug.h
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-02 16:52:25 +0100
committerskal <pascal.massimino@gmail.com>2026-02-02 16:52:25 +0100
commita4bfd2f1aae7274eaeb632a8b60a75357da7b410 (patch)
treeeeb881f20e0ba891dc27e4ca018ec3fd4712ef74 /src/3d/visual_debug.h
parent2184a1043d1a071cdc78303b2247145bf3f18c0b (diff)
fix(3d): Tighten torus bounding box and restore object textures
- Adjusted Torus proxy hull in vs_main to fit unit dimensions (1.4x0.4x1.4). - Updated VisualDebug to support per-object local extents, improving wireframe accuracy. - Restored procedural floor grid and SDF bump mapping in the fragment shader. - Added varied scaling to test scene objects to verify transform robustness.
Diffstat (limited to 'src/3d/visual_debug.h')
-rw-r--r--src/3d/visual_debug.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/3d/visual_debug.h b/src/3d/visual_debug.h
index a58d913..456cb10 100644
--- a/src/3d/visual_debug.h
+++ b/src/3d/visual_debug.h
@@ -22,7 +22,8 @@ class VisualDebug {
void shutdown();
// Queue a wireframe box for rendering this frame
- void add_box(const mat4& transform, const vec3& color);
+ void add_box(const mat4& transform, const vec3& local_extent,
+ const vec3& color);
// Render all queued primitives and clear the queue
void render(WGPURenderPassEncoder pass, const mat4& view_proj);