Skip to content

Blend filters don't work correctly with images that has transparency. #3

@igor-korotenko

Description

@igor-korotenko

I've also noticed that not only normal blend filter has an error, but when trying to apply almost all blend filters I've got either black screen or my overlay image but with black color in place where transparent should be. Also I've noticed some differences in behaviour of filters on htc ONE X and samsung galaxy SIII.
HTC behaves like nexus genymotion emulator in blending, but samsung works another way and some of filters working. But normal filter don't work too.
I've tried to change colors in NormalBlend shader to this.
+"void main(){\n"
+" vec4 color2 = texture2D("+UNIFORM_TEXTURE+","+VARYING_TEXCOORD+");\n"
+" vec4 color1 = texture2D("+UNIFORM_TEXTURE2+","+VARYING_TEXCOORD+");\n"

I've made a little videos.
https://www.youtube.com/watch?v=FBimYZQZWy4 - sgs3
https://www.youtube.com/watch?v=5Dccx4nW0N4 - htc one x

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions