Jump to content

How to use new custom shaders for sprites in 2.0


Recommended Posts

I've just read through the changelog for the recently released version 2.0 of Pixi.js and read with interest about the new ability to use custom shaders on sprites.


Since It states that performance is faster than filters I would like to convert some of my custom filters into this format (if it makes sense to do so)


I have a few questions regarding this though:


  1. How do I use this feature / How do I attach my custom shaders to the sprites?
  2. Can I chain multiple shaders to the same sprite?
  3. Why is performance better than filters?  Are they not just simply difference ways of attaching a fragment shader to a texture?

Thanks guys!

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...