changed how building distribution works
This commit is contained in:
@@ -1995,6 +1995,14 @@ func collectRoadAnchors(roads []*Road, settings *Settings, waterMask *PixelMask,
|
||||
|
||||
minBuildingSizePx, maxBuildingSizePx := getBuildingSizeRangePixels(settings, width, height)
|
||||
spacing := int(math.Round(clamp((minBuildingSizePx+maxBuildingSizePx)*0.5, 8, 28)))
|
||||
switch {
|
||||
case settings.NumBuildings >= 2500:
|
||||
spacing = int(math.Round(float64(spacing) * 0.72))
|
||||
case settings.NumBuildings >= 1000:
|
||||
spacing = int(math.Round(float64(spacing) * 0.80))
|
||||
case settings.NumBuildings >= 300:
|
||||
spacing = int(math.Round(float64(spacing) * 0.90))
|
||||
}
|
||||
if spacing < 6 {
|
||||
spacing = 6
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user