Types.Renderer.WebGL.Wrappers
ShaderSetter
<static> ShaderSetter
WebGL constants and functions used to set shader uniforms.
| name | type | optional | description |
|---|---|---|---|
| constant | GLenum | No | The GL constant describing the data type. |
| baseType | GLenum | No | The GL constant describing the base data type. This is the same as constant for non-array types. |
| size | number | No | The number of elements in the data type. |
| bytes | number | No | The number of bytes per element in the data type. |
| set | function | No | The WebGL function to set the uniform. |
| setV | function | No | The WebGL function to set the uniform with a value array (vector). |
| isMatrix | boolean | No | Whether the uniform is a matrix. |
Type: object
Member of: Phaser.Types.Renderer.WebGL.Wrappers
Source: src/renderer/webgl/wrappers/typedefs/ShaderSetter.js#L7
Since: 4.0.0
ShaderSetterConstants
<static> ShaderSetterConstants
A collection of ShaderSetter descriptors used to set different types of shader uniforms.
Type: object
Member of: Phaser.Types.Renderer.WebGL.Wrappers
Source: src/renderer/webgl/wrappers/typedefs/ShaderSetterConstants.js#L7
Since: 4.0.0