new BaseShader(key [, fragmentSrc] [, vertexSrc] [, uniforms])
Parameters:
Name | Type | Argument | Description |
---|---|---|---|
key |
string | The key of this shader. Must be unique within the shader cache. |
|
fragmentSrc |
string |
<optional> |
The fragment source for the shader. |
vertexSrc |
string |
<optional> |
The vertex source for the shader. |
uniforms |
any |
<optional> |
Optional object defining the uniforms the shader uses. |
- Since: 3.17.0
- Source: src/display/shader/BaseShader.js (Line 9)
Members
-
fragmentSrc :string
-
The source code, as a string, of the fragment shader being used.
Type:
- string
- Since: 3.17.0
- Source: src/display/shader/BaseShader.js (Line 90)
-
key :string
-
The key of this shader, unique within the shader cache of this Phaser game instance.
Type:
- string
- Since: 3.17.0
- Source: src/display/shader/BaseShader.js (Line 81)
-
<nullable> uniforms :any
-
The default uniforms for this shader.
Type:
- any
- Since: 3.17.0
- Source: src/display/shader/BaseShader.js (Line 108)
-
vertexSrc :string
-
The source code, as a string, of the vertex shader being used.
Type:
- string
- Since: 3.17.0
- Source: src/display/shader/BaseShader.js (Line 99)