diff --git a/src/core/Config.js b/src/core/Config.js index 949bbcae9..9a960ec61 100644 --- a/src/core/Config.js +++ b/src/core/Config.js @@ -331,6 +331,16 @@ var Config = new Class({ */ this.fps = GetValue(config, 'fps', null); + /** + * @const {boolean} Phaser.Core.Config#disablePreFX - Disables the automatic creation of the Pre FX Pipelines. If disabled, you cannot use the built-in Pre FX on Game Objects. + */ + this.disablePreFX = GetValue(config, 'disablePreFX', false); + + /** + * @const {boolean} Phaser.Core.Config#disablePostFX - Disables the automatic creation of the Post FX Pipelines. If disabled, you cannot use the built-in Post FX on Game Objects. + */ + this.disablePostFX = GetValue(config, 'disablePostFX', false); + // Render Settings - Anything set in here over-rides anything set in the core game config var renderConfig = GetValue(config, 'render', null); diff --git a/src/core/typedefs/GameConfig.js b/src/core/typedefs/GameConfig.js index 6287b178e..0cfaad638 100644 --- a/src/core/typedefs/GameConfig.js +++ b/src/core/typedefs/GameConfig.js @@ -58,4 +58,6 @@ * @property {Phaser.Scale.CenterType} [autoCenter=Phaser.Scale.Center.NO_CENTER] - Automatically center the canvas within the parent? * @property {number} [resizeInterval=500] - How many ms should elapse before checking if the browser size has changed? * @property {?(HTMLElement|string)} [fullscreenTarget] - The DOM element that will be sent into full screen mode, or its `id`. If undefined Phaser will create its own div and insert the canvas into it when entering fullscreen mode. + * @property {boolean} [disablePreFX=false] - Disables the automatic creation of the Pre FX Pipelines. If disabled, you cannot use the built-in Pre FX on Game Objects. + * @property {boolean} [disablePostFX=false] - Disables the automatic creation of the Post FX Pipelines. If disabled, you cannot use the built-in Post FX on Game Objects. */