Adds a bounce of light. No occlusion but that might change in the future.
Leave a comment here and credit me if you use it in your game.
YOU MUST SET YOUR ENVIRONMENT LIGHTING TO WHITE WITH ENERGY 0.001 FOR THE FILTER TO WORK PROPERLY
I would put a blend file up for download but i am too lazy, instead i will link to this video that explains how to add 2d filters to your game.
Here is the filter itself:
NOTE: Much of this code was taken from Martinsh’s deferred shading filter, and later improved upon by TheLumcoin and myself.
-fixed gamma correction
-slight performance improvements (replaced some float divides for multiplication by a precomputed constant)
-Changed distance falloff to a nicer looking ( and maybe more performant ) formula
-pushed samples into a loop.
-various other improvements.
-cleaned up the code.
-added distance falloff.
-Fixed color detection.
-Improved angular falloff a bit.
-Implemented hemispherical emission.
-Fixed angular falloff.