Fix stupid bug in test image export.
This was correct the last time I exported the image (it was introduced in the refactor a while ago), and the bug was only in the export part, not the reading part. So all of the LUT extraction we've done has been correct, thank goodness.
This commit is contained in:
parent
beaefbf62f
commit
252c2541d6
|
@ -230,7 +230,7 @@ fn write_rgb_exr<P: AsRef<Path>>(
|
||||||
LayerAttributes::named(""),
|
LayerAttributes::named(""),
|
||||||
Encoding::SMALL_LOSSLESS,
|
Encoding::SMALL_LOSSLESS,
|
||||||
SpecificChannels::rgb(|co: exr::math::Vec2<usize>| {
|
SpecificChannels::rgb(|co: exr::math::Vec2<usize>| {
|
||||||
let rgb = pixels[co.1 * res_y + co.0];
|
let rgb = pixels[co.1 * res_x + co.0];
|
||||||
(rgb[0], rgb[1], rgb[2])
|
(rgb[0], rgb[1], rgb[2])
|
||||||
}),
|
}),
|
||||||
))
|
))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user