* Remove all post-processing shader effects. * @example * sprite.clearPostEffects();
()
| 512 | * sprite.clearPostEffects(); |
| 513 | */ |
| 514 | clearPostEffects() { |
| 515 | for (const effect of this.postEffects) { |
| 516 | if (typeof effect.destroy === "function") { |
| 517 | effect.destroy(); |
| 518 | } |
| 519 | } |
| 520 | this.postEffects.length = 0; |
| 521 | } |
| 522 | |
| 523 | /** |
| 524 | * Remove a specific post-processing shader effect. |
no test coverage detected