Difference between revisions of "Shader Flags"
From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight") |
m (Text replacement - "</source>" to "</syntaxhighlight>") |
||
Line 9: | Line 9: | ||
#define mediump | #define mediump | ||
#define lowp | #define lowp | ||
− | </ | + | </syntaxhighlight> |
And for OpenGL ES 2.0: | And for OpenGL ES 2.0: | ||
Line 15: | Line 15: | ||
#version 100 | #version 100 | ||
#define GLES2 | #define GLES2 | ||
− | </ | + | </syntaxhighlight> |
'''Shader.FLAG_FROM_CODE''' | '''Shader.FLAG_FROM_CODE''' | ||
The string contains Shader code rather than the filename of the shader file. | The string contains Shader code rather than the filename of the shader file. |
Revision as of 14:32, 13 July 2023
Shader.FLAG_NO_DEFAULT_HEADER
Suppress the automatic addition of a default header for GLSL programs.
The default header for a desktop OpenGL is:
#version 120
#define highp
#define mediump
#define lowp
And for OpenGL ES 2.0:
#version 100
#define GLES2
Shader.FLAG_FROM_CODE
The string contains Shader code rather than the filename of the shader file.