Currently I’m doing this:
t *= Mathf.PI;
Mathf.Lerp(0.0,1.0,Mathf.Sin(t));
But I feel like this is wasteful. Is there a more efficient way to accomplish this?
Currently I’m doing this:
t *= Mathf.PI;
Mathf.Lerp(0.0,1.0,Mathf.Sin(t));
But I feel like this is wasteful. Is there a more efficient way to accomplish this?