using System; using UnityEngine; [Serializable] public class IndentTextureSettings { public Texture2D IndentTexture; [Tooltip("Whether to scan in the indent texture and set indents.")] public bool IndentTextureEnabled; [Tooltip("ReScans the Indent texture. This is needed for changes in image, GrayScaleCuttoff and Resolution to take effect.")] public bool ReScan; [Tooltip("Recalculates the mesh bounds each simulation step. May need if using High indent depth to prevent the mesh from disappearing at certain angles.")] public bool RecalculateBounds; [Tooltip("The grayscale value of a pixel necessary for it to count as an indent.")] [Range(0f, 1f)] public float GrayScaleCuttoff = 0.5f; [Tooltip("These settings CAN be changed in real time..")] public DepthSettings DepthSettings; [Tooltip("These settings CAN be changed in real time..")] public Appearance Appearance; [Tooltip("Using smoothing algorithm when indenting the mesh can have a High performance cost.")] public bool SmoothingEnabled; }