4 Commits
Author SHA1 Message Date
Thomas MartinandClaude Opus 5.5 bbdef874c7 Line batches: draw a frame batch as GL_LINES segments
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]>
2026-11-19 21:56:29 +01:00
Thomas MartinandClaude Opus 5.5 f4a5cdf96d Depth colours: an RGBA table for the native depth lookup
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]>
2026-11-19 20:15:49 +01:00
Thomas MartinandClaude Opus 5.5 0273728b74 Draw a game's GS lerp-chain blur exactly (ImageProcessing::chainTaps)
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]>
2026-11-18 01:02:31 +01:00
Thomas Martin 27b8672f54 Add native image kernels, depth lookup and opacity images 2026-11-08 16:51:49 +01:00