Jump to content

Get the "result" of a shader (Filter) and repropose to it ?


askariwa
 Share

Recommended Posts

Yes, this is actually really easy in Pixi.js v3.

 

Filters are applied through their ".applyFilter()" method which lets the shader apply the FBOs however it wants. For example, the bloom filter creates an FBO (renderTarget) then applies a couple different filters in a couple different ways with a couple different blend modes before finally returning its object.

 

There are other examples of filters doing this as well, but this is probably the most complex example.

Link to comment
Share on other sites

Yes, this is actually really easy in Pixi.js v3.

 

Filters are applied through their ".applyFilter()" method which lets the shader apply the FBOs however it wants. For example, the bloom filter creates an FBO (renderTarget) then applies a couple different filters in a couple different ways with a couple different blend modes before finally returning its object.

 

There are other examples of filters doing this as well, but this is probably the most complex example.

 

Thank you very much for your answer (and the good news  :) ).

I'll go to study the example right away.

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