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

Author Topic: gl_FrontColor instead of gl_FragColor  (Read 4752 times)

0 Members and 1 Guest are viewing this topic.

FRex

  • Hero Member
  • *****
  • Posts: 1848
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
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
Back to C++ gamedev with SFML in May 2023

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
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?
Laurent Gomila - SFML developer

FRex

  • Hero Member
  • *****
  • Posts: 1848
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
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.
Back to C++ gamedev with SFML in May 2023

 

anything