summaryrefslogtreecommitdiff
path: root/src/3d/object.h
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-01 11:10:35 +0100
committerskal <pascal.massimino@gmail.com>2026-02-01 11:10:35 +0100
commitf307cde4ac1126e38c5595ce61a26d50cdd7ad4a (patch)
tree00b9ac5a74d61c1a58b4d2c7ffcf1eaf1ea55b84 /src/3d/object.h
parent8bdc4754647c9c6691130fa91d51fee93c5fc88f (diff)
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.
Diffstat (limited to 'src/3d/object.h')
-rw-r--r--src/3d/object.h3
1 files changed, 2 insertions, 1 deletions
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
};