diff options
| author | NotRexed <therealnothingfn@gmail.com> | 2026-11-27 16:55:07 -0500 |
|---|---|---|
| committer | NotRexed <therealnothingfn@gmail.com> | 2026-11-27 16:55:07 -0500 |
| commit | a8d2f48e374d724f91dfd20efe1b8422fd4206e7 (patch) | |
| tree | 77a69b7e43164884a335c14eea1f5cf21fb7e2c3 /runtime/src/xma2_decoder.cpp | |
| parent | 89a08ac2f259e53bbf4ab4a641ae55bd4812621a (diff) | |
Two-plane composer: a NaN no longer comes out black (LEONIDA_COMPOSE_NAN=0: saturate, as before)
saturate() makes a NaN 0: black specks and a black sun where the upscaler or frame generation handed one over (sun
glints on water). The composer's pixel program clamps through a test on the bits instead (NaN and +infinity 1, negative
and -infinity 0), which the compiler cannot fold away as it may x != x. Only the two-plane presentation composes
(Series S); with the sharpening on, a NaN in the scene already came out as its neighbours' darkest, so this is for the
interface plane, its alpha, and LEONIDA_SHARPEN=0.
Files: compose.rs. Test: compose::source_tests (the program compiles both ways and the two differ; no card needed).
Not run in the game yet.
From aki-gta6/aki-runtime 33c21b9 (Aki-Developer), GPL-3.0.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/xma2_decoder.cpp')
0 files changed, 0 insertions, 0 deletions