Outer glow: the graphic's silhouette is tinted with the glow color, gaussian blurred at reduced
resolution, and the original graphic is composited back over the halo.
Designed for per-graphic use with a Material, where padding gives the halo room
outside the graphic's quad:
Outer glow: the graphic's silhouette is tinted with the glow color, gaussian blurred at reduced resolution, and the original graphic is composited back over the halo.
Designed for per-graphic use with a Material, where
paddinggives the halo room outside the graphic's quad:actor.graphics.material = new ex.Material({ graphicsContext, passes: ex.createGlowPasses({ graphicsContext, color: ex.Color.Cyan, strength: 3 }), padding: 16 });