Jump to content

Does Pixi.js support background blending shaders?


Recommended Posts

Does Pixi.js support shaders which can sample from the background and use custom fragment shader code to blend? For example, implementing a Screen blend in a fragment shader. It's a tricky problem and I'd be interested in the implementation details if Pixi supports this, but I haven't been able to find anything on this so far.

Link to comment
Share on other sites

I didnt know that detail about Construct.

Yep, AlphaFilter or any other filter forces usage of extra framebuffer, and its possible to copy contents from its texture to another texture and use it for blending emulation.

Anyway, blending shaders are slow because of extra framebuffer and copying, dont over-use them :) for a few large images its fine.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...