was doing a linear interpolation between points on either side instead of interpolating along the edges.