/* * Copyright (c) Contributors to the Open 3D Engine Project. * For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #pragma once #include #include namespace AZ::Render { // RenderActorSettings is a subset of RenderOptions. The goal is eventually move those actor render related settings out of render options since // it will be shared between main editor and animation editor. class RenderActorSettings { public: AZ_RTTI(RenderActorSettings, "{240BDFE2-D7F5-4927-A8CA-D2945E41AFFD}"); AZ_CLASS_ALLOCATOR(RenderActorSettings, AZ::SystemAllocator, 0) virtual ~RenderActorSettings() = default; float m_vertexNormalsScale = 1.0f; float m_faceNormalsScale = 1.0f; float m_tangentsScale = 1.0f; //! Use the vertex normals to scale the wireframe a bit to avoid Z-fighting when rendering. //! Scale the normal by the m_wireframeScale to push the wireframe a bit above the solide mesh rendering. //! Additionally the character bounds will be taken into account, so this is a relative-to the character size value. float m_wireframeScale = 0.1f; float m_nodeOrientationScale = 1.0f; bool m_enabledNodeBasedAabb = true; bool m_enabledMeshBasedAabb = true; bool m_enabledStaticBasedAabb = true; AZ::Color m_hitDetectionColliderColor{0.44f, 0.44f, 0.44f, 1.0f}; AZ::Color m_selectedHitDetectionColliderColor{ 0.3f, 0.56f, 0.88f, 1.0f }; AZ::Color m_ragdollColliderColor{ 0.44f, 0.44f, 0.44f, 1.0f }; AZ::Color m_selectedRagdollColliderColor{ 0.96f, 0.65f, 0.14f, 1.0f }; AZ::Color m_violatedJointLimitColor{ 1.0f, 0.0f, 0.0f, 1.0f }; AZ::Color m_clothColliderColor{ 0.44f, 0.44f, 0.44f, 1.0f }; AZ::Color m_selectedClothColliderColor{ 0.6f, 0.46f, 1.0f, 1.0f }; AZ::Color m_simulatedObjectColliderColor{ 0.44f, 0.44f, 0.44f, 1.0f }; AZ::Color m_selectedSimulatedObjectColliderColor{ 1.0, 0.34f, 0.87f, 1.0f }; AZ::Color m_vertexNormalsColor{ 0.0f, 1.0f, 0.0f, 1.0f }; AZ::Color m_faceNormalsColor{ 0.5f, 0.5f, 1.0f, 1.0f }; AZ::Color m_tangentsColor{ 1.0f, 0.0f, 0.0f, 1.0f }; AZ::Color m_mirroredBitangentsColor{ 1.0f, 1.0f, 0.0f, 1.0f }; AZ::Color m_bitangentsColor{ 1.0f, 1.0f, 1.0f, 1.0f }; AZ::Color m_wireframeColor{ 0.0f, 0.0f, 0.0f, 1.0f }; AZ::Color m_lineSkeletonColor{ 0.33333f, 1.0f, 0.0f, 1.0f }; AZ::Color m_skeletonColor{ 0.19f, 0.58f, 0.19f, 1.0f }; AZ::Color m_jointNameColor{ 1.0f, 1.0f, 1.0f, 1.0f }; AZ::Color m_nodeAABBColor{ 1.0f, 0.0f, 0.0f, 1.0f }; AZ::Color m_meshAABBColor{ 0.0f, 0.0f, 0.7f, 1.0f }; AZ::Color m_staticAABBColor{ 0.0f, 0.7f, 0.7f, 1.0f }; }; } // namespace AZ::Render