Skip to content

shader kills alpha (of PNG's) when using filter(shader) ONLY in 3.4 #5650

@hype

Description

@hype

howdy, @codeanticode

issue occurs ONLY in 3.4... when using any PShader + transparent PNG's

this code works as expected: when using the shader() call

void draw() {
  background(#FF3300);
  shader(d1);
  image(img, 0, 0);
}

screen shot 2018-09-14 at 2 13 16 pm

but if you do this... using the filter(shader) call... the transparency of the PNG does not behave as expected.

void draw() {
  background(#FF3300);
  filter(d1);
  image(img, 0, 0);
}

screen shot 2018-09-14 at 2 14 57 pm

in most of current code examples I enjoy the flexibility of drawing with a PGraphics and using pgraphics.filter(shader) to apply what shader gets applied where... as seen below :

screen shot 2018-09-14 at 2 06 28 pm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions