ImageBasedLightComponentConfig.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/ImageBasedLights/ImageBasedLightComponentConfig.h>
  9. #include <AzCore/Asset/AssetSerializer.h>
  10. #include <AzCore/Serialization/SerializeContext.h>
  11. namespace AZ
  12. {
  13. namespace Render
  14. {
  15. void ImageBasedLightComponentConfig::Reflect(ReflectContext* context)
  16. {
  17. if (AZ::SerializeContext* serializeContext = azrtti_cast<SerializeContext*>(context))
  18. {
  19. serializeContext->Class<ImageBasedLightComponentConfig, ComponentConfig>()
  20. ->Version(1)
  21. ->Field("diffuseImageAsset", &ImageBasedLightComponentConfig::m_diffuseImageAsset)
  22. ->Field("specularImageAsset", &ImageBasedLightComponentConfig::m_specularImageAsset)
  23. ->Field("exposure", &ImageBasedLightComponentConfig::m_exposure)
  24. ;
  25. }
  26. }
  27. } // namespace Render
  28. } // namespace AZ