* Remove a specific post-processing shader effect. * @param {GLShader|ShaderEffect} effect - the effect to remove * @example * sprite.removePostEffect(effect);
(effect)
| 527 | * sprite.removePostEffect(effect); |
| 528 | */ |
| 529 | removePostEffect(effect) { |
| 530 | const idx = this.postEffects.indexOf(effect); |
| 531 | if (idx !== -1) { |
| 532 | this.postEffects.splice(idx, 1); |
| 533 | if (typeof effect.destroy === "function") { |
| 534 | effect.destroy(); |
| 535 | } |
| 536 | } |
| 537 | } |
| 538 | |
| 539 | /** |
| 540 | * returns true if this renderable is flipped on the horizontal axis |
no test coverage detected