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


shader
test_color_v_float (output color Cout = 0)
{
    // Quantize val to avoid disagreements between scalar & SIMD as it approaches 0
    float val = 1.0/(float(64-int(64*u))/64);
    float val2 = v;
     
    color c1 = color(val);
    if (int(P[0]*32)%2==0) {
        color c2 = color(val2);
        c1 = c2;
    }
    
    Cout = c1;
}
