SFML community forums

Help => Graphics => Topic started by: kaB00M on October 25, 2012, 04:15:16 am

Title: pos sfx in 2.0
Post by: kaB00M 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.
Title: Re: pos sfx in 2.0
Post by: masskiller 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.
Title: Re: pos sfx in 2.0
Post by: Foaly 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.