Files
OpenFrontIO/src/client/render/gl
evanpelle 1dd00f6264 push terrain deltas to the WebGL view so water nukes show
Terrain was uploaded once at game start and treated as static — water
nukes (land → water conversion) mutated the sim's terrain bytes but
the rendered terrain stayed dry.

Plumbed a delta path: TerrainPass and RailroadPass each get
applyTerrainDelta(refs, bytes), Renderer + GameView forward, and
WebGLFrameBuilder pushes each tick from gameView.recentlyUpdatedTerrainTiles().
Per-tile encoding is shared via the new encodeTerrainTile helper in
ColorUtils so the startup full-map build and the per-tile delta updates
can't drift.
2026-05-18 11:08:09 -07:00
..
2026-05-16 08:54:20 -07:00