mirror of
https://github.com/photonstorm/phaser
synced 2024-12-24 20:13:35 +00:00
81 lines
1.4 KiB
JavaScript
81 lines
1.4 KiB
JavaScript
/**
|
|
* @author Richard Davey <rich@photonstorm.com>
|
|
* @copyright 2013-2023 Photon Storm Ltd.
|
|
* @license {@link https://opensource.org/licenses/MIT|MIT License}
|
|
*/
|
|
|
|
var FX_CONST = {
|
|
|
|
/**
|
|
* The Glow FX.
|
|
*
|
|
* @name Phaser.GameObjects.FX.GLOW
|
|
* @type {number}
|
|
* @const
|
|
* @since 3.60.0
|
|
*/
|
|
GLOW: 4,
|
|
|
|
/**
|
|
* The Shadow FX.
|
|
*
|
|
* @name Phaser.GameObjects.FX.SHADOW
|
|
* @type {number}
|
|
* @const
|
|
* @since 3.60.0
|
|
*/
|
|
SHADOW: 5,
|
|
|
|
/**
|
|
* The Pixelate FX.
|
|
*
|
|
* @name Phaser.GameObjects.FX.PIXELATE
|
|
* @type {number}
|
|
* @const
|
|
* @since 3.60.0
|
|
*/
|
|
PIXELATE: 6,
|
|
|
|
/**
|
|
* The Vignette FX.
|
|
*
|
|
* @name Phaser.GameObjects.FX.VIGNETTE
|
|
* @type {number}
|
|
* @const
|
|
* @since 3.60.0
|
|
*/
|
|
VIGNETTE: 7,
|
|
|
|
/**
|
|
* The Shine FX.
|
|
*
|
|
* @name Phaser.GameObjects.FX.SHINE
|
|
* @type {number}
|
|
* @const
|
|
* @since 3.60.0
|
|
*/
|
|
SHINE: 8,
|
|
|
|
/**
|
|
* The Blur FX.
|
|
*
|
|
* @name Phaser.GameObjects.FX.BLUR
|
|
* @type {number}
|
|
* @const
|
|
* @since 3.60.0
|
|
*/
|
|
BLUR: 9, // uses 3 shaders, slots 9, 10 and 11
|
|
|
|
/**
|
|
* The Linear Gradient FX.
|
|
*
|
|
* @name Phaser.GameObjects.FX.LINEAR_GRADIENT
|
|
* @type {number}
|
|
* @const
|
|
* @since 3.60.0
|
|
*/
|
|
LINEAR_GRADIENT: 12
|
|
|
|
};
|
|
|
|
module.exports = FX_CONST;
|