Merge pull request #344 from MindlessRuff/fix/exr-over-range

fix(export): keep values above 1.0 in EXR output (#339)
This commit is contained in:
Brandon Thomas
2026-10-09 09:31:40 -04:00
4 changed files with 114 additions and 3 deletions
+1 -1
View File
@@ -165,7 +165,7 @@ pub fn layered_exr(s: &Session, cid: ItemId, t: Tick, scale: f64) -> Result<(Vec
let sp = straight(*p);
let a = sp[3];
for c in 0..3 {
out[c].push(srgb_to_linear(sp[c].clamp(0.0, 1.0)) * a);
out[c].push(srgb_to_linear(sp[c].max(0.0)) * a);
}
out[3].push(a);
}