Disable features for noise testing

This commit is contained in:
Daniel Mills 2020-01-15 02:39:07 -05:00
parent 417a759c40
commit 495dcd94d8
4 changed files with 19 additions and 1 deletions

View File

@ -45,7 +45,10 @@ public class Settings
public double caveScale = 1.45;
public double biomeScale = 2;
public boolean flatBedrock = false;
public boolean genObjects = true;
public boolean genObjects = false;
public boolean genCarving = false;
public boolean genCaverns = false;
public boolean genCaves = false;
public double carvingChance = 0.352;
public double cavernChance = 0.321;
public int minCarvingHeight = 75;

View File

@ -70,6 +70,11 @@ public class GenLayerCarving extends GenLayer
public void genCarves(double wxx, double wzx, int x, int z, int s, IrisGenerator g, IrisBiome biome)
{
if(!Iris.settings.gen.genCarving)
{
return;
}
if(s < Iris.settings.gen.minCarvingHeight)
{
return;

View File

@ -70,6 +70,11 @@ public class GenLayerCaverns extends GenLayer
public void genCaverns(double wxx, double wzx, int x, int z, int s, IrisGenerator g, IrisBiome biome)
{
if(!Iris.settings.gen.genCaverns)
{
return;
}
if(s < Iris.settings.gen.minCavernHeight)
{
return;

View File

@ -30,6 +30,11 @@ public class GenLayerCaves extends GenLayer
public void genCaves(double wxx, double wzx, int x, int z, int s, IrisGenerator g)
{
if(!Iris.settings.gen.genCaves)
{
return;
}
for(double itr = 0; itr < 0.1 * Iris.settings.gen.caveDensity; itr += 0.1)
{
double thickness = 0.25 + itr + (0.5 * caveClamp.noise(wxx, wzx));