1 #version 120 2 /* PASS */ 3 4 uniform mat2x3 a; 5 uniform mat3x2 b; 6 uniform mat3x3 c; 7 uniform mat3x3 d; 8 9 void main() 10 { 11 mat3x3 x; 12 13 /* Multiplying a 2 column, 3 row matrix with a 3 column, 2 row matrix 14 * results in a 3 column, 3 row matrix. 15 */ 16 x = (a * b) + c / d; 17 18 gl_Position = gl_Vertex; 19 } 20