Skip to content

A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.

docs(tools): terrain_bake runs in about 10 seconds since the exact distance transform

eyalgolan2eec3c31f762
diff --git a/tools/terrain_bake.py b/tools/terrain_bake.py
index 870a66ed0..a7b5aa327 100644
--- a/tools/terrain_bake.py
+++ b/tools/terrain_bake.py
@@ -4,7 +4,7 @@
# ///
"""Heightmap -> the baked shading textures of the terrain and sea shaders (no network: reads only the committed heightmap).
-Usage: uv run tools/terrain_bake.py (about 45 seconds)
+Usage: uv run tools/terrain_bake.py (about 10 seconds)
Reads unity/Assets/StreamingAssets/map/heightmap.r16 + heightmap.json; writes, 2048 x 2048, row 0 = north:
unity/Assets/Textures/Map/terrain_bake.png RGB8: R ambient occlusion (horizon search to AO_RADIUS_M; 1 = open),
G curvature (0.5 flat, > 0.5 convex), B sky-view factor (horizon search to SKY_RADIUS_M)