Skip to content

Commit b64f2cc

Browse files
committed
Added ability to skip post pipeline per object
1 parent 750880f commit b64f2cc

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

src/gameobjects/components/Pipeline.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,16 @@ var Pipeline = {
5151
*/
5252
hasPostPipeline: false,
5353

54+
/**
55+
* Does this Game Object manage its Post Pipeline directly?
56+
*
57+
* @name Phaser.GameObjects.Components.Pipeline#manualPostPipeline
58+
* @type {boolean}
59+
* @webglOnly
60+
* @since 3.50.0
61+
*/
62+
manualPostPipeline: false,
63+
5464
/**
5565
* The WebGL Post FX Pipelines this Game Object uses for post-render effects.
5666
*

src/renderer/webgl/WebGLPipeline.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1145,7 +1145,7 @@ var WebGLPipeline = new Class({
11451145
{
11461146
if (unit === undefined) { unit = this.currentUnit; }
11471147

1148-
var postPipeline = (gameObject && gameObject.hasPostPipeline);
1148+
var postPipeline = (gameObject && gameObject.hasPostPipeline && !gameObject.manualPostPipeline);
11491149

11501150
if (postPipeline)
11511151
{

0 commit comments

Comments
 (0)