Warning
This crate is in VERY early development: bugs are bound to happen, and I intend on breaking things as I go. PLEASE consider NOT using this crate in a serious project for the time being. Thank you for your patience <3
Lightwalk is a lightweight CPU-driven SDF (signed distance field) rust crate.
Why you might want to use this crate:
- The ability to define SDFs in a expressive manner by leveraging the language's type system in a similar manner to the standard library's iterators.
- SDF composition is achieved through zero cost abstractions, meaning that generally, the SDF that is generated by compositing and transforming sub SDFs should be as performant as if the complete SDF was written and optimized by-hand.
- The crate can be stripped down from it's dependencies to minimise it's footprint. The only required crate is
num. - Provides optional dependencies like
glamandserdethat can make integration in codebases smoother. This is required for certain features, likeglamwith 3d rotations. - SDFs can have state, which makes it possible to define colors for objects for example.