started working on temperature range corrections

This commit is contained in:
2026-08-19 13:53:38 -06:00
parent c9a49eba48
commit 44e67966f0
4 changed files with 41 additions and 17 deletions
+6 -1
View File
@@ -126,7 +126,7 @@ local generate = function()
octaves = 7, lacunarity = 2, gain = 0.5,
}
map.temperature = simplex_map.generate{ -- in celsius
size = map.size, scale = 0.005, min = 0, max = 1, -- min = -89.2, max = 56.7,
size = map.size, scale = 0.005, min = -89.2, max = 56.7,
octaves = 1, lacunarity = 2, gain = 0.5,
}
map.rainfall = simplex_map.generate{ -- in millimeters of rainfall
@@ -173,6 +173,11 @@ local generate = function()
end
end
end
else
-- clear non-planet zones
map.altitude[x][y] = nil
map.temperature[x][y] = nil
map.rainfall[x][y] = nil
end
end
end