PDA

View Full Version : GLSL - pre-processor?



Zulfiqar Malik
07-18-2005, 08:48 AM
Is there any any support for pre-processor in GLSL, like HLSL? I am specifically talking about "ifdefs", "ifndefs" etc. ?
I cannot figure out a way since none of the functions that i have studied take any sort of input specific to any pre-processing step. Any help in this regard will be highly appreciated.

sqrt[-1]
07-18-2005, 02:16 PM
Off the main OpenGL page is a link to the GLSL spec:
http://oss.sgi.com/projects/ogl-sample/registry/ARB/GLSLangSpec.Full.1.10.59.pdf

Goto page 9