deadsy / sdfx

A simple CAD package using signed distance functions
MIT License
516 stars 52 forks source link

Support displacement #33

Open zumpchke opened 3 years ago

zumpchke commented 3 years ago

Is it possible to support displacement like the torus displacement example?

https://www.iquilezles.org/www/articles/distfunctions/distfunctions.htm

deadsy commented 3 years ago

Yes it's possible - because that sort of thing doesn't give an exact distance field you'd probably have to use the slower version of the renderers in order to get a manifold stl.