Shader Constants

From GiderosMobile
Revision as of 01:31, 4 November 2023 by MoKaLux (talk | contribs)

Available since: Gideros 2015.06.30
Defined by: Shader

Constants

Shader.CFLOAT: Uniform descriptor CFLOAT data type, a float value, 1
Shader.CFLOAT2: Uniform descriptor CFLOAT2 data type, a vector of two floats, 2
Shader.CFLOAT3: Uniform descriptor CFLOAT3 data type, a vector of three floats, 3
Shader.CFLOAT4: Uniform descriptor CFLOAT4 data type , a vector of four floats 4
Shader.CINT: Uniform descriptor CINT data type, an integer value, 0
Shader.CMATRIX: Uniform descriptor CMATRIX data type , a 4x4 float matrix, 5
Shader.CTEXTURE: Uniform descriptor CTEXTURE data type, a texture, 6
Shader.DBYTE: Attributes descriptor DBYTE data type, 0
Shader.DFLOAT: Attributes descriptor DFLOAT data type , 5
Shader.DINT: Attributes descriptor DINT data type, 4
Shader.DSHORT: Attributes descriptor DSHORT data type, 2
Shader.DUBYTE: Attributes descriptor DUBYTE data type, 1
Shader.DUSHORT: Attributes descriptor DUSHORT data type, 3
Shader.FLAG_FROM_CODE: Shader loaded from code, 4
Shader.FLAG_NONE: No flags, 0
Shader.FLAG_NO_DEFAULT_HEADER: Suppress the automatic addition of a default header for GLSL programs, 1
Shader.SHADER_PROGRAM_UNSPECIFIED: Indeterminate program, 0
Shader.SHADER_PROGRAM_BASIC: Render a plain color shape, 1
Shader.SHADER_PROGRAM_COLOR: Render a colored shape, 2
Shader.SHADER_PROGRAM_TEXTURE: Render a textured shape, 3
Shader.SHADER_PROGRAM_TEXTUREALPHA: Render shape with an alpha texture, 4
Shader.SHADER_PROGRAM_TEXTURECOLOR: Render a colored and textured shape, 5
Shader.SHADER_PROGRAM_TEXTUREALPHACOLOR: Render a colored shape with an alpha texture, 6
Shader.SHADER_PROGRAM_PARTICLE: Used by liquidfun particles, 7
Shader.SHADER_PROGRAM_PARTICLES: Used by Particles, 8
Shader.SHADER_PROGRAM_PATHFILLCURVE: Used by Path2D to fill a curve, 9
Shader.SHADER_PROGRAM_PATHSTROKECURVE: Used by Path2D to draw a curve, 10
Shader.SHADER_PROGRAM_PATHSTROKELINE: Used by Path2D to draw a segment, 11
Shader.SHADER_VARIANT_TEXTURED: A textured variant of a standard program, 1
Shader.SHADER_VARIANT_3D: A 3D variant of a standard program, 2
Shader.SYS_COLOR: This Uniform of type CFLOAT4 will hold the constant color to be used to draw the shape, 2
Shader.SYS_NONE: Not filled by Gideros, 0
Shader.SYS_PARTICLESIZE: This Uniform of type CFLOAT will hold the particle size to use in a particle shader, 6
Shader.SYS_PROJECTION: The projection matrix (CMATRIX), 10
Shader.SYS_TEXTUREINFO: This Uniform of type CFLOAT4 will hold information about the texture used in a particle shader, like real extent and texel size, 5
Shader.SYS_TIMER: Current time (CFLOAT), 9
Shader.SYS_VIEW: The view matrix (CMATRIX), 8
Shader.SYS_VP: Combined view/projection matrix (CMATRIX), 11
Shader.SYS_WIT: This Uniform of type CMATRIX will hold the World Inverse Transpose matrix, 7
Shader.SYS_WIT3: 3x3 World Inverse Transpose matrix, 3
Shader.SYS_WORLD: This Uniform of type CMATRIX will hold the World transform matrix, 4
Shader.SYS_WVP: This Uniform of type CMATRIX will hold the combined World/View/Projection matrix, 1