diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-02 16:46:59 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-02 16:46:59 +0100 |
| commit | 2184a1043d1a071cdc78303b2247145bf3f18c0b (patch) | |
| tree | 948703ba6541391578c0917fd1ffb208209a321e /src/util | |
| parent | fe00b372ea6c376d5e67a1b7392c3fa4f72e6378 (diff) | |
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.
Diffstat (limited to 'src/util')
| -rw-r--r-- | src/util/mini_math.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/mini_math.h b/src/util/mini_math.h index dc88ad4..56e6832 100644 --- a/src/util/mini_math.h +++ b/src/util/mini_math.h @@ -129,6 +129,10 @@ struct vec4 { : x(x), y(y), z(z), w(w) { } VEC_OPERATORS(vec4, 4) + + vec3 xyz() const { + return {x, y, z}; + } }; #endif /* defined(USE_VEC4) */ |
