jouniii

Phaser filterkit (Vignette and FilmGrain)

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

Share this post


Link to post
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...

  • Recently Browsing   0 members

    No registered users viewing this page.