Faces move, ray tracing mostly off, intro video fix, picture fixes

- Faces: the face network's 16-bit values travel through integer views; they
  were read as floats and came back as zeros on NVIDIA. Port of
  fxceless/victory-fork pull request 927 (tippythetaidum): emit/halves.rs,
  lower.rs, descriptor/host.rs, draw.rs.
- Ray tracing mostly off: scripts/rt_off_hashes.txt lists the 1,000
  CS_RaytracingResolve and 34 traced-shadow shaders, skipped by
  play-nvidia.ps1 through VICTORY_SKIP_PIPELINES (-RayTracing keeps them).
  The structure builder cannot run on NVIDIA, so every ray missed and rooms
  went white depending on the view angle. The screen-probe and visibility
  traces keep running; skipping them left rainbow glitter.
- Intro video flicker: linear one-level R8 video planes always record their
  copy (texture.rs), so frames of the ring no longer show out of order.
- VICTORY_AMBIENT_MOST (ambient.rs), VICTORY_NAN_SCRUB (emit/lower.rs) and
  VICTORY_PIPELINE_WAIT_ONCE (pipeline/make.rs, on by default).
- Off by default: VICTORY_CONSTANT_MARKS (port of fxceless pull request
  1216), VICTORY_TARGET_VARIANTS (port of fxceless a35c557393), F9 frame
  capture (capture.rs).
- play-nvidia.ps1: the speed set by default, -Quality for the slower set
  with fewer stretched bodies and less rainbow skin. README updated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
trustno1-coderandClaude Opus 5.5 committed 2026-11-25 19:13:08 -08:00
1 parent 3e5fb36392
commit 77e13a974a
27 files changed
+1868 -73

No files matched your search

+16 -1
View File
@@ -112,6 +112,18 @@ fn air() -> f32 {
})
}
/// LOCAL: how many times the estimate the title's own result may keep
/// (`VICTORY_AMBIENT_MOST=<multiple>`, 4 when unset). Without rays the
/// probes hold the sky's light indoors too; at 4 times the estimate a room
/// looked towards a window or the sky goes very bright.
fn most() -> f32 {
static SET: OnceLock<f32> = OnceLock::new();
*SET.get_or_init(|| {
let set = std::env::var("VICTORY_AMBIENT_MOST").unwrap_or_default();
set.trim().parse().ok().filter(|v: &f32| v.is_finite() && *v > 0.0).unwrap_or(4.0)
})
}
/// Strength and radius of the creases' shade.
fn shade() -> [f32; 2] {
static SET: OnceLock<[f32; 2]> = OnceLock::new();
@@ -243,6 +255,9 @@ void clear_air(uint3 at : SV_DispatchThreadID) {
float far = float(at.z) / float(d);
float cap = air * lerp(dot(cells[CELLS].rgb, LUMA), dot(seen_there, LUMA), far);
float3 c = scattered[at];
// LOCAL: a NaN or infinity in the air is summed along every view ray
// through it: black or white patches floating in the room.
if (any(isnan(c)) || any(isinf(c))) { scattered[at] = 0; return; }
float has = dot(c, LUMA);
if (has > cap) scattered[at] = c * (cap / has);
}
@@ -459,7 +474,7 @@ pub(crate) fn after(list: &HostList, role: Role, views: &Views) -> bool {
words[6] = views.size[0];
words[7] = views.size[1];
words[8] = 0.04f32.to_bits();
words[9] = 4.0f32.to_bits();
words[9] = most().to_bits();
words[10] = air().to_bits();
let l = &list.list;
// SAFETY: an open list with the heap of the views set; the title's