Sam Hocevar
7558d0664a
image: more method renaming for consistency.
7 vuotta sitten
Sam Hocevar
078751a820
math: all API functions dealing with angles now use radians.
We already have the convenient degrees() and radians() functions to convert
between angle formats. This commit involves a lot of refactoring here and
there and I may have missed some places where conversions were needed. But
hopefully there aren’t may such places.
9 vuotta sitten
Sam Hocevar
d72cb24bc0
build: move sample and tutorial files around.
10 vuotta sitten
Sam Hocevar
5d9488182f
math: extract the gradient generator from simplex noise so that we
can reuse it for other noise implementations.
10 vuotta sitten
Sam Hocevar
b0b5bcc6fa
math: tweak simplex noise scale according to dimension.
10 vuotta sitten
Sam Hocevar
0af8c1fd6f
math: shitloads of tweaks, optimisations, fixes and comments to the
simplex noise code.
10 vuotta sitten
Sam Hocevar
45da3662d4
test: add 7-dimensional simplex noise test.
10 vuotta sitten
Sam Hocevar
5065a2653c
simplex: replace the N-dimensional gradient array with a simple seed.
10 vuotta sitten
Sam Hocevar
4c95301d31
simplex: use scaling values that match Stefan Gustavson’s paper.
10 vuotta sitten
Sam Hocevar
7ff3456239
simplex: optimisation; reduce the number of matrix multiplications.
10 vuotta sitten
Sam Hocevar
a4cbf3fcb2
test: fix vertex positions to match our simplex implementation.
10 vuotta sitten
Sam Hocevar
88603c1ecf
test: add simplex noise test program.
10 vuotta sitten