* Add a post process pass. * @param pass - Post process pass to add
(pass: PostProcessPass)
| 415 | * @param pass - Post process pass to add |
| 416 | */ |
| 417 | addPostProcessPass(pass: PostProcessPass): void { |
| 418 | if (pass.engine !== this) { |
| 419 | throw "The pass is not belong to this engine."; |
| 420 | } |
| 421 | |
| 422 | const passes = this._postProcessPasses; |
| 423 | if (passes.indexOf(pass) === -1) { |
| 424 | passes.push(pass); |
| 425 | pass.isActive && (this._postProcessPassNeedRefresh = true); |
| 426 | } |
| 427 | } |
| 428 | |
| 429 | /** |
| 430 | * @internal |
no test coverage detected