6 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 Martin 91b1e17aba Merge remote-tracking branch 'origin/main' into codex/vp2s-glow-lerp-chain
# Conflicts:
#	tests/render/image_processing_gpu_tests.cpp
2026-11-18 01:37:45 +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 MartinandClaude Opus 5.5 e6ed3cff03 Draw an auxiliary image with the main frame's depth (Material::frameDepth)
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]>
2026-11-11 18:11:21 +01:00
Thomas Martin 27b8672f54 Add native image kernels, depth lookup and opacity images 2026-11-08 16:51:49 +01:00