Skip to content

cf_draw3d_push_outline

Category: draw3d
GitHub: cute_draw3d.h


Draws an outline around subsequent 3d strokes.

void cf_draw3d_push_outline(CF_Color color, float width);
Parameters Description
color The outline color.
width Outline width in world units. Zero (the default) disables it.

Remarks

A band hugging the stroke's edge from outside, drawn under the stroke itself. This differs from the 2d cf_draw_push_outline, which runs inside a shape's edge: 3d strokes are lines whose thickness is not an extent to keep, and an inside band would cross a neighboring segment's core at every polyline joint. Evaluated straight out of the same signed distance the stroke already evaluates -- no extra geometry. Ideal for making a selected wireframe or gizmo read against a busy scene. Applies to strokes (lines, polylines, circles, arcs, wire boxes); solids ignore it. Unlike the 2d effect stack these ride uniforms rather than instance lanes, so strokes sharing effects still coalesce into one draw while changing effects splits the batch.

cf_draw3d_pop_outline
cf_draw3d_push_glow
cf_draw_push_outline