vertexAttrib4fv function

This command allows an application to pass generic vertex attributes in numbered locations.

Parameters

indx

Specifies the index of the generic vertex attribute to be modified.

values

The values parameter receives float data used for the generic vertex attribute. This data must be one of two possible types - either a pointer to an array of floats of type Float32Array or a sequence of values that will be cast to float values (which include JavaScript array literals, such as [true, 0.54, "9.0", 4]).

Remarks

For details, see vertexAttrib commands.

Requirements

 

 

Show: