Cleanup
This commit is contained in:
@@ -100,14 +100,12 @@ public abstract class GenerateFilter{
|
||||
|
||||
//utility generation functions
|
||||
|
||||
//TODO would be nice if these functions used the seed and ditched "in" completely; simplex should be stateless
|
||||
|
||||
protected float noise(GenerateInput in, float scl, float mag){
|
||||
return (float)Simplex.noise2d(seed, 1f, 0f, 1f / scl, in.x, in.y) * mag;
|
||||
return Simplex.noise2d(seed, 1f, 0f, 1f / scl, in.x, in.y) * mag;
|
||||
}
|
||||
|
||||
protected float noise(GenerateInput in, float scl, float mag, float octaves, float persistence){
|
||||
return (float)Simplex.noise2d(seed, octaves, persistence, 1f / scl, in.x, in.y) * mag;
|
||||
return Simplex.noise2d(seed, octaves, persistence, 1f / scl, in.x, in.y) * mag;
|
||||
}
|
||||
|
||||
protected float rnoise(float x, float y, float scl, float mag){
|
||||
@@ -141,7 +139,7 @@ public abstract class GenerateFilter{
|
||||
this.y = y;
|
||||
}
|
||||
|
||||
public void begin(GenerateFilter filter, int width, int height, TileProvider buffer){
|
||||
public void begin(int width, int height, TileProvider buffer){
|
||||
this.buffer = buffer;
|
||||
this.width = width;
|
||||
this.height = height;
|
||||
|
||||
Reference in New Issue
Block a user