Blender GLSL 2D filter Shaders for the Game Engine

All GLSL shaders are tested with Blender 2.46 Release Candidate 1. They do NOT work with Blender 2.45!

To enable CUSTOM 2D filter, simply set up the logic brick as follows:

Zaghaghi writes: Custom filters give you the ability to define your own 2d filter using GLSL. its usage is the same as built-in filters, but you must select "Custom Filter" in 2D Filter actuator, then write shader program into Text Editor and then place shader script name on actuator.

Cooked, Canned, Ready to serve, TV Shaders

All of the shaders are ugly hacks right now (translation: slow), I am having trouble setting up a 2-pass Gaussian filter, and have to resort to using the brutally slow recursive loop. Each pixel is sampled 10x10=100 times, as oppose to the 10x2=20 times usually required to do a 2 pass blur filter. Enjoy at your own risk.
glsl bloom
Medium radius light bloom Shader



glsl blur
Small radius Guassian Blur Shader



glsl night
Night time bloom Shader with color correction



Comments

On Apr 30, 2008, Rakunko Said:
I've had some luck using a intel duo 1.6 ghz at school...with a intergrated card and oly 1.4 opengl....though it runs fastest at home with my athlon x2 2.4 at 2.0.1 gl...versions and cpu are important and beware of cpu usage...will they make the BGE use both cores?


A Mike Pan Design.