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

Author Topic: SFML2 Shaders  (Read 2117 times)

0 Members and 1 Guest are viewing this topic.

TheMagicNumber

  • Jr. Member
  • **
  • Posts: 64
    • View Profile
SFML2 Shaders
« on: February 12, 2011, 11:03:59 pm »
I'm trying to figure out how to make some shaders, does anybody know some good resources (reference card, maybe)?

I'm using an Intel G41 (GMA X4500), don't give me anything too new. :)

So far all I have working is this:
Code: [Select]
void main()
{
gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0);
}


Edit: Oh yeah, SFML2 from today.

TheMagicNumber

  • Jr. Member
  • **
  • Posts: 64
    • View Profile
SFML2 Shaders
« Reply #1 on: February 15, 2011, 07:25:38 pm »
Nothing? :(

Groogy

  • Hero Member
  • *****
  • Posts: 1469
    • MSN Messenger - groogy@groogy.se
    • View Profile
    • http://www.groogy.se
    • Email
SFML2 Shaders
« Reply #2 on: February 15, 2011, 07:26:53 pm »
Just google GLSL tutorials :P
Developer and Maker of rbSFML and Programmer at Paradox Development Studio

TheMagicNumber

  • Jr. Member
  • **
  • Posts: 64
    • View Profile
SFML2 Shaders
« Reply #3 on: February 15, 2011, 07:28:32 pm »
Well, I did. None of the tutorials worked, though. It'd always complain about certain functions.

I'm sure I need to specify a version but I don't know what version.

Edit: I don't know why but versions are suddenly working. Maybe there was a trailing character.

Edit2: Now it's not working...

Edit3: Oh, I only support GLSL 1.3.

Edit4: Okay, I can't do this. I can't set textures.

 

anything