diff options
author | mennomax <mennomax@outlook.de> | 2021-04-08 16:26:14 +0200 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2021-10-15 20:49:42 -0500 |
commit | b4eeeb315a74682d299c7ec1555ce06a9dc2641a (patch) | |
tree | 4efb789ff3d5673c38dc439eb91127870183f392 /servers/rendering/renderer_rd/forward_clustered | |
parent | 96410f55b24e47af045e3ad31545331ce124d999 (diff) |
Swap args of Plane(point, normal) constructor
Now (normal, point)
Diffstat (limited to 'servers/rendering/renderer_rd/forward_clustered')
-rw-r--r-- | servers/rendering/renderer_rd/forward_clustered/render_forward_clustered.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/rendering/renderer_rd/forward_clustered/render_forward_clustered.cpp b/servers/rendering/renderer_rd/forward_clustered/render_forward_clustered.cpp index 85ebf076cc..6b84ab908d 100644 --- a/servers/rendering/renderer_rd/forward_clustered/render_forward_clustered.cpp +++ b/servers/rendering/renderer_rd/forward_clustered/render_forward_clustered.cpp @@ -904,7 +904,7 @@ void RenderForwardClustered::_fill_render_list(RenderListType p_render_list, con } uint32_t lightmap_captures_used = 0; - Plane near_plane(p_render_data->cam_transform.origin, -p_render_data->cam_transform.basis.get_axis(Vector3::AXIS_Z)); + Plane near_plane = Plane(-p_render_data->cam_transform.basis.get_axis(Vector3::AXIS_Z), p_render_data->cam_transform.origin); near_plane.d += p_render_data->cam_projection.get_z_near(); float z_max = p_render_data->cam_projection.get_z_far() - p_render_data->cam_projection.get_z_near(); |