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.
Enjoy.
ChangeLog:
v1.5:
-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
v1.4:
-pushed samples into a loop.
-various other improvements.
v1.3:
-cleaned up the code.
-optimization.
-added distance falloff.
v1.2:
-Fixed color detection.
-Improved angular falloff a bit.
v1.1:
-Implemented hemispherical emission.
-Fixed angular falloff.
v1.0:
-First Release.