block.properties (spec 4.1) is read: `block.<id>=` names with optional namespaces and state filters; the most specific matching entry wins. Terrain vertices carry their sprite layer, not their block, so the game builds a table of the block sprite layers: each takes the id of the block named like its sprite, else the id most blocks drawing it share; y is 1 on the water and lava sprites. Flat terrain reads it from a storage buffer at set 3; other draws and packs without the file read (-1, -1). Building the table takes 14 ms for BSL, 39 ms for Complementary. Clean-room: implemented from cleanroom/shader-packs-spec.md revision 1, 4.1, 5.1, 5.3; no other loader's code read. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
terrain-test
Horizon's own shader pack for testing gbuffers terrain (written for Horizon, no other pack's code).
gbuffers_terrain draws blocks from the atlas with their vertex colour and lightmap, tinted by
the lightmap coordinate's sky light (cooler where the sky is hidden); mc_midTexCoord marks each
face's centre with a dot; leaves (id 1 in block.properties) are yellow, and any stage but solid terrain (translucent terrain falls back to it)
is red. gbuffers_skybasic draws the sky in its vertex colour, a little greener, with magenta
stars and a dark red void; gbuffers_textured (the fallback of gbuffers_skytextured) the sun,
and the moon tinted green. composite puts the depth buffer's view-space distance into the blue
channel of the far half. Copy the folder into shaderpacks/ and run the game with
HORIZON_SHADER_PACK=terrain-test.