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

Implement cellular noise #1336

Open
MarcinKonowalczyk opened this issue Jan 15, 2025 · 1 comment
Open

Implement cellular noise #1336

MarcinKonowalczyk opened this issue Jan 15, 2025 · 1 comment

Comments

@MarcinKonowalczyk
Copy link

glm/gtc/noise has implementations of Stefan Gustafson's Perlin and Simplex noise, but not the cellular noise. Would you be open for me to add it?

In line with the original implementation I'd implement:

  • vec<2, T, Q> cellular(vec<2, T, Q> const& Position)
  • vec<2, T, Q> cellular_fast(vec<2, T, Q> const& Position)
  • vec<2, T, Q> cellular(vec<3, T, Q> const& Position)
  • vec<2, T, Q> cellular_fast(vec<3, T, Q> const& Position)
@MarcinKonowalczyk
Copy link
Author

Alternative 1: instead of cellular and cellular_fast, make it one function with default value of enum .normal or .fast.
Alternative 2: just like alternative 1 but the addition parameter is on the template level.

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

No branches or pull requests

1 participant