float my_matrix; // lite-C var my_matrix; // C-Script
The elements of the matrix can be accessed through the array indices .., as usual. However, unlike normal variable arrays, a transformation matrix contains values in a special format, the IEEE 32 bit floating point format. Thus, under C-Script matrix elements can not be written to or read from like normal variables; they have to be converted to and from the float format, like this:
my_matrix = floatv(my_value); my_value = fixed(my_matrix);
Under lite-C, var/float conversion is handled automatically and the above conversion functions are not required.
Handling matrix operations requires some mathematical knowledge. They are not intended for beginners to games programming, and are not necessary unless for advanced shader programming.
► latest version online