Phaser API Documentation

  Version: 
<static> setGlowQuality(shader, game, [quality], [distance])

Description:

Takes the Glow FX Shader source and parses out the SIZE and DIST consts with the configuration values.

Parameters:

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)

Returns:
Description:

The modified Fragment Shader source.

Type:
  • string
Since: 3.60.0