Jump to content

Multiple Pipelines in one image, or a filter alternative


OneSillyLion
 Share

Recommended Posts

In phaser 2, I applied to an image two filters to make a blurred image (Blur X and Blur Y, with the two of them a complete Blur). I wanted to use the same filter system to apply this two shaders, but I don't find the filter class anywhere. But I found the Pipeline system, so I combined both blurs and made this complete blur shader. Everything fine now.

My questions are... There is some way to apply two pipelines in one image/sprite? and, There is an alternative for filters in phaser 3?

Link to comment
Share on other sites

Of course! 
The effect is a little ugly right now but only needs a little fixing.
I used this reference:
https://labs.phaser.io/view.html?src=src\renderer\Custom Pipeline.js
And here is the file I used. It's in Typescript, but I think the idea is in there :)

Still, I haven't found an answer to my questions, but I'll write something here if I found something about it

Blur.ts

Link to comment
Share on other sites

  • 1 year later...
 Share

  • Recently Browsing   0 members

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