Example #1
0
 private void PrecomputeWindVectors()
 {
     windSpeed  = GetWindSpeed();
     windSpeed1 = FastMath.Rotate(windSpeed, normalMapAnimation1.Deviation * Mathf.Deg2Rad) * (normalMapAnimation1.Speed * 0.001365f);
     windSpeed2 = FastMath.Rotate(windSpeed, normalMapAnimation2.Deviation * Mathf.Deg2Rad) * (normalMapAnimation2.Speed * 0.00084f);
 }