feat: allow to render ocean heightmap

This commit is contained in:
Azgaar 2023-12-10 15:20:26 +04:00
parent 52e3088763
commit cd45ad91fd
17 changed files with 207 additions and 89 deletions

View file

@ -468,10 +468,10 @@ async function parseLoadedData(data) {
{
// add custom heightmap color scheme if any
const scheme = terrs.attr("scheme");
if (!(scheme in heightmapColorSchemes)) {
addCustomColorScheme(scheme);
}
const oceanScheme = terrs.select("#oceanHeights").attr("scheme");
const landScheme = terrs.select("#landHeights").attr("scheme");
if (!(oceanScheme in heightmapColorSchemes)) addCustomColorScheme(oceanScheme);
if (!(landScheme in heightmapColorSchemes)) addCustomColorScheme(landScheme);
}
{