Shader Constants

From GiderosMobile
Revision as of 00:39, 4 November 2023 by MoKaLux (talk | contribs) (Created page with "__NOTOC__ '''Available since:''' Gideros 2015.06.30<br/> '''Defined by:''' '''Shader'''<br/> === Constants === '''Shader.CFLOAT''': Uniform descriptor CFLOAT data type, a flo...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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:
Shader.DSHORT:
Shader.DUBYTE:
Shader.DUSHORT:
Shader.FLAG_FROM_CODE:
Shader.FLAG_NONE:
Shader.FLAG_NO_DEFAULT_HEADER:
Shader.SHADER_PROGRAM_UNSPECIFIED: Indeterminate program
Shader.SHADER_PROGRAM_BASIC: Render a plain color shape
Shader.SHADER_PROGRAM_COLOR: Render a colored shape
Shader.SHADER_PROGRAM_TEXTURE: Render a textured shape
Shader.SHADER_PROGRAM_TEXTUREALPHA: Render shape with an alpha texture
Shader.SHADER_PROGRAM_TEXTURECOLOR: Render a colored and textured shape
Shader.SHADER_PROGRAM_TEXTUREALPHACOLOR: Render a colored shape with an alpha texture
Shader.SHADER_PROGRAM_PARTICLE: Used by liquidfun particles
Shader.SHADER_PROGRAM_PARTICLES: Used by Particles
Shader.SHADER_PROGRAM_PATHFILLCURVE: Used by Path2D to fill a curve
Shader.SHADER_PROGRAM_PATHSTROKECURVE: Used by Path2D to draw a curve
Shader.SHADER_PROGRAM_PATHSTROKELINE: Used by Path2D to draw a segment
Shader.SHADER_VARIANT_TEXTURED: A textured variant of a standard program
Shader.SHADER_VARIANT_3D: A 3D variant of a standard program
Shader.SYS_COLOR: The current color (CFLOAT4)
Shader.SYS_NONE: Not filled by Gideros
Shader.SYS_PARTICLESIZE: The particle size
Shader.SYS_PROJECTION: The projection matrix (CMATRIX)
Shader.SYS_TEXTUREINFO: Real extent and texel size of the texture (CFLOAT4)
Shader.SYS_TIMER: Current time (CFLOAT)
Shader.SYS_VIEW: The view matrix (CMATRIX)
Shader.SYS_VP: Combined view/projection matrix (CMATRIX)
Shader.SYS_WIT: The World Inverse Transpose matrix (CMATRIX)
Shader.SYS_WIT3: 3x3 World Inverse Transpose matrix
Shader.SYS_WORLD: The world or matrix (CMATRIX)
Shader.SYS_WVP: The combined world/view/projection matrix (CMATRIX)