This commit is contained in:
Daniel Mills
2020-10-18 08:39:26 -04:00
parent ffecbb2298
commit d67596117f
9 changed files with 2449 additions and 13 deletions

View File

@@ -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 one or more lines are too long

View File

@@ -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