A stand-in for the title's traced indirect light (VICTORY_AMBIENT, off): estimated from the light visible surfaces send out

After beloooo's constant (VIctory-Belobug-AMD 06031237, 4f45ab88, cd9f78ce).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
localandClaude Opus 5.5 committed 2026-11-25 11:09:43 -06:00
1 parent c2d559893b
commit 1316d0819d
4 files changed
+548

No files matched your search

+5
View File
@@ -61,6 +61,9 @@ pub(crate) struct Shader {
/// The first 8 bytes of its BLAKE3, as logged.
pub(crate) hash: String,
container: Vec<u8>,
/// Its part in the stand-in for the indirect light.
#[cfg(windows)]
pub(crate) ambient: Option<crate::ambient::Role>,
#[cfg(windows)]
translated: OnceLock<Option<Translated>>,
}
@@ -112,6 +115,8 @@ fn shader(stage: &'static str, bytes: &[u8]) -> Arc<Shader> {
hash: full.to_hex()[..16].to_owned(),
container: bytes.to_vec(),
#[cfg(windows)]
ambient: (stage == "compute").then(|| crate::ambient::role(bytes)).flatten(),
#[cfg(windows)]
translated: OnceLock::new(),
})
})