Shader Flags

From GiderosMobile
Revision as of 16:29, 2 July 2020 by Anthony (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 OpenGL is:

#version 120
#define highp
#define mediump
#define lowp

And for OpenGL ES 2.0:

#version 100
#define GLES2