Finally got depth_test to work. Had to change the near plane to not be 0 and then it's calculations started actually working,