flattened heightmap under roads

This commit is contained in:
Grimsace
2026-02-04 16:13:06 -06:00
parent 6d6a1b1acd
commit ed794ca45f
2 changed files with 53 additions and 2 deletions
+5 -2
View File
@@ -148,7 +148,9 @@ func main() {
darkenedHeightmap := DarkenLakeAreas(noiseImg, allWaterPixels)
compositeImg := ApplyRoughness(darkenedHeightmap, settings.Roughness)
flattenedHeightmap := FlattenRoadAreas(darkenedHeightmap, roadPixels)
compositeImg := ApplyRoughness(flattenedHeightmap, settings.Roughness)
heightmapImg.Image = compositeImg
@@ -437,6 +439,7 @@ func main() {
progressBar.SetValue(float64(currentStep) / float64(steps))
})
darkenedHeightmap := DarkenLakeAreas(noiseImg, allWaterPixels)
flattenedHeightmap := FlattenRoadAreas(darkenedHeightmap, roadPixels)
// Step 6: Applying Roughness
currentStep++
@@ -444,7 +447,7 @@ func main() {
progressBar.SetText(fmt.Sprintf("Step %d/%d: Applying Roughness", currentStep, steps))
progressBar.SetValue(float64(currentStep) / float64(steps))
})
compositeImg := ApplyRoughness(darkenedHeightmap, settings.Roughness)
compositeImg := ApplyRoughness(flattenedHeightmap, settings.Roughness)
// Step 7: Generating Trees
currentStep++