SkyAtmosphereComponent.cpp 968 B

12345678910111213141516171819202122232425262728293031323334
  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. #include <SkyAtmosphere/SkyAtmosphereComponent.h>
  9. namespace AZ::Render
  10. {
  11. SkyAtmosphereComponent::SkyAtmosphereComponent(const SkyAtmosphereComponentConfig& config)
  12. : BaseClass(config)
  13. {
  14. }
  15. void SkyAtmosphereComponent::Reflect(AZ::ReflectContext* context)
  16. {
  17. BaseClass::Reflect(context);
  18. if (auto serializeContext = azrtti_cast<AZ::SerializeContext*>(context))
  19. {
  20. serializeContext->Class<SkyAtmosphereComponent, BaseClass>();
  21. }
  22. if (auto* behaviorContext = azrtti_cast<BehaviorContext*>(context))
  23. {
  24. behaviorContext->Class<SkyAtmosphereComponent>()
  25. ->RequestBus("SkyAtmosphereRequestBus");
  26. }
  27. }
  28. } // namespace AZ::Render