From 8b211f9a1cdd562488f66ab0be1c9a96291c7944 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Sat, 18 Jul 2026 17:11:05 +0400 Subject: [PATCH] docs(terrain): trace renderer material handoff --- docs/tomes/05-render.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/tomes/05-render.md b/docs/tomes/05-render.md index 6ac14ae..749d073 100644 --- a/docs/tomes/05-render.md +++ b/docs/tomes/05-render.md @@ -1573,6 +1573,15 @@ draw or compose the two terrain tables. The later consumer of that record and the type-18 microtexture mapping remains the required evidence before adding an overlay, blend, or microtexture shader. +The terrain render traversal is now located at `Terrain.dll` RVA `0x11340`. +After visibility/cell work, it derives a 68-byte source-material record and +dispatches renderer-context slot `+16` with four arguments: zero, the record's +16-bit word at `+2`, a pointer selected from a four-byte table by its word at +`+0`, and zero. A preceding renderer-context slot `+60` receives the current +visibility mode. This is the concrete terrain-to-renderer handoff; it does not +call `GetMaterialPhase` directly and does not yet identify either word, the +four-byte payload, or the final blend operation. + 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 triangles nor collapses the high byte. For the first usable visual layer, the