show the caves on the map, and find the nearest entrance

A Caves overlay colours each column by how far below the surface its
topmost cave starts, and marks where a cave opens at the surface; its
legend gives each band's share of the view. Find nearest entrance
carves the chunks it scans and looks at every column. The cursor label
and the probe list a column's caves, air or lava, top down.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-10 15:34:26 +03:00
parent aeb6d3be22
commit 82774445af
7 changed files with 312 additions and 37 deletions

View File

@@ -36,7 +36,7 @@ VSMV_OBJ = vsmv cs pb json maps save img dump lcg noise shape worldgen fastnoise
$(B)/vsmv: $(VSMV_OBJ:%=$(B)/%.o)
$(CC) $^ -o $@ -lsqlite3 $(ZSTD_LIBS)
VIEWER_OBJ = viewer tiles search hover settings worldgen fastnoise rivers terra strata ores shape noise lcg maps save pb json cs nk cJSON stb
VIEWER_OBJ = viewer tiles search hover settings worldgen fastnoise rivers terra strata ores caves shape noise lcg maps save pb json cs nk cJSON stb
$(B)/vs-map-viewer: $(VIEWER_OBJ:%=$(B)/%.o)
$(CC) $^ -o $@ $(SDL_LIBS) -lsqlite3 $(ZSTD_LIBS)