implement basic tectonics + tectonic direction and velocity

This commit is contained in:
Dobidop 2026-03-22 12:04:48 +01:00
parent f2fc42799b
commit ed9a0ba739
11 changed files with 2029 additions and 9 deletions

View file

@ -624,8 +624,14 @@ function randomizeHeightmapTemplate() {
for (const key in heightmapTemplates) {
templates[key] = heightmapTemplates[key].probability || 0;
}
if (typeof tectonicTemplates !== "undefined") {
for (const key in tectonicTemplates) {
templates[key] = tectonicTemplates[key].probability || 0;
}
}
const template = rw(templates);
const name = heightmapTemplates[template].name;
const isTectonic = typeof tectonicTemplates !== "undefined" && template in tectonicTemplates;
const name = isTectonic ? tectonicTemplates[template].name : heightmapTemplates[template].name;
applyOption(byId("templateInput"), template, name);
}