Rename center method to get_center in Plane.

This commit is contained in:
Raul Santos 2023-01-15 16:51:43 +01:00
parent 9711abe787
commit 7560340ef6
No known key found for this signature in database
GPG key ID: B532473AE3A803E4
6 changed files with 12 additions and 12 deletions

View file

@ -84,7 +84,7 @@ void RendererSceneRender::CameraData::set_multiview_camera(uint32_t p_view_count
Transform3D main_transform_inv = main_transform.inverse();
// 5. figure out far plane, this could use some improvement, we may have our far plane too close like this, not sure if this matters
Vector3 far_center = (planes[0][Projection::PLANE_FAR].center() + planes[1][Projection::PLANE_FAR].center()) * 0.5;
Vector3 far_center = (planes[0][Projection::PLANE_FAR].get_center() + planes[1][Projection::PLANE_FAR].get_center()) * 0.5;
Plane far(-z, far_center);
/////////////////////////////////////////////////////////////////////////////