StarsComponentConfig.h 1.0 KB

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