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.
pirms 9 gadiem
Sam Hocevar
d72cb24bc0
build: move sample and tutorial files around.
pirms 10 gadiem
Sam Hocevar
5d9488182f
math: extract the gradient generator from simplex noise so that we
can reuse it for other noise implementations.
pirms 10 gadiem
Sam Hocevar
b0b5bcc6fa
math: tweak simplex noise scale according to dimension.
pirms 10 gadiem
Sam Hocevar
0af8c1fd6f
math: shitloads of tweaks, optimisations, fixes and comments to the
simplex noise code.
pirms 10 gadiem
Sam Hocevar
45da3662d4
test: add 7-dimensional simplex noise test.
pirms 10 gadiem
Sam Hocevar
5065a2653c
simplex: replace the N-dimensional gradient array with a simple seed.
pirms 10 gadiem
Sam Hocevar
4c95301d31
simplex: use scaling values that match Stefan Gustavson’s paper.
pirms 10 gadiem
Sam Hocevar
7ff3456239
simplex: optimisation; reduce the number of matrix multiplications.
pirms 10 gadiem
Sam Hocevar
a4cbf3fcb2
test: fix vertex positions to match our simplex implementation.
pirms 10 gadiem
Sam Hocevar
88603c1ecf
test: add simplex noise test program.
pirms 10 gadiem