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

Author Topic: SFML and SF::Text and GLSL - not showing color on font only primitive??  (Read 1245 times)

0 Members and 1 Guest are viewing this topic.

xrosax

  • Newbie
  • *
  • Posts: 1
    • View Profile
Hello I'm working on a titlescreen renderer
and I wanted to know why when trying to use GLSL  "yes I am actually using GLSL"
on my sf::text object that is drawn too the window :

window.draw(text , &shader);

that it wouldn't put any GLSL on the fonts only the vertex primitive.

What would be the reasons for this circumstance?..

Do I need to get the texture of the font if so can you show me how in the most simplest way possible ?..

Do I need too do some kind of mix and blending weirdness in GLSL?

What do I need to do so that I can perform visual effects with shaders
on the text and preferably any other object in the future thank you .

Id really appreciate it if there was more documentation on sfml with shaders who ever works on that : D.
« Last Edit: April 02, 2016, 02:23:57 pm by xrosax »

Hapax

  • Hero Member
  • *****
  • Posts: 3381
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Maybe this thread will be of some use to help you figure out the problem.
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*