Diffusion Krita 227bd473709b

Fix blending of layer styles with transparent pixels

Authored by dkazakov on Oct 1 2019, 5:02 PM.

Description

Fix blending of layer styles with transparent pixels

Overlay-like layer styles (overlay, inner shadow, inner glow and satin)
seem to be applied in a complicated way:

  1. Firstly the copy of the layer-stack projection is created
  2. Then a copy of original layer alpha channel is extracted into a selection
  3. Alpha channel of the layer itself is maxed-out to 1.0
  4. The layer and all the layer overlay-like styles are merged into the projection
  5. The the copy of the original projection from step 1) is copied onto the projection again using selection from step 2).

This weird technique is used to ensure that color mixing happens
exactly in full opacity, as if the colors would have no alpha-channel.

BUG:412283

Details

Committed
dkazakovOct 2 2019, 7:41 PM
Parents
R37:2d0f15352dc4: Add extra logging for some settings, autosaving and backup files
Branches
Unknown
Tags
Unknown