• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#version 120
2
3attribute vec3 v3;
4
5uniform mat3x2 m32;
6
7const mat2x4 m24 = mat2x4(1.0, 2.0,
8                          3.0, 4.0,
9                          3.0, 4.0,
10                          3.0, 4.0, 5.0);          // ERROR, too many arguments
11
12void main()
13{
14    mat2x3 m23;
15    vec3 a, b;
16
17    a = v3 * m23;      // ERROR, type mismatch
18    b = m32 * v3;      // ERROR, type mismatch
19    m23.xy;            // ERROR, can't use .
20
21    gl_Position = vec4(m23 * m32 * v3, m24[2][4]);  // ERROR, 2 and 4 are out of range
22    m23 *= m23;        // ERROR, right side needs to be square
23    m23 *= m32;        // ERROR, left columns must match right rows
24}
25