Handle Quadratic and Linear attenuation independently (Fixes #1456)