Ttanasart-pt / Pixel-Composer

Node base VFX editor for pixel art.
MIT License
754 stars 33 forks source link

[Bug] - Transparency in Masks Breaks Blend Nodes #14

Closed Synthoid closed 1 year ago

Synthoid commented 1 year ago

When a surface output using transparency is connected to a Blend node's mask input, the blend node breaks and produces a malformed output. This was seen in v 1.0.7.

I was able to get around this using a Color Replace node and setting all other colors to black. Disabling that option will again produce malformed blend outputs.

Error: image

Expected: image

Synthoid commented 1 year ago

To further clarify, my expectation is that transparent or clear pixels would be treated as black during mask operations.

Ttanasart-pt commented 1 year ago

Okay, so it seems like it samples only the RGB channel. I'll change it to multiply alpha too in the next version. Thank you.

Ttanasart-pt commented 1 year ago

Multiply alpha in blend node is added in 1.0.8.