Using #ifdef in OpenGL ES 2.0 shaders
It’s nice to use #ifdef’s in an OpenGL shader. This allows a shader file do things like contain a vertex shaders and pixel shaders in the same file. Or have different render paths selected at run time. Here is an example of a simple shader file: To use a shader in OpenGL ES, the program [...] Read more





