UnityEditor.SplatPainter.ApplyBrush C# (CSharp) Method

ApplyBrush() private method

private ApplyBrush ( float height, float brushStrength ) : float
height float
brushStrength float
return float
        private float ApplyBrush(float height, float brushStrength)
        {
            if (this.target > height)
            {
                height += brushStrength;
                height = Mathf.Min(height, this.target);
                return height;
            }
            height -= brushStrength;
            height = Mathf.Max(height, this.target);
            return height;
        }