klecks icon indicating copy to clipboard operation
klecks copied to clipboard

Invert artifacts

Open bitbof opened this issue 2 years ago • 0 comments

  • Tested in Chrome (Win10, macOS), Does not happen in Firefox (Win10)
  • Paint with Blend brush on new layer
  • Invert that layer a lot (10+ times)
  • Artifacts will form. (Won't happen on a layer where all pixels are fully opaque)

Looks like an issue with Chromium. -> I will create a Chromium ticket.


Example (using this image: https://i.imgur.com/JtvO7zc.png)

Before: 2022_03_11_0oo_Kleki

After: 2022_03_11_0p3_Kleki

Artifacts in detail 2022_03_11_0p4_Kleki

It can be more pronounced than that.

Invert shader:

uniform sampler2D texture;
varying vec2 texCoord;

void main() {
    vec4 color = texture2D(texture, texCoord);
    gl_FragColor = vec4(1.0 - color.r, 1.0 - color.g, 1.0 - color.b, color.a);
}

bitbof avatar Mar 11 '22 14:03 bitbof