Material::lines makes a frame draw's vertices segment pairs (the GS's
LINE / LINE STRIP, one pixel wide) instead of triangles. An odd count,
image processing or an overlay batch rejects; the flag is hashed only when
set. VP2S: the forest minimap's outlines. An admission/digest check and a
GPU row check.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
ImageProcessing::depthColours reads depthWeights as 64 RGBA entries (alpha
1.0 = the GS's 0x80), the index clamped to 63, replacing the texel. With
Blend::DestinationBySource this is a port's depth fog: a ramp colour added
and the scene scaled by the ramp's alpha (VP2S: the Lost Forest haze).
Hashed only when set, so existing frame digests are unchanged. Two
admission guards, a digest check and a GPU case.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A blur drawn as GS sprites (a base copy, then lerps C = floor((S - C) * a / 128) + C at
1/16-texel offsets) truncates at every step in 8-bit integers, so no linear kernel gives the
same image: for VP2's glow the float kernel was about twice as bright as the game's. The
chain mode does the same integer steps in the shader: base texel modulated by chainColour,
each tap bilinear with 4-bit weights, edges clamped, modulated, floored, lerped.
Tests: the GPU result equals a CPU reference of the same steps; four new admission guards.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A per-draw flag: the draw's auxiliary target tests and writes the main frame's
depth buffer instead of its own, as a GS draw into another frame address with
the same ZBUF would. VP2S's multi-copy depth blur needs it to compare depth
planes with the scene into a marker image without touching the frame's alpha,
which here is the presentation's coverage. The global shared-depth bits are
read when the frame executes, so they cannot be toggled around one draw.
The image takes the main frame's dimensions; a frame-depth draw without an
auxiliary target is rejected. The draw digest includes the flag only when set.
The GPU image test covers a plane between two scene depths, an unchanged main
depth (no write), and a later ordinary draw that has its own depth again.
Co-Authored-By: Claude Opus 5.5 <[email protected]>