Old frustum culling function