Creates a new matrix attribute whose value remains constant across all the vertices of a primitive without needing to duplicate the value for each vertex.
matrix3x3
represent a square 3 by 3 matrix specified in column-major order (each triple of consecutive numbers represents a
column) which should have a corresponding declaration in GLSL code like:
[| attribute mat3 name; |]
If transpose
is true then all matrix components are rotated around the diagonal
of the matrix such that the first column becomes the first row and the second column becomes the second row etc.
context |
A Context |
name |
The name of the attribute (used to reference it from GLSL) |
matrix3x3 |
A pointer to a 3 by 3 matrix |
transpose |
Whether the matrix should be transposed on upload or not |
A newly allocated Attribute representing the given constant matrix. |