fluid worldgen

This commit is contained in:
minjaesong
2024-09-10 02:13:13 +09:00
parent b3467d538c
commit 29c1a69222
12 changed files with 344 additions and 40 deletions

View File

@@ -744,7 +744,7 @@ internal class TerragenTest(val params: TerragenParams) : NoiseMaker {
it.setFalloff(0.0)
}
val caveBlockageFractal0 = ModuleFractal().also {
val caveBlockageFractal = ModuleFractal().also {
it.setType(ModuleFractal.FractalType.RIDGEMULTI)
it.setAllSourceBasisTypes(ModuleBasisFunction.BasisType.GRADIENT)
it.setAllSourceInterpolationTypes(ModuleBasisFunction.InterpolationType.QUINTIC)
@@ -753,11 +753,6 @@ internal class TerragenTest(val params: TerragenParams) : NoiseMaker {
it.seed = seed shake caveBlockageMagic
}
val caveBlockageFractal = ModuleCombiner().also { // 0: air, 1: rock
it.setType(ModuleCombiner.CombinerType.MULT)
it.setSource(0, caveBlockageFractal0)
}
// will only close-up deeper caves. Shallow caves will be less likely to be closed up
val caveBlockageAttenuate = ModuleCombiner().also {
it.setType(ModuleCombiner.CombinerType.MULT)