DirectionalLightComponent.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  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 <CoreLights/DirectionalLightComponentController.h>
  10. #include <AtomLyIntegration/CommonFeatures/CoreLights/CoreLightsConstants.h>
  11. #include <AtomLyIntegration/CommonFeatures/CoreLights/DirectionalLightComponentConfig.h>
  12. #include <AzFramework/Components/ComponentAdapter.h>
  13. namespace AZ
  14. {
  15. namespace Render
  16. {
  17. class DirectionalLightComponent final
  18. : public AzFramework::Components::ComponentAdapter<DirectionalLightComponentController, DirectionalLightComponentConfig>
  19. {
  20. public:
  21. using BaseClass = AzFramework::Components::ComponentAdapter<DirectionalLightComponentController, DirectionalLightComponentConfig>;
  22. AZ_COMPONENT(AZ::Render::DirectionalLightComponent, DirectionalLightComponentTypeId);
  23. DirectionalLightComponent() = default;
  24. DirectionalLightComponent(const DirectionalLightComponentConfig& config);
  25. virtual ~DirectionalLightComponent() override = default;
  26. static void Reflect(ReflectContext* context);
  27. };
  28. } // namespace Render
  29. } // namespace AZ