mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-21 15:50:40 +00:00
Configurable erosion octaves
This commit is contained in:
@@ -8,10 +8,10 @@ import org.polydev.gaea.math.FastNoise;
|
||||
public class ErosionNoise {
|
||||
private final double thresh;
|
||||
private final FastNoise noise;
|
||||
public ErosionNoise(float freq1, double thresh, long seed) {
|
||||
public ErosionNoise(float freq1, double thresh, int octaves, long seed) {
|
||||
FastNoise main = new FastNoise((int) (seed+1));
|
||||
main.setNoiseType(FastNoise.NoiseType.SimplexFractal);
|
||||
main.setFractalOctaves(3);
|
||||
main.setFractalOctaves(octaves);
|
||||
main.setFrequency(freq1);
|
||||
this.thresh = thresh;
|
||||
this.noise = main;
|
||||
|
||||
Reference in New Issue
Block a user