/*
 * Copyright (c) Contributors to the Open 3D Engine Project.
 * For complete copyright and license terms please see the LICENSE at the root of this distribution.
 *
 * SPDX-License-Identifier: Apache-2.0 OR MIT
 *
 */

#pragma once

#include <Atom/RPI.Public/FeatureProcessor.h>
#include <Atom/RPI.Public/Shader/ShaderResourceGroup.h>
#include <Atom/RPI.Reflect/Image/StreamingImageAsset.h>

namespace AZ
{
    namespace Render
    {
        //! This feature processor handles image based lights.
        class ImageBasedLightFeatureProcessorInterface
            : public RPI::FeatureProcessor
        {
        public:
            AZ_RTTI(AZ::Render::ImageBasedLightFeatureProcessorInterface, "{EE7441A3-B406-4717-8F35-E3DAC60E3BDB}", RPI::FeatureProcessor);

            //! Sets the global specular IBL image for this scene
            virtual void SetSpecularImage(const Data::Asset<RPI::StreamingImageAsset>& imageAsset) = 0;
            //! Sets the global diffuse IBL image for this scene
            virtual void SetDiffuseImage(const Data::Asset<RPI::StreamingImageAsset>& imageAsset) = 0;
            //! Sets the exposure value in stops for the global IBL. 0 = no change. Final intensity = intensity * 2^exposure.
            virtual void SetExposure(float exposure) = 0;
            //! Sets the orientation of the global IBL.
            virtual void SetOrientation(const Quaternion& orientation) = 0;
            //! Resets the images and exposure back to default (unset) values.
            virtual void Reset() = 0;
        };
    }
}
