mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-06 00:53:52 +00:00
fix(editor): recalculate normals after detail noise in Generate pipeline
This commit is contained in:
parent
0a6e54e8a2
commit
66b6404d25
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue