Skip to content

cf_draw3d_push_mesh_attributes

Category: draw3d
GitHub: cute_draw3d.h


Pushes a vec4 of data attached to each subsequent mesh submission.

void cf_draw3d_push_mesh_attributes(CF_V4 attributes);
Parameters Description
attributes The value delivered to the shader as in_mesh_attributes.

Remarks

Defaults to (0, 0, 0, 0). Unlike a uniform, differing mesh attributes do NOT split coalescing -- 500 trees with 500 different tints are still one instanced draw. This is the intended way to vary appearance across many copies of one mesh.

cf_draw3d_mesh
cf_draw3d_pop_mesh_attributes
cf_draw3d_peek_mesh_attributes