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

shader exit_in_varying_then(output color c = 0.5)
{
    if (P[0] > 0.5) {
        exit();
        c = color(0.0);
    }
    c = color(P[0],P[1],P[2]);
}
