Better lake generation
This commit is contained in:
@@ -311,7 +311,7 @@ public class WorldGenerator{
|
||||
+ sim3.octaveNoise2D(detailed ? 12 : 9, 0.6, 1f / 1100f, x - 120, y);
|
||||
double lake = sim2.octaveNoise2D(1, 1, 1f / 110f, x, y);
|
||||
|
||||
elevation -= lake/3f;
|
||||
elevation -= Math.pow(lake + 0.15, 5);
|
||||
|
||||
int lerpDst = 20;
|
||||
lerpDst *= lerpDst;
|
||||
@@ -329,9 +329,9 @@ public class WorldGenerator{
|
||||
}
|
||||
}
|
||||
|
||||
if(elevation < 0.7 || lake > 0.96){
|
||||
if(elevation < 0.7){
|
||||
floor = Blocks.deepwater;
|
||||
}else if(elevation < 0.79 || lake > 0.948){
|
||||
}else if(elevation < 0.79){
|
||||
floor = Blocks.water;
|
||||
}else if(elevation < 0.85){
|
||||
floor = Blocks.sand;
|
||||
|
||||
Reference in New Issue
Block a user