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

Improve import support #124

Open
davesmith00000 opened this issue Nov 28, 2024 · 0 comments
Open

Improve import support #124

davesmith00000 opened this issue Nov 28, 2024 · 0 comments

Comments

@davesmith00000
Copy link
Member

Currently to use imported methods, you have to do this:

import ultraviolet.sdf.circle
// import ultraviolet.sdf.* // works too.

def proxy: (vec2, Float) => Float = (p, r) => circle(p, r)

proxy(vec2(0.5f), 1.5f)

The proxy is annoying, but a separate issue.

What I'd like is to be able to do both:

ultraviolet.sdf.circle(p, r)

and

import ultraviolet

sdf.circle(p, r)
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