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

shader
test (string filename = "mandrill.tx",
      string wrap = "periodic",
      output color Cblack = 0,
      output color Cperiodic = 0,
      output color Cclamp = 0,
      output color Cmirror = 0,
      output color Cdefault = 0)
{
    Cblack = (color) texture (filename, -0.1 + 2 * u, -0.2 + 2 * v,
                              "wrap", "black");
    Cperiodic = (color) texture (filename, -0.1 + 2 * u, -0.2 + 2 * v,
                                 "wrap", "periodic");
    Cclamp = (color) texture (filename, -0.1 + 2 * u, -0.2 + 2 * v,
                              "wrap", "clamp");
    Cmirror = (color) texture (filename, -0.1 + 2 * u, -0.2 + 2 * v,
                               "wrap", "mirror");
    Cdefault = (color) texture (filename, -0.1 + 2 * u, -0.2 + 2 * v,
                               "wrap", "default");
}
