Shader Flags

From GiderosMobile
Revision as of 22:00, 4 November 2023 by MoKaLux (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2015.06.30
Class: Shader

Description

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.