StarsComponentConfig.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  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 <StarsAsset.h>
  11. #include <Stars/StarsFeatureProcessorInterface.h>
  12. namespace AZ::Render
  13. {
  14. inline constexpr AZ::TypeId StarsComponentTypeId{ "{A0DC17A5-9494-47EF-AD6D-BC563739A02B}" };
  15. inline constexpr AZ::TypeId EditorStarsComponentTypeId{ "{460B0A4E-6A6F-4AFF-9668-4B5AA2F33C09}" };
  16. class StarsComponentConfig final
  17. : public ComponentConfig
  18. {
  19. public:
  20. AZ_CLASS_ALLOCATOR(StarsComponentConfig, SystemAllocator)
  21. AZ_RTTI(AZ::Render::StarsComponentConfig, "{10E6A838-3A66-4518-BF53-FCA8325C4759}", AZ::ComponentConfig);
  22. static void Reflect(ReflectContext* context);
  23. float m_exposure = StarsDefaultExposure;
  24. float m_radiusFactor = StarsDefaultRadiusFactor;
  25. float m_twinkleRate = StarsDefaultTwinkleRate;
  26. AZ::Data::Asset<StarsAsset> m_starsAsset;
  27. };
  28. }