Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
General
»
SFML website
»
gl_FrontColor instead of gl_FragColor
Print
Pages: [
1
]
Author
Topic: gl_FrontColor instead of gl_FragColor (Read 4732 times)
0 Members and 1 Guest are viewing this topic.
FRex
Hero Member
Posts: 1848
Back to C++ gamedev with SFML in May 2023
gl_FrontColor instead of gl_FragColor
«
on:
May 22, 2017, 02:18:20 pm »
I think this is a mistake in some shader examples:
https://www.sfml-dev.org/tutorials/2.4/graphics-shader.php#minimal-shaders
Logged
Back to C++ gamedev with SFML in May 2023
Laurent
Administrator
Hero Member
Posts: 32498
Re: gl_FrontColor instead of gl_FragColor
«
Reply #1 on:
May 22, 2017, 02:35:59 pm »
Isn't gl_FragColor for fragment shaders, and gl_FrontColor for vertex shaders?
Logged
Laurent Gomila - SFML developer
FRex
Hero Member
Posts: 1848
Back to C++ gamedev with SFML in May 2023
Re: gl_FrontColor instead of gl_FragColor
«
Reply #2 on:
May 22, 2017, 03:49:46 pm »
Well f*ck. Sorry, my bad. I was in a hurry trying out something with frag and I ran into this example first and WTFed on it.
Logged
Back to C++ gamedev with SFML in May 2023
Print
Pages: [
1
]
SFML community forums
»
General
»
SFML website
»
gl_FrontColor instead of gl_FragColor
anything