GPU-accelerated rendering ยป Shader objects

Prev:<vertex-array> ( vertex-buffer program-instance -- vertex-array )


VERTEX-FORMAT: format-name { "attribute"/f component-type dimension normalize? } { "attribute"/f component-type dimension normalize? } ... { "attribute"/f component-type dimension normalize? } ;

Word description
Defines a new binary vertex-format for structuring vertex data stored in buffer s. Each attribute name either corresponds to an input parameter of a vertex shader, or is f to include padding in the vertex format. The component-type determines the format of the components, and the dimension determines the number of components. If the component-type is an integer type and normalize? is true, the component values will be scaled to the range 0.0 to 1.0 when fed to the vertex shader; otherwise, they will be cast to floats retaining their integral values.