GlowEffect
Implements
Index
Constructors
constructor
Parameters
options: GlowPassesOptions
Returns GlowEffect
Properties
publicreadonlyscale
Resolution the glow blur runs at relative to the source, fixed at construction
Accessors
publiccolor
publicintensity
Multiplies the halo's opacity.
The halo saturates at full opacity, so 0-1 is the useful range for fading a glow in and out; values above 1 make the core denser and hotter before saturating.
Returns number
Parameters
value: number
Returns void
publicstrength
Blur radius multiplier in texels of the (downsampled) glow resolution
Returns number
Parameters
value: number
Returns void
Methods
publicdispose
Returns void
publicprocess
Parameters
source: ShaderPassSource
destination: ShaderPassDestination
optionaloptions: ShaderPipelineProcessOptions
Returns void
Outer glow wrapped in a convenient object with live-tunable settings, the ergonomic counterpart to createGlowPasses.
const glow = new ex.GlowEffect({ graphicsContext, color: ex.Color.Cyan, strength: 3 }); actor.graphics.material = new ex.Material({ graphicsContext, passes: glow, padding: 16 }); glow.intensity = 2; // animate any time, applies next frame glow.color = ex.Color.Magenta;