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

shader return_in_uniform_then_in_varying_then(output float c = 0.0)
{
    c = 1.0;
    
    if (P[0] > 1.0/3.0) {
        if (raytype("camera")) {
            return;
        }
        c= 0.25;
    }
    
    c= 0.5;
    
}
