SkinRule.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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/Memory/Memory.h>
  10. #include <SceneAPI/SceneCore/DataTypes/Rules/ISkinRule.h>
  11. namespace AZ
  12. {
  13. class ReflectContext;
  14. namespace SceneAPI
  15. {
  16. namespace SceneData
  17. {
  18. class SkinRule
  19. : public DataTypes::ISkinRule
  20. {
  21. public:
  22. AZ_RTTI(SkinRule, "{B26E7FC9-86A1-4711-8415-8BE4861C08BA}", ISkinRule);
  23. AZ_CLASS_ALLOCATOR_DECL
  24. SkinRule();
  25. ~SkinRule() override = default;
  26. AZ::u32 GetMaxWeightsPerVertex() const override;
  27. float GetWeightThreshold() const override;
  28. static void Reflect(AZ::ReflectContext* context);
  29. protected:
  30. AZ::u32 m_maxWeightsPerVertex;
  31. float m_weightThreshold;
  32. };
  33. }
  34. }
  35. }