- /* Velocity is between 1.0 and accel, scale this to 0.0 - 1.0 */
- velocity = (velocity - 1.0) / (accel - 1.0);
- smooth_accel_coefficient = calc_penumbral_gradient(velocity);
+ /* factor is between 1.0 and accel, scale this to 0.0 - 1.0 */
+ factor = (factor - 1.0) / (accel - 1.0);
+ smooth_accel_coefficient = calc_penumbral_gradient(factor);