feat(editor): heightmap preview PNG export for zone documentation

- Exports 129x129 grayscale PNG showing terrain elevation
- Auto-normalizes to 0-255 based on actual height range
- Useful for zone documentation, thumbnails, and previews
- Auto-exported alongside WOT/WHM/normals on every save
This commit is contained in:
Kelsi 2026-05-05 11:14:58 -07:00
parent 36dd4bf141
commit 77a91de9f1
3 changed files with 43 additions and 0 deletions

View file

@ -793,6 +793,7 @@ void EditorApp::exportZone(const std::string& outputDir) {
WoweeTerrain::exportOpen(terrain_, openBase, loadedTileX_, loadedTileY_);
WoweeTerrain::exportNormalMap(terrain_, openBase + "_normals.png");
WoweeTerrain::exportAlphaMaps(terrain_, base + "/alphamaps");
WoweeTerrain::exportHeightmapPreview(terrain_, openBase + "_heightmap.png");
// Write zone info README
{