Skip to content

cf_draw3d_push_glow

Category: draw3d
GitHub: cute_draw3d.h


Draws a glow around subsequent 3d strokes.

void cf_draw3d_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 stroke, in world units. Zero (the default)
disables it.

Remarks

A smooth falloff radiating from the stroke's edge, evaluated analytically from its signed distance -- exact at any distance, no blur pass and no render target. The camera-facing ribbon grows automatically to fit the radius. Applies to strokes only; solids ignore it. Pair with an additive blend in the pushed render state for neon.

cf_draw3d_pop_glow
cf_draw3d_push_outline
cf_draw_push_glow