Added function to extract frustum from perpective camera