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

surface bumptest ()
{
    if (!backfacing())
    {
        float h = 5 * noise(0.25 * P);
        vector Nb = calculatenormal(P + N * h);
        color Cb = (color) normalize(Nb) / 2 + color(0.5, 0.5, 0.5);
        Ci = Cb * emission();
    }
}
