PDA

View Full Version : Canīt find the gl_FragColor option



Treehouse
01-07-2010, 04:57 AM
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

marshats
01-09-2010, 04:27 PM
gl_FragColor is part of the bulitin GL Shading language variables -- there is no header to include this. Maybe reading
GLSL intro (http://www.ozone3d.net/tutorials/glsl_intro.php) might help explain more about the GL shaders.