Jump to content

multiple filters with a single colorMatrix


jure
 Share

Recommended Posts

hi,

 

i'm working on the "example 25" in the DEV branch: https://github.com/GoodBoyDigital/pixi.js/tree/dev/examples/example%2025%20-%20Video

 

i need to apply more than one filter at the same time, in example these two:

var grayscale = [  0.3, 0.6, 0.1, 0,  0.3, 0.6, 0.1, 0,  0.3, 0.6, 0.1, 0,  0  , 0  , 0  , 1];var brightness80percent = [  1  , 0  , 0  , 0.8,  0  , 1  , 0  , 0.8,  0  , 0  , 1  , 0.8,  0  , 0  , 0  , 1];

I know about the "webgl filters" feature, but i need a canvas fallback too.

 

How can i do?

 

Thanks!

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.

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

Loading...
 Share

  • Recently Browsing   0 members

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