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

shader test_cross_v_vector_v_vector (
    output color dcross = 0,
    output color mdcross = 0)
{
    vector a = vector(u+v, u-v, -u+v);
    vector b = vector(u-v, u+v, -u-v);

    color um_dcross = cross(a,b);

    if (P[0]>0.5) {
        mdcross = cross(b,b);
    }

    dcross = um_dcross;
}
