* Add a post-processing shader effect to this renderable. * @param {GLShader|ShaderEffect} effect - the effect to add * @returns {GLShader|ShaderEffect} the added effect * @example * mySprite.addPostEffect(new DesaturateEffect(renderer));
(effect)
| 483 | * mySprite.addPostEffect(new DesaturateEffect(renderer)); |
| 484 | */ |
| 485 | addPostEffect(effect) { |
| 486 | this.postEffects.push(effect); |
| 487 | return effect; |
| 488 | } |
| 489 | |
| 490 | /** |
| 491 | * Get post-processing shader effects. |
no test coverage detected