2
« on: October 29, 2011, 11:31:07 pm »
Sorry if this is a stupid question but I just started messing with SFML 1.6 yesterday to evaluate it for my next project. Anyway everything seems to be working well except for the postFX.
I wanted to make a quick effect that would fake a flash light where the mouse is but I can't seem to get the color values to change. My first step was to try to make a pixel shader that would either darken the entire screen or just make it black. I went with just making the screen black but it does not seem to work. The shader code I am using is:
effect
{
vec3 darkcolor(0.0, 0.0, 0.0);
_out = vec4(darkcolor, 1.0);
}
I had messed with the tutorial for the postfx and got that working and even modified it a bit. It seems to me that this shader should make the entire screen black, but it does nothing.
Any help would be greatly appreciated!