From 2184a1043d1a071cdc78303b2247145bf3f18c0b Mon Sep 17 00:00:00 2001 From: skal Date: Mon, 2 Feb 2026 16:46:59 +0100 Subject: fix(3d): Correct debug box transforms and restore object textures - Updated VisualDebug to accept mat4 transforms, enabling wireframes to follow rotating objects. - Restored SDF bump mapping and floor grid texture in the fragment shader. - Added vec4::xyz() helper to mini_math.h. - Fixed Renderer3D to pass the full model matrix for debug visualization. --- src/3d/visual_debug.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/3d/visual_debug.h') diff --git a/src/3d/visual_debug.h b/src/3d/visual_debug.h index f02ac6b..a58d913 100644 --- a/src/3d/visual_debug.h +++ b/src/3d/visual_debug.h @@ -22,7 +22,7 @@ class VisualDebug { void shutdown(); // Queue a wireframe box for rendering this frame - void add_box(const vec3& center, const vec3& extent, const vec3& color); + void add_box(const mat4& transform, const vec3& color); // Render all queued primitives and clear the queue void render(WGPURenderPassEncoder pass, const mat4& view_proj); -- cgit v1.2.3