vilcans Posted April 22, 2014 Share Posted April 22, 2014 Phaser noob here wondering if it's possible to use the content of the whole canvas as input to a filter. E.g. for post-processing effects such as blur, vignetting, colour correction etc. Link to comment Share on other sites More sharing options...
Pedro Alpera Posted April 22, 2014 Share Posted April 22, 2014 Something like this?: http://examples.phaser.io/_site/view_full.html?d=filters&f=gray.js&t=grayhttp://examples.phaser.io/_site/view_full.html?d=filters&f=checker+wave.js&t=checker%20wavehttp://examples.phaser.io/_site/view_full.html?d=filters&f=plasma.js&t=plasma Link to comment Share on other sites More sharing options...
vilcans Posted April 22, 2014 Author Share Posted April 22, 2014 No, those are not postprocessing filters. They are only applied to one sprite, not the whole canvas. I want for example to render a tilemap and some sprites, then add a filter on top of everything. Link to comment Share on other sites More sharing options...
BigRob154 Posted April 22, 2014 Share Posted April 22, 2014 No, those are not postprocessing filters. They are only applied to one sprite, not the whole canvas. I want for example to render a tilemap and some sprites, then add a filter on top of everything. Just have a deeper look. Plasma is a GLSL Shader, young padawan. Edit:Maybe you have to render the whole scene into a separate BitmapData object and apply the post effect there. Link to comment Share on other sites More sharing options...
vilcans Posted April 22, 2014 Author Share Posted April 22, 2014 Maybe you have to render the whole scene into a separate BitmapData object and apply the post effect there. Yeah, I should be able to render everything onto a texture instead of the screen somehow, then paint that texture to the screen with a post-processing shader. I wonder if Phaser can do that. Link to comment Share on other sites More sharing options...
Recommended Posts