Can´t find the gl_FragColor option

Hello there,

i want to setup a Fragment Shader, but i don´t find the variable “gl_FragColor”. If i try to compile my code the
compiler could not find this var.

Can anyone give me a hint which header i need to include.

Regards

Treehouse

gl_FragColor is part of the bulitin GL Shading language variables – there is no header to include this. Maybe reading
GLSL intro might help explain more about the GL shaders.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.