// Copyright Contributors to the Open Shading Language project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage

shader
test_v_float_mul_v_matrix_masked (output color Cout = 0)
{
    matrix m1 = matrix(u,0,0,0,
              0,v,0,0,
              0,0,1,0,
              0,0,0,1);
              
    float numerator = 1 - u;              
    matrix rm = m1;              
    if (int(P[0]*64)%2==0) {
        rm = numerator*m1;
    }
    Cout = color(rm[0][0],rm[1][1],rm[2][2]);
}
