mirror of
https://github.com/storytold/lightcraft.git
synced 2026-10-14 19:27:01 -04:00
Daylight sits above the Planckian locus, so with the DNG / Lightroom tint sign D65 converts to about +10, as Lightroom's Daylight preset has it. Taken from #336, which made the same sign fix as #258. Co-Authored-By: DWAA1660 <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01912WaK6Rmew3wxZuPyX7E8
This commit is contained in:
1 file changed
+8
@@ -150,6 +150,14 @@ mod tests {
|
||||
assert!(v1 > v0);
|
||||
}
|
||||
|
||||
/// Daylight lies above the Planckian locus, so D65 reads as a small positive tint, as
|
||||
/// Lightroom's Daylight preset (5500 K, +10) has it (#188).
|
||||
#[test]
|
||||
fn daylight_has_a_positive_tint() {
|
||||
let (_, tint) = xy_to_temp_tint(crate::D65);
|
||||
assert!((5.0..15.0).contains(&tint), "{tint}");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn wb_matrix_maps_src_white_to_white() {
|
||||
let sp = crate::REC2020;
|
||||
|
||||
Reference in new issue
Block a user