1776d7ca5c
The first slice that draws: with HORIZON_SHADER_PACK=<name>, the pack in shaderpacks/<name> (folder or zip) runs its prepare, deferred, composite and final programs over the world, under the hand and the HUD. Gbuffers programs come later, so the composites read Horizon's own picture. - The world renders into its own target (as with a resolution scale); its colour becomes colortex0 and its reverse-Z depth becomes depthtex0 in GL's window depth (1 - d for the same planes), rows flipped to GL's order. depthtex1 and depthtex2 read the same depth for now. - colortex buffers in the formats the pack asked for (the nearest one wgpu renders to), created only when a program uses them, each with two textures: programs read main and write alt, the buffers a program wrote flip after it, flip.* keys and deferred_pre/composite_pre apply, and the mapping carries over to the next frame. Clears at the start of the frame with the pack's colours or the defaults. - noisetex (256x256 white noise, repeat), a lit stand-in behind shadow samplers until shadow maps exist, a 1x1 stand-in for other names; the frame uniforms of the previous commit and the translator's own block. - final draws onto the window; without it colortex0 is shown. - Pipelines are built through validation scopes: a program wgpu refuses is reported with the full error and skipped. The dimension's folder is reloaded when the player changes dimension. Nothing changes without the environment variable: players see no change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>