mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-04-24 00:47:31 +00:00
No Caching
This commit is contained in:
22
src/main/java/com/volmit/iris/noise/FlatNoise.java
Normal file
22
src/main/java/com/volmit/iris/noise/FlatNoise.java
Normal file
@@ -0,0 +1,22 @@
|
||||
package com.volmit.iris.noise;
|
||||
|
||||
public class FlatNoise implements NoiseGenerator {
|
||||
public FlatNoise(long seed) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public double noise(double x) {
|
||||
return 0.5;
|
||||
}
|
||||
|
||||
@Override
|
||||
public double noise(double x, double z) {
|
||||
return 0.5;
|
||||
}
|
||||
|
||||
@Override
|
||||
public double noise(double x, double y, double z) {
|
||||
return 0.5;
|
||||
}
|
||||
}
|
||||
@@ -8,6 +8,7 @@ public enum NoiseType {
|
||||
FRACTAL_BILLOW_PERLIN(seed -> new FractalBillowPerlinNoise(seed)),
|
||||
FRACTAL_FBM_SIMPLEX(seed -> new FractalFBMSimplexNoise(seed)),
|
||||
FRACTAL_RIGID_MULTI_SIMPLEX(seed -> new FractalRigidMultiSimplexNoise(seed)),
|
||||
FLAT(seed -> new FlatNoise(seed)),
|
||||
CELLULAR(seed -> new CellularNoise(seed)),
|
||||
GLOB(seed -> new GlobNoise(seed)),
|
||||
CUBIC(seed -> new CubicNoise(seed)),
|
||||
|
||||
Reference in New Issue
Block a user