From a4bfd2f1aae7274eaeb632a8b60a75357da7b410 Mon Sep 17 00:00:00 2001 From: skal Date: Mon, 2 Feb 2026 16:52:25 +0100 Subject: 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. --- src/3d/visual_debug.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/3d/visual_debug.h') 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); -- cgit v1.2.3