reimplement global vertical/horizontal scale settings

This commit is contained in:
dags- 2020-03-06 17:58:25 +00:00
parent 5dc6609e96
commit 22d3f8db2c
2 changed files with 10 additions and 2 deletions

View File

@ -33,6 +33,14 @@ import me.dags.noise.Module;
@Serializable
public class TerrainSettings {
@Range(min = 0, max = 1)
@Comment("Globally controls the vertical scaling of terrain")
public float globalVerticalScale = 0.985F;
@Range(min = 0, max = 5)
@Comment("Globally controls the horizontal scaling of terrain")
public float globalHorizontalScale = 1.0F;
public Terrain steppe = new Terrain(5F, 1F, 1F);
public Terrain plains = new Terrain(5F, 1F, 1F);
public Terrain hills = new Terrain(2F, 1F, 1F);

View File

@ -58,8 +58,8 @@ public class LandForms {
public LandForms(TerrainSettings settings, Levels levels) {
this.settings = settings;
terrainHorizontalScale = 1.025F;
terrainVerticalScale = 1F;
terrainHorizontalScale = settings.globalHorizontalScale;
terrainVerticalScale = settings.globalVerticalScale;
groundLevel = levels.ground;
seaLevel = levels.water;
}