Hacker News new | ask | show | jobs
by DeathArrow 902 days ago
To me snowflakes should be random and not following some trigonometric function.
2 comments

The trig function just varies the distribution of the random sampling to mimic temporal variations due to wind.
But it seems to have "rand()" calls. Also trigonometric functions can be used as a pseudo random generator (kind of): https://thebookofshaders.com/10/