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


shader
test_color_3xu_float (output color Cout = 0)
{
    float  valr = 1.0/(2*raytype("camera"));
    float  valg = 1.0/(3*raytype("camera"));
    float  valb = 1.0/(4*raytype("camera"));
    float val2r = valr/2;
    float val2g = valg/2;
    float val2b = valb/2;

    color c1 = color(valr,valg,valb);
    if (int(P[0]*32)%2==0) {
        color c2 = color(val2r,val2g,val2b);
        c1 = c2;
    }
    
    Cout = c1;
}
