DeferredFogComponent.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 <AzCore/Component/Component.h>
  10. #include <AzFramework/Components/ComponentAdapter.h>
  11. #include <AtomLyIntegration/CommonFeatures/ScreenSpace/DeferredFogComponentConfig.h>
  12. #include <ScreenSpace/DeferredFogComponentController.h>
  13. namespace AZ
  14. {
  15. namespace Render
  16. {
  17. namespace DeferredFog
  18. {
  19. inline constexpr AZ::TypeId DeferredFogComponentTypeId{ "{9492DC07-B3F7-4DF2-88FA-E4EEF1DD98E3}" };
  20. }
  21. class DeferredFogComponent final
  22. : public AzFramework::Components::ComponentAdapter<DeferredFogComponentController, DeferredFogComponentConfig>
  23. {
  24. public:
  25. using BaseClass = AzFramework::Components::ComponentAdapter<DeferredFogComponentController, DeferredFogComponentConfig>;
  26. AZ_COMPONENT(AZ::Render::DeferredFogComponent, DeferredFog::DeferredFogComponentTypeId, BaseClass);
  27. DeferredFogComponent() = default;
  28. DeferredFogComponent(const DeferredFogComponentConfig& config);
  29. static void Reflect(AZ::ReflectContext* context);
  30. };
  31. } // namespace Render
  32. } // namespace AZ