aboutsummaryrefslogtreecommitdiff
path: root/docs/tomes/05-render.md
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2026-07-18 16:31:13 +0300
committerValentin Popov <valentin@popov.link>2026-07-18 16:31:13 +0300
commit575124830b678d0c4d5b37a708bba9692a4e47ef (patch)
treee36ae21ca5eb4cbac35523809991ffdbe6099e84 /docs/tomes/05-render.md
parent7a7578d0db2a0f6bd0a440f5ef1f72432f8b38ae (diff)
downloadfparkan-575124830b678d0c4d5b37a708bba9692a4e47ef.tar.xz
fparkan-575124830b678d0c4d5b37a708bba9692a4e47ef.zip
feat(terrain): separate shade material selections
Diffstat (limited to 'docs/tomes/05-render.md')
-rw-r--r--docs/tomes/05-render.md11
1 files changed, 8 insertions, 3 deletions
diff --git a/docs/tomes/05-render.md b/docs/tomes/05-render.md
index 5dd2e0c..f6f7832 100644
--- a/docs/tomes/05-render.md
+++ b/docs/tomes/05-render.md
@@ -1584,9 +1584,14 @@ index, then groups the pairs by material lookup before constructing draw work.
`TerrainSlotTable::render_dispatch` exposes exactly those two proven disk
fields, while `LandMeshDocument::slot_material_pairs` decodes the selected
type-11 entries as `{ material_lookup: u16, flags: u16 }`. Flag `0x0010` is a
-proven batch boundary in `GetShade`; the lookup's mapping to the two WEAR
-tables, the meanings of its remaining flags, and the final blend operation
-remain unassigned.
+proven batch boundary in `GetShade`. Crucially, this lookup does **not** select
+either map-local Land table: the `GetShade` constructor loads its own one-table
+manager from `system.rlb` resource `Shade.wea`, so the 16-bit value is that
+manager's table-zero row. `TerrainMaterialPair::shade_selection` records this
+separate selector instead of conflating it with `Land1.wea`/`Land2.wea`. The
+AutoDemo inspector now reports 128 slots, 3,174 addressed shade pairs, selector
+range `0..3173`, and 392 `0x0010` batch boundaries. The meanings of remaining
+flags and the final blend operation remain unassigned.
The static Vulkan bridge now carries each contiguous face run as a separate
draw range keyed by the original packed `material_tag`; it neither reorders