sqrew/carp-sdf

★ 0Forks 0GitHub ↗Compare

README

carp-sdf

A high-performance Signed Distance Field (SDF) module for the Carp programming language.

Features

  • 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.

Installation

(load "https://github.com/sqrew/carp-sdf@master")

Examples

See examples.md for usage examples.

License

MIT

Contributors

sqrew

Issues