Takes the Glow FX Shader source and parses out the SIZE and DIST consts with the configuration values.
name | type | arguments | description |
---|---|---|---|
shader | string |
The Fragment Shader source code to operate on. |
|
game | Phaser.Game |
The Phaser Game instance. |
|
quality | number | <optional> |
The quality of the glow (defaults to 0.1) |
distance | number | <optional> |
The distance of the glow (defaults to 10) |
The modified Fragment Shader source.