fix coherency on the Z axis

The arguments to lerp were ordered incorrectly.