Sprite::switchShader()
Switch to a shader by name.
Syntax
Java
.switchShader(name)
.switchShader(index)
Parameters
| Name | Data Type | Description |
|---|---|---|
| name | String | the name of a shader |
| index | double | the index of a shader |
Return
void

Switch to a shader by name.
.switchShader(name)
.switchShader(index)
| Name | Data Type | Description |
|---|---|---|
| name | String | the name of a shader |
| index | double | the index of a shader |
void