shader
test_u_color_v_color_v_int (output color Cout = 0)
{
    color val = color(0.5*raytype("camera"), 0.75*raytype("camera"), 0.25*raytype("camera"));
    color val2 = color(P[1],P[2],P[0]);
    
    
    int vc = (P[1] > P[0]);
    int vc2 = int(P[0] + P[1]);
              
    color col = select(val, val2, vc);    
    color col2 = col;    
    
    if (int(P[0]*32)%2==0) {    
        col2 = select(val, val2, vc2);
    }

    Cout = 0.5*col + 0.5*col2;
}
