Add SimplexNoise4D.kt

This commit is contained in:
Abe Pazos
2020-03-06 11:31:48 +01:00
parent c483ec57b3
commit 961fb325d8
3 changed files with 114 additions and 1 deletions

View File

@@ -67,6 +67,11 @@ val v2 = simplexHermite(seed, x, y)
val v3 = simplexLinear(seed, x, y, z)
val v4 = simplexQuintic(seed, x, y, z)
val v5 = simplexHermite(seed, x, y ,z)
// -- 4d
val v6 = simplexLinear(seed, x, y, z, w)
val v7 = simplexQuintic(seed, x, y, z, w)
val v8 = simplexHermite(seed, x, y, z, w)
```
### Cubic noise
@@ -120,4 +125,4 @@ val v2 = billow(seed, x, y, ::perlinLinear, octaves, lacunarity, gain)
val v3 = billow(seed, x, y, z, ::perlinLinear, octaves, lacunarity, gain)
val v4 = billow(seed, x, y, z, ::perlinLinear, octaves, lacunarity, gain)
val v5 = billow(seed, x, y, z, ::perlinLinear, octaves, lacunarity, gain)
```
```