Skip to content

cf_draw3d_scale

Category: draw3d
GitHub: cute_draw3d.h


Scales the current 3d coordinate system.

void cf_draw3d_scale(CF_V3 s);
Parameters Description
s The per-axis scale. cf_v3(2.0f) splats a uniform scale.

Remarks

Non-uniform scale is handled correctly by baked draw lists (exact per-instance normal matrices); the immediate path derives normals from the model rows, which skews under non-uniform scale. See the shader contract at the top of this header.

cf_draw3d_push
cf_draw3d_pop
cf_draw3d_translate
cf_draw3d_rotate
cf_draw3d_transform