Skip to content

Commit

Permalink
Change plateau mask slightly (#383)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackYps authored Mar 24, 2024
1 parent 5f45e3c commit 3327962
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,13 @@ protected void setupTexturePipeline() {
plateauTexture.setSize(textureSize)
.add(0.5f)
.addPerlinNoise(mapSize / 40, .4f)
.setToValue(realPlateaus.copy().invert(), 0f)
.multiply(slope.copyAsBooleanMask(0.01f).deflate(4), slope.copy().multiply(-8f).add(1f).clampMin(0f))
.multiply(
heightmap.copy()
.subtract(generatorParameters.biome().waterSettings().getElevation() + 3f)
.multiply(0.5f)
.clampMax(1f)
.clampMin(0f))
.multiply(slope.copyAsBooleanMask(0.01f).deflate(4), slope.copy().multiply(-2f).add(1f).clampMin(0f))
.clampMin(0f)
.blur(2)
.setToValue(cliff, 0f)
Expand Down

0 comments on commit 3327962

Please sign in to comment.