Use more striaghtforward math in the grid overlay renderer.