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

color init()
{
    if (P[0] > 0.75) {
        exit();
    }
    return color(0,1,0);
}

color init2()
{
    return color(1,0,0);
}

shader exit_in_varying_then_of_initfunc(
    output color c = init2(),
    color in = init())
{
    c += in;
}

