Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - wrathnut

Pages: [1]
1
Graphics / postFX
« on: October 31, 2011, 04:00:30 pm »
Bump

2
Graphics / postFX
« 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:

Code: [Select]

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!

Pages: [1]
anything