MaterialWrapper.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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/RTTI/RTTI.h>
  10. #include <AzCore/std/string/string.h>
  11. #include <AzCore/Math/Vector3.h>
  12. struct aiMaterial;
  13. namespace AZ
  14. {
  15. namespace SDKMaterial
  16. {
  17. class MaterialWrapper
  18. {
  19. public:
  20. AZ_RTTI(MaterialWrapper, "{3B83DEE4-FF59-4AB3-B4F1-14EEE22339F3}");
  21. enum class MaterialMapType
  22. {
  23. Diffuse,
  24. Specular,
  25. Bump,
  26. Normal,
  27. Metallic,
  28. Roughness,
  29. AmbientOcclusion,
  30. Emissive,
  31. BaseColor
  32. };
  33. virtual ~MaterialWrapper() = default;
  34. virtual AZStd::string GetName() const;
  35. virtual AZ::u64 GetUniqueId() const;
  36. virtual AZStd::string GetTextureFileName(MaterialMapType textureType) const;
  37. virtual AZ::Vector3 GetDiffuseColor() const;
  38. virtual AZ::Vector3 GetSpecularColor() const;
  39. virtual AZ::Vector3 GetEmissiveColor() const;
  40. virtual float GetOpacity() const;
  41. virtual float GetShininess() const;
  42. };
  43. } // namespace SDKMaterial
  44. } // namespace AZ