Blender Horror Game - ALPHA release - now brighter ;)

Mine? Sorry, it seems there vere a few Variables I missed to delete. (It was a finicky Situation – you see, I had three variables included to determine Shades of Red, Green and Blue, as this is just a Part of a slightly bigger Filter I already had where I also could change the Ambience Color… but I decided to take that out and forgot one Spot where there remained Relics of that Code.)

Now it works well.


uniform sampler2D bgl_RenderedTexture;


//Set these up as Properties, one named "brightness" (0.0), the other one "contrast" (1.0):
uniform float brightness; // -0.5 < 0.0 < 0.5 //default: 0.0
uniform float contrast;   //  0.0 < 1.0 < 2.0 //default: 1.0


//Here starts the actual Filter


vec3 render = texture2D(bgl_RenderedTexture, gl_TexCoord[0].xy).rgb;


void main(void) {
 gl_FragColor = vec4( vec3((render)*contrast+brightness), 1.0);
}

It looks like a Nice Horror Game

Thanks. I´ll add the brightness slider soon.


I now have the brightness controls done. For now you can´t drag the slider, but it works fine as well.