/// <summary> /// Make the input waveform. /// </summary> /// <param name="waveform">Waveform texture.</param> /// <param name="worldPos">World position.</param> /// <param name="scale">waveform scale.(The ratio of the size in the texture)</param> /// <param name="strength">Strength of input value.</param> public void InputNearestTriangleSurface(Texture2D waveform, Vector3 worldPos, float scale, float strength = 0.1f) { brush.BrushTexture = waveform; brush.Scale = scale; brush.HeightBlend = strength; inkCanvas.PaintNearestTriangleSurface(brush, worldPos); }