Skip to main content

VERTEX_COLORS

Constant VERTEX_COLORS 

Source
const VERTEX_COLORS: [[u8; 4]; 6];
Expand description

The colour of each patch vertex, in draw order.

Distinct per vertex so a shuffle reads as one: a colour rides on its vertex, so a draw that ignored the index buffer would tie each colour to the wrong corner as well.