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

Author Topic: pos sfx in 2.0  (Read 1822 times)

0 Members and 1 Guest are viewing this topic.

kaB00M

  • Full Member
  • ***
  • Posts: 101
    • View Profile
    • Caffeware
    • Email
pos sfx in 2.0
« on: October 25, 2012, 04:15:16 am »
Is there a way to emaulate possfx in 2.0? I know one can use a shader on a particular texture, but what I want is to apply more than one effect to a texture. Also, to apply a shader to the whole draw scene.

Thank you.



masskiller

  • Sr. Member
  • ****
  • Posts: 284
  • Pointers to Functions rock!
    • MSN Messenger - kyogre_jb@hotmail.com
    • View Profile
    • Email
Re: pos sfx in 2.0
« Reply #1 on: October 25, 2012, 04:30:44 am »
I am just starting with shaders so I don't really know well, but if you implement a GLSL shader that grants the two effects you want to achieve you can get away with using only one shader.
Programmer, Artist, Composer and Storyline/Script Writer of "Origin of Magic". If all goes well this could turn into a commercial project!

Finally back into the programming world!

Foaly

  • Sr. Member
  • ****
  • Posts: 453
    • View Profile
Re: pos sfx in 2.0
« Reply #2 on: October 25, 2012, 07:24:04 am »
A quick google search on multiple shaders in sfml would have brought up this post, that discribes a technique on how to achieve this: http://en.sfml-dev.org/forums/index.php?topic=4799.0

How to implement a global shader is discribed in the sfml 2 doc in the shader section. Please read the documentation more carefully.