Stage::addShader()
Adds a new shader to the sprite. If a shader with the received name already exists, this method
Syntax
Java
.addShader(name, fragmentShaderPath, vertexShaderPath)
Parameters
| Name | Data Type | Description |
|---|---|---|
| name | String | |
| fragmentShaderPath | String | The path to the fragment shader |
| vertexShaderPath | String | The path to the vertex shader |
Return
Shader
