This commit is contained in:
Daniel Mills committed 2020-10-18 08:39:26 -04:00
1 parent ffecbb2298
commit d67596117f
9 files changed
+2449 -13

No files matched your search

@@ -285,6 +285,7 @@ public class CNG
{
Iris.error("Failed to sample noise into array " + v.size() + " nodes");
Iris.error("Noise Source: " + generator.getClass().getSimpleName());
}
return v.get(0);
File diff suppressed because it is too large. Load diff
@@ -4,16 +4,16 @@ import com.volmit.iris.util.RNG;
public class WhiteNoise implements NoiseGenerator
{
private final FastNoiseDouble n;
private final FastNoise n;
public WhiteNoise(long seed)
{
n = new FastNoiseDouble(new RNG(seed).lmax());
n = new FastNoise(new RNG(seed).imax());
}
private double f(double m)
{
return m;
return (m % 8192) * 1024;
}
@Override