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