fix(export): keep values above 1.0 in EXR output (#339)

The EXR sequence writer and comp.saveFrameAsExr clamped colour to 0..1 before the sRGB decode, so a 32 bpc project lost every over-range value. The lower bound stays at 0 and alpha stays clamped. Tests cover Rgba and Rgb sequences and saveFrameAsExr.
This commit is contained in:
MindlessRuff
2026-10-08 20:22:49 -07:00
parent d60cb71e29
commit 1b2c5d1944
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);
}