Difference between revisions of "Shader Flags"
From GiderosMobile
(Created page with "A single flag is currently defined. Shader.FLAG_NO_DEFAULT_HEADER : Suppress the automatic addition of a default header for GLSL programs. The default header for a desktop O...") |
|||
Line 1: | Line 1: | ||
− | + | '''Shader.FLAG_NO_DEFAULT_HEADER''' | |
− | + | Suppress the automatic addition of a default header for GLSL programs. | |
The default header for a desktop OpenGL is: | The default header for a desktop OpenGL is: | ||
Line 16: | Line 16: | ||
#define GLES2 | #define GLES2 | ||
</source> | </source> | ||
+ | |||
+ | '''Shader.FLAG_FROM_CODE''' | ||
+ | |||
+ | The string contains Shader code rather than the filename of the shader file. |
Revision as of 16:56, 2 July 2020
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.