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.


Topics - r0undh0u53

Pages: [1]
1
DotNet / SFML 2.0 Using shaders together with rendering text
« on: June 19, 2012, 05:22:04 am »
Hi,

I just started using SFML and I am thoroughly impressed. =D

I am having a bit of a problem with the shaders though. It seems that after rendering a shader, when you render text, the texture that was passed to the shader doesnt render anymore.

My shader is just a basic vertex and fragment shader, no fancy stuff, just straight transform and compute the color.

Is there a rule of thumb when working with shaders that use textures? Based on the Shader class, the SetParameter function does not have a parameter to set the texture slot number, so 0 is always used. Could there be a conflict and the texture in the shader is overwritten?

Thanks,
r0undh0u53

Pages: [1]