changed factorByDistance to linear fade