Jump to content

Phaser filterkit (Vignette and FilmGrain)


jouniii
 Share

Recommended Posts

I needed some aging filters for a game and ported two webgl shaders to Phaser filters. Licensing carries over (quite liberal licensing, so I though keeping it that way), so that's why I'm releasing the filter code here:

 

https://github.com/jounii/phaser-filterkit

 

The two filters are:

 

Vignette, for classic vignette effect. Pretty straight port from Evan Wallace's implementation. He has tons of other great shaders too, but don't have need for those now.

 

FilmGrain, for a realtime (although filter has small impact on fps) realistic analog type of film grain. It was a bit job to find this kind of filter which looked good, but here it is. It is based on Martin Upitis' research and code (http://devlog-martinsh.blogspot.fi/2013/05/image-imperfections-and-film-grain-post.html). Ported (with some adaptations) from the shader code he released. 

 

There's small demo also which I used for testing the filters (looks better animated):

 

demo.png

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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