WhiteBoxViewportConstants.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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/Console/IConsole.h>
  10. namespace WhiteBox
  11. {
  12. AZ_CVAR_EXTERNED(float, cl_whiteBoxVertexManipulatorSize);
  13. AZ_CVAR_EXTERNED(float, cl_whiteBoxMouseClickDeltaThreshold);
  14. AZ_CVAR_EXTERNED(float, cl_whiteBoxModifierMidpointEpsilon);
  15. AZ_CVAR_EXTERNED(float, cl_whiteBoxEdgeVisualWidth);
  16. AZ_CVAR_EXTERNED(float, cl_whiteBoxEdgeSelectionWidth);
  17. AZ_CVAR_EXTERNED(float, cl_whiteBoxSelectedEdgeVisualWidth);
  18. AZ_CVAR_EXTERNED(AZ::Color, ed_whiteBoxVertexHiddenColor);
  19. AZ_CVAR_EXTERNED(AZ::Color, ed_whiteBoxVertexRestoredColor);
  20. AZ_CVAR_EXTERNED(AZ::Color, ed_whiteBoxVertexUnselected);
  21. AZ_CVAR_EXTERNED(AZ::Color, ed_whiteBoxEdgeUnselected);
  22. AZ_CVAR_EXTERNED(AZ::Color, ed_whiteBoxEdgeDefault);
  23. AZ_CVAR_EXTERNED(AZ::Color, ed_whiteBoxVertexHover);
  24. AZ_CVAR_EXTERNED(AZ::Color, ed_whiteBoxPolygonHover);
  25. AZ_CVAR_EXTERNED(AZ::Color, ed_whiteBoxOutlineHover);
  26. AZ_CVAR_EXTERNED(AZ::Color, ed_whiteBoxPolygonSelection);
  27. AZ_CVAR_EXTERNED(AZ::Color, ed_whiteBoxVertexSelection);
  28. AZ_CVAR_EXTERNED(AZ::Color, ed_whiteBoxOutlineSelection);
  29. AZ_CVAR_EXTERNED(float, ed_whiteBoxPolygonViewOverlapOffset);
  30. //! Smallest area squared for a triangle to still be considered valid.
  31. inline const float DegenerateTriangleAreaSquareEpsilon{std::numeric_limits<float>::epsilon()};
  32. //! Default tint colour for WhiteBox render material.
  33. inline const AZ::Vector3 DefaultMaterialTint = AZ::Vector3::CreateOne();
  34. //! Default texture type for WhiteBox render material.
  35. inline const bool DefaultMaterialUseTexture = true;
  36. //! Default game mode visibility for WhiteBox render material.
  37. inline const bool DefaultVisibility = true;
  38. } // namespace WhiteBox