MCPcopy Create free account
hub / github.com/galacean/engine / addPostProcessPass

Method addPostProcessPass

packages/core/src/Engine.ts:417–427  ·  view source on GitHub ↗

* Add a post process pass. * @param pass - Post process pass to add

(pass: PostProcessPass)

Source from the content-addressed store, hash-verified

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

Callers 3

constructorMethod · 0.95

Calls 2

indexOfMethod · 0.80
pushMethod · 0.80

Tested by

no test coverage detected