From f307cde4ac1126e38c5595ce61a26d50cdd7ad4a Mon Sep 17 00:00:00 2001 From: skal Date: Sun, 1 Feb 2026 11:10:35 +0100 Subject: feat: Implement hybrid rendering with SDF primitives - Added SDF logic for Sphere, Box, and Torus in WGSL. - Implemented hybrid normal calculation (analytical for sphere, numerical fallback). - Updated Renderer3D to dispatch object types to shader. - Updated test_3d_render to display mixed SDF shapes (Sphere, Torus, Box). - Added BOX to ObjectType enum. --- src/3d/object.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/3d/object.h') diff --git a/src/3d/object.h b/src/3d/object.h index f4215aa..ccbb1e1 100644 --- a/src/3d/object.h +++ b/src/3d/object.h @@ -10,7 +10,8 @@ enum class ObjectType { CUBE, SPHERE, PLANE, - TORUS + TORUS, + BOX // Add more SDF types here }; -- cgit v1.2.3