matrixError.vert 651 B

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