1 2out vec4 sk_FragColor; 3uniform vec4 colorGreen; 4uniform vec4 colorRed; 5uniform mat2 testMatrix2x2; 6uniform mat3 testMatrix3x3; 7vec4 main() { 8 mat2 h22 = mat2(0.0, 5.0, 10.0, 15.0); 9 mat2 f22 = matrixCompMult(testMatrix2x2, mat2(1.0)); 10 mat3 h33 = matrixCompMult(testMatrix3x3, mat3(2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0)); 11 return (h22 == mat2(0.0, 5.0, 10.0, 15.0) && f22 == mat2(1.0, 0.0, 0.0, 4.0)) && h33 == mat3(2.0, 4.0, 6.0, 8.0, 10.0, 12.0, 14.0, 16.0, 18.0) ? colorGreen : colorRed; 12} 13