News for hackers. Stuff that matters.
Re:Let it snow() by DeathArrow on Tuesday December 26, 2023 @03:13AM (#38769798)
To me snowflakes should be random and not following some trigonometric function.
Re:Let it snow() by maksut on Tuesday December 26, 2023 @03:51AM (#38770021)
But it seems to have "rand()" calls. Also trigonometric functions can be used as a pseudo random generator (kind of): https://thebookofshaders.com/10/
Re:Let it snow() by shmeano on Tuesday December 26, 2023 @06:55AM (#38771015)
The trig function just varies the distribution of the random sampling to mimic temporal variations due to wind.