ColorMatrixFilter in Phaser 3

Is it possible to use ColorMatrixFilter in Phaser 3? I am trying to achieve tweened brightness effect on GameObjects like sprite or image, but the only thing I could find similar to this in official API was Tint, however, that doesn’t really work or look any good!

I read advice on stack overflow abut using a duplicate white sprite on the top of original, setting it ta add blend mode etc, but that’s just cumbersome, ineffective and SLOW!

Ideally this : https://pixijs.download/dev/docs/PIXI.filters.ColorMatrixFilter.html !

So far what I could gather this is not possible in Phaser 3 . :frowning:

Would be possible in Phaser 2 using something like this: https://www.gamefromscratch.com/post/2015/09/17/GLSL-Shaders-in-Phaser-with-TypeScript.aspx

which would be ideal!

I really don’t get why the NEWER version of the library would TAKE AWAY mega useful capabilities of the older version?

The only example I could see where some filters asisgnable to the camera, via a complicated rendering pipeline methods…

arrghh, so frustating, this was a piece of cake to do in Flash!

1 Like