3
0

WhiteBoxMaterial.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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 "Viewport/WhiteBoxViewportConstants.h"
  10. #include <AzCore/Math/Vector3.h>
  11. #include <AzCore/RTTI/TypeInfo.h>
  12. namespace AZ
  13. {
  14. class ReflectContext;
  15. }
  16. namespace WhiteBox
  17. {
  18. //! The properties of a WhiteBox rendering material.
  19. struct WhiteBoxMaterial
  20. {
  21. AZ_TYPE_INFO(WhiteBoxMaterial, "{234B98F5-0891-479A-8B5E-E18DD8F9E454}");
  22. static void Reflect(AZ::ReflectContext* context);
  23. //! Diffuse color tint for render material.
  24. AZ::Vector3 m_tint = DefaultMaterialTint;
  25. //! Flag for whether the textured material (true) or solid color material (false) will be used.
  26. bool m_useTexture = DefaultMaterialUseTexture;
  27. //! Flag for whether the material will be visible in game mode (true) or not (false).
  28. bool m_visible = DefaultVisibility;
  29. };
  30. } // namespace WhiteBox