From 66b6404d2516d6ed7fb307d47aaed56027158583 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Tue, 5 May 2026 08:30:07 -0700 Subject: [PATCH] fix(editor): recalculate normals after detail noise in Generate pipeline --- tools/editor/editor_app.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/editor/editor_app.cpp b/tools/editor/editor_app.cpp index 227b6e61..c4a12e6a 100644 --- a/tools/editor/editor_app.cpp +++ b/tools/editor/editor_app.cpp @@ -852,6 +852,9 @@ void EditorApp::generateCompleteZone() { // Step 6: Add detail roughness terrainEditor_.addDetailNoise(1.5f, 0.08f, 77); + // Step 6b: Final normal recalculation after detail noise + terrainEditor_.recalcNormals(allChunks); + // Step 7: Fill low areas with water and smooth beaches float waterLevel = terrain_.chunks[0].position[2] + 5.0f; terrainEditor_.fillWater(waterLevel, 0);