Implement PerspectiveUsingFrustum function