added an analytically computed inverse to the perspective matrix