Skip to content

cf_draw_push_glow

Category: draw
GitHub: cute_draw.h


Draws a glow around subsequent shapes.

void cf_draw_push_glow(CF_Color color, float radius);
Parameters Description
color The glow color. Its alpha scales the effect's strength.
radius How far the glow reaches past the shape, in world units. Zero (the default)
disables it.

Remarks

A smooth falloff radiating from the shape's edge, evaluated from the shape's own signed distance -- exact at any zoom, with no blur pass, no render target, and no blurry-sprite fakery. Drawn under both the outline and the shape. Coverage and tile binning grow to fit the radius automatically. Works on every SDF shape; sprites and text ignore it. For an additive neon look, pair it with cf_draw_push_blend.

cf_draw_pop_glow
cf_draw_push_outline
cf_draw_push_blend