Alpha set to Zero in Effects cause render issues

From the Asset Store
A whole set you need to create a gorgeous winter 2d game
  • Problem Description

    I have an effect that sets every pixel of an object to 0.0 so that it can be transparent.

    However, if the pixel has rgb values other than 0.0, they will color objects behind them even though they are completely transparent.

    Attach a Capx!AhHSZHEulqh_gW9U2hgHsZL1XBNS

    Description of Capx

    sprite with the effect

    Steps to Reproduce Bug

    • add the effect files to the effects folder
    • open the capx and view how it renders over objects behind it

    Observed Result

    The pixels are coloring objects behind it even though they are completely transparent.

    Expected Result

    For pixels not to color objects behind, even if their rgb values are set. Basically, the alpha in the effect should influence the results.

    Affected Browsers

    • Chrome: (YES)
    • FireFox: (YES)
    • Internet Explorer: (YES)

    Operating System and Service Pack

    vista sp2

    Construct 2 Version ID


  • also, obviously I don't intend to just make the objects transparent- I'll be adjusting various other stuff, but due to this issue it causes stuff to render incorrectly.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Closing as not a bug: your shader incorrectly handles premultiplied alpha - if you change the alpha to 0 you must also set the RGB channels to 0 as well.

    Note we don't accept bugs in third-party code anyway.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)