DiffuseGlobalIlluminationFeatureProcessor.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. #include <DiffuseProbeGrid/DiffuseGlobalIlluminationFeatureProcessorInterface.h>
  10. namespace AZ
  11. {
  12. namespace Render
  13. {
  14. //! This class provides general features and configuration for the diffuse global illumination environment,
  15. //! which consists of DiffuseProbeGrids and the diffuse Global IBL cubemap.
  16. class DiffuseGlobalIlluminationFeatureProcessor final
  17. : public DiffuseGlobalIlluminationFeatureProcessorInterface
  18. {
  19. public:
  20. AZ_CLASS_ALLOCATOR(DiffuseGlobalIlluminationFeatureProcessor, SystemAllocator)
  21. AZ_RTTI(AZ::Render::DiffuseGlobalIlluminationFeatureProcessor, "{14F7DF46-AA2C-49EF-8A2C-0A7CB7390BB7}", AZ::Render::DiffuseGlobalIlluminationFeatureProcessorInterface);
  22. static void Reflect(AZ::ReflectContext* context);
  23. DiffuseGlobalIlluminationFeatureProcessor() = default;
  24. virtual ~DiffuseGlobalIlluminationFeatureProcessor() = default;
  25. void Activate() override;
  26. void Deactivate() override;
  27. // DiffuseGlobalIlluminationFeatureProcessorInterface overrides
  28. void SetQualityLevel(DiffuseGlobalIlluminationQualityLevel qualityLevel) override;
  29. private:
  30. AZ_DISABLE_COPY_MOVE(DiffuseGlobalIlluminationFeatureProcessor);
  31. // RPI::SceneNotificationBus::Handler overrides
  32. void OnRenderPipelineChanged(AZ::RPI::RenderPipeline* pipeline, AZ::RPI::SceneNotification::RenderPipelineChangeType changeType) override;
  33. void UpdatePasses();
  34. DiffuseGlobalIlluminationQualityLevel m_qualityLevel = DiffuseGlobalIlluminationQualityLevel::Low;
  35. };
  36. } // namespace Render
  37. } // namespace AZ