HDRiSkyboxComponentConfig.cpp 1.1 KB

1234567891011121314151617181920212223242526272829303132
  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 <AtomLyIntegration/CommonFeatures/SkyBox/HDRiSkyboxComponentConfig.h>
  9. #include <AzCore/Asset/AssetSerializer.h>
  10. #include <AzCore/Serialization/SerializeContext.h>
  11. #include <AzCore/Math/Matrix4x4.h>
  12. namespace AZ
  13. {
  14. namespace Render
  15. {
  16. void HDRiSkyboxComponentConfig::Reflect(ReflectContext* context)
  17. {
  18. if (auto serializeContext = azrtti_cast<AZ::SerializeContext*>(context))
  19. {
  20. serializeContext->Class<HDRiSkyboxComponentConfig, ComponentConfig>()
  21. ->Version(8)
  22. ->Field("CubemapAssetId", &HDRiSkyboxComponentConfig::m_cubemapAssetId)
  23. ->Field("CubemapAsset", &HDRiSkyboxComponentConfig::m_cubemapAsset)
  24. ->Field("Exposure", &HDRiSkyboxComponentConfig::m_exposure)
  25. ;
  26. }
  27. }
  28. }
  29. }