Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create SDF helpers #78

Open
davesmith00000 opened this issue Jan 25, 2023 · 0 comments
Open

Create SDF helpers #78

davesmith00000 opened this issue Jan 25, 2023 · 0 comments

Comments

@davesmith00000
Copy link
Member

davesmith00000 commented Jan 25, 2023

It would be great if Ultraviolet came with a selection of pre-made SDF utilities for SDF.

This is standard Scala stuff, no macros. The functions will need to be compatible with inlining, and exposed via import ultraviolet.* but otherwise, the work is straight forward.

SDF references:

A couple of existing Ultraviolet SDF implementations: https://ultraviolet.indigoengine.io/examples/fragment/sdf/

All of which are based on the work of Inigo Quilez: https://iquilezles.org/articles/distfunctions2d/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant