mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-04-16 21:30:04 +00:00
Fixes
This commit is contained in:
@@ -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);
|
||||
|
||||
2369
src/main/java/com/volmit/iris/noise/FastNoise.java
Normal file
2369
src/main/java/com/volmit/iris/noise/FastNoise.java
Normal file
File diff suppressed because one or more lines are too long
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user