diff --git a/crates/victory-gpu/src/ambient.rs b/crates/victory-gpu/src/ambient.rs index 836c2e2..e7153c1 100644 --- a/crates/victory-gpu/src/ambient.rs +++ b/crates/victory-gpu/src/ambient.rs @@ -461,6 +461,15 @@ void raise(uint3 at : SV_DispatchThreadID) { found = clamp(found, 0.2 * all, 2.5 * all); found = lerp(found, cells[CELLS].rgb, 0.2) * level * open; float3 was = unpack(light[p]); + // Magenta/violet garbage the probes' memory held (green far under red and + // blue): dropped, as VIctory-Belobug-AMD does (ambient.rs, "Filter magenta + // garbage probes"). Seen on an RTX 5080 as a purple-blue glow on a lit + // sheet of paper in the prison cell; not an AMD-only fault. + if (was.g < 0.5 * min(was.r, was.b) && max(was.r, was.b) > 0.02) was = 0.0; + // And the bluer kind of it (blue over 2.5x green and over red): left as + // a faint violet by the line above. The sky's light keeps green above + // 0.4x blue, sunsets keep blue low, so neither is touched. + if (was.b > 2.5 * was.g && was.b > was.r && was.b > 0.02) was = 0.0; // What the program left counts as far as it can be true: the sky's light // outdoors, not the blocks of other memory. float top = max(dot(found, LUMA) * most, 1e-6);