Difference between revisions of "Shader Flags"
From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight") |
|||
Line 4: | Line 4: | ||
The default header for a desktop OpenGL is: | The default header for a desktop OpenGL is: | ||
− | < | + | <syntaxhighlight lang="c"> |
#version 120 | #version 120 | ||
#define highp | #define highp | ||
Line 12: | Line 12: | ||
And for OpenGL ES 2.0: | And for OpenGL ES 2.0: | ||
− | < | + | <syntaxhighlight lang="c"> |
#version 100 | #version 100 | ||
#define GLES2 | #define GLES2 |
Revision as of 14:30, 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: <syntaxhighlight lang="c">
- version 120
- define highp
- define mediump
- define lowp
</source>
And for OpenGL ES 2.0: <syntaxhighlight lang="c">
- version 100
- define GLES2
</source>
Shader.FLAG_FROM_CODE
The string contains Shader code rather than the filename of the shader file.