TangentPreExportComponent.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 <SceneAPI/SceneCore/Components/GenerationComponent.h>
  10. #include <SceneAPI/SceneCore/Containers/Scene.h>
  11. #include <AzCore/RTTI/RTTI.h>
  12. namespace AZ::SceneAPI::Events { class GenerateAdditionEventContext; }
  13. namespace AZ::SceneGenerationComponents
  14. {
  15. class TangentPreExportComponent
  16. : public AZ::SceneAPI::SceneCore::GenerationComponent
  17. {
  18. public:
  19. AZ_COMPONENT(TangentPreExportComponent, "{BFFE114A-2FC6-42F1-92C4-61329CC54A2B}", AZ::SceneAPI::SceneCore::GenerationComponent)
  20. TangentPreExportComponent();
  21. static void Reflect(AZ::ReflectContext* context);
  22. // bumps Tangent export to later on in the generation phase, so that it can generate tangents after other rules have
  23. // generated things like normals and UVs.
  24. uint8_t GetPriority() const override;
  25. AZ::SceneAPI::Events::ProcessingResult Register(AZ::SceneAPI::Events::GenerateAdditionEventContext& context);
  26. };
  27. } // namespace AZ::SceneGenerationComponents