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

Author Topic: postFX  (Read 1066 times)

0 Members and 1 Guest are viewing this topic.

wrathnut

  • Newbie
  • *
  • Posts: 2
    • View Profile
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!

wrathnut

  • Newbie
  • *
  • Posts: 2
    • View Profile
postFX
« Reply #1 on: October 31, 2011, 04:00:30 pm »
Bump