Rename Camera3D near and far getters and setters
Renames: - get_znear() -> get_near() - set_znear() -> set_near() - get_zfar() -> get_far() - set_zfar() -> set_far()
This commit is contained in:
parent
e9d12f9e4e
commit
ecf8ae5bcf
7 changed files with 35 additions and 35 deletions
|
|
@ -633,7 +633,7 @@ bool EditorNode3DGizmo::intersect_ray(Camera3D *p_camera, const Point2 &p_point,
|
|||
tcp = a;
|
||||
}
|
||||
|
||||
if (camp.distance_to(tcp) < p_camera->get_znear()) {
|
||||
if (camp.distance_to(tcp) < p_camera->get_near()) {
|
||||
continue;
|
||||
}
|
||||
cp = tcp;
|
||||
|
|
@ -1357,7 +1357,7 @@ void Camera3DGizmoPlugin::redraw(EditorNode3DGizmo *p_gizmo) {
|
|||
case Camera3D::PROJECTION_FRUSTUM: {
|
||||
float hsize = camera->get_size() / 2.0;
|
||||
|
||||
Vector3 side = Vector3(hsize, 0, -camera->get_znear()).normalized();
|
||||
Vector3 side = Vector3(hsize, 0, -camera->get_near()).normalized();
|
||||
Vector3 nside = side;
|
||||
nside.x = -nside.x;
|
||||
Vector3 up = Vector3(0, side.x, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue