A high-performance Signed Distance Field (SDF) module for the Carp programming language.
- CPU + GPU Logic: Provides pure Carp functions for distance queries and WGSL snippets for GPU shaders.
- Primitives: Sphere, Box, Torus.
- Operations: Union, Subtraction, Intersection, and the legendary Smooth Union (Gooey Merge).
- Zero Dependencies: Includes its own minimal math types for maximum portability.
(load "https://github.com/sqrew/carp-sdf@master")See examples.md for usage examples.
MIT