/* osgEarth
 * Copyright 2025 Pelican Mapping
 * MIT License
 */
#pragma once

#include "BumpMapOptions"
#include "BumpMapTerrainEffect"
#include <osgEarth/VisibleLayer>

namespace osgEarth
{
    class TerrainEngine;

    /**
        * Layer that installs a bumpmapping terrain effect.
        */
    class BumpMapLayer : public VisibleLayer
    {
    public:
        META_Layer(osgEarth, BumpMapLayer, BumpMapOptions, VisibleLayer, bumpmap);

        void prepareForRendering(TerrainEngine* engine) override;

        osg::ref_ptr<BumpMapTerrainEffect> _effect;
    };
}
