From 2c346f75f178513b8ee9d23e91170b0e956f6295 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Wed, 13 May 2026 00:49:34 +0200 Subject: [PATCH] Refactor terrain layer rendering and enhance layer management UI by adding controls to add and remove material layers. --- src/app/App.tsx | 77 +++++++++++++++++++++++++++++++++---------------- 1 file changed, 52 insertions(+), 25 deletions(-) diff --git a/src/app/App.tsx b/src/app/App.tsx index 0b04130e..3f2f382c 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -21162,10 +21162,7 @@ export function App({ ) } > - {Array.from( - { length: TERRAIN_LAYER_COUNT }, - (_, layerIndex) => layerIndex - ).map((layerIndex) => ( + {selectedTerrain.layers.map((_, layerIndex) => ( @@ -21180,30 +21177,60 @@ export function App({ "no assigned material"} . +
+ +
+
+ Terrain supports up to {MAX_TERRAIN_LAYER_COUNT} material + layers. The base layer cannot be removed. +
{selectedTerrain.layers.map((layer, layerIndex) => ( -