5.5. Matrix Functions
Matrix functions can be used within either vertex shaders or fragment shaders (see Table 5.5).
These functions produce the component-wise multiplication of two matrices. For instance, the result of calling matrixCompMult with two 3D matrices x and y looks like this:
mat3 x, y, newmat; . . . newmat = matrixCompMult(x, y);
This is not usually what you want if you are using matrices to represent transformation steps. In this case, you would use the multiply operator (*) to perform the linear-algebraic matrix multiplication
mat3 x, y, newmat; . . . newmat = x * y;