Clean up 'Image' node by removing old 'Cull' node in sub-network (#2643)

* Clean up 'Image' node by removing old 'Cull' node in sub-network

* Fix gamma correction on Decode Image node
This commit is contained in:
Keavon Chambers 2025-05-12 18:40:48 -07:00 committed by GitHub
parent 0022680336
commit d3b5dc5712
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 21 additions and 110 deletions

View file

@ -83,7 +83,10 @@ fn decode_image(_: impl Ctx, data: Arc<[u8]>) -> ImageFrameTable<Color> {
};
let image = image.to_rgba32f();
let image = Image {
data: image.chunks(4).map(|pixel| Color::from_unassociated_alpha(pixel[0], pixel[1], pixel[2], pixel[3])).collect(),
data: image
.chunks(4)
.map(|pixel| Color::from_unassociated_alpha(pixel[0], pixel[1], pixel[2], pixel[3]).to_linear_srgb())
.collect(),
width: image.width(),
height: image.height(),
..Default::default()