mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Revert "Renamed plane's d to distance"
This reverts commit ec7b481170.
This was wrong, `d` is not a distance but the `d` constant in the
parametric equation `ax + by + cz = d` describing the plane.
This commit is contained in:
parent
6ab92464bc
commit
94721f5ab8
36 changed files with 126 additions and 126 deletions
|
|
@ -682,11 +682,11 @@ void Node3DEditorViewport::_select_region() {
|
|||
}
|
||||
|
||||
Plane near(cam_pos, -_get_camera_normal());
|
||||
near.distance -= get_znear();
|
||||
near.d -= get_znear();
|
||||
frustum.push_back(near);
|
||||
|
||||
Plane far = -near;
|
||||
far.distance += get_zfar();
|
||||
far.d += get_zfar();
|
||||
frustum.push_back(far);
|
||||
|
||||
Vector<ObjectID> instances = RenderingServer::get_singleton()->instances_cull_convex(frustum, get_tree()->get_root()->get_world_3d()->get_scenario());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue