blob: a7b0d8cebce7b0893f624ef39f9cbe371581ab75 [file] [log] [blame]
uniform float3x3 testMatrix3x3;
uniform half4 colorGreen, colorRed;
half4 main(float2) {
const float3 expected1 = float3(-3, 6, -3);
const float3 expected2 = float3(6, -12, 6);
return (cross(testMatrix3x3[0], testMatrix3x3[1]) == expected1 &&
cross(testMatrix3x3[2], testMatrix3x3[0]) == expected2 &&
cross(float3(1, 2, 3), float3(4, 5, 6)) == expected1 &&
cross(float3(7, 8, 9), float3(1, 2, 3)) == expected2) ? colorGreen : colorRed;
}