Shaders::activate()
Draws with the shader of the given name as well, without stopping the others. Active shaders take turns in the order they were added, each working on what the one before it drew, so a stage can be tinted and wobble at the same time. A sprite draws with the first of its active shaders only.
Examples
Syntax
Java
.activate(name)
Parameters
| Name | Data Type | Description |
|---|---|---|
| name | String | the name of the shader |
Return
void