You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Swap args of Plane(point, normal) constructor
Now (normal, point)
This commit is contained in:
@@ -2952,7 +2952,7 @@ void RendererSceneCull::_render_scene(const RendererSceneRender::CameraData *p_c
|
||||
|
||||
Transform3D cam_xf = p_camera_data->main_transform;
|
||||
float zn = p_camera_data->main_projection.get_z_near();
|
||||
Plane p(cam_xf.origin + cam_xf.basis.get_axis(2) * -zn, -cam_xf.basis.get_axis(2)); //camera near plane
|
||||
Plane p(-cam_xf.basis.get_axis(2), cam_xf.origin + cam_xf.basis.get_axis(2) * -zn); //camera near plane
|
||||
|
||||
// near plane half width and height
|
||||
Vector2 vp_half_extents = p_camera_data->main_projection.get_viewport_half_extents();
|
||||
|
||||
Reference in New Issue
Block a user