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

shader
test_max_v_vec_u_vec (output color Cout = 0)
{
    float u_float = raytype("camera");    
    float v_float = u;
       
    color v_color = color(0.3*v_float,0.5*v_float, 0.75*v_float);
    color u_color = color(0.1*u_float,0.2*u_float, 0.3*u_float);
    
    Cout = max(v_color, u_color);
        
    if (int(P[0]*64)%2==0) {
        Cout = max(v_color, (1.5*u_color));
    }    
}
