cf_draw_push_tri_attributes¶
Category: draw
GitHub: cute_draw.h
Pushes per-vertex attributes for triangle drawing.
| Parameters | Description |
|---|---|
a0 |
Attributes for the first vertex (p0). |
a1 |
Attributes for the second vertex (p1). |
a2 |
Attributes for the third vertex (p2). |
Remarks¶
When active, triangles drawn with cf_draw_tri_fill will interpolate attributes across the triangle surface between a0, a1, and a2 at vertices p0, p1, and p2. This is useful for custom shaders that need per-vertex data (UVs, blend weights, etc.). This only works when chubbiness is 0 and antialiasing is disabled.
Related Pages¶
cf_draw_tri_fill
cf_draw_pop_tri_attributes
cf_draw_peek_tri_attributes