summaryrefslogtreecommitdiff
path: root/servers
diff options
context:
space:
mode:
authorClay John <claynjohn@gmail.com>2022-10-27 09:44:21 -0700
committerGitHub <noreply@github.com>2022-10-27 09:44:21 -0700
commit682156e1f0b6fba8debba7c88a0a733e95baaac3 (patch)
treefe68cc8655c4a38a7244f3392149aa79fb254ae1 /servers
parent7904f70dc438a1b0a644b971c2089383ef776d2f (diff)
parent7f9a8c99c93693023a96eb08afd3d9a723663279 (diff)
Merge pull request #66383 from aaronfranke/basis-from-euler
Clean up Basis from Euler code
Diffstat (limited to 'servers')
-rw-r--r--servers/rendering/renderer_rd/renderer_canvas_render_rd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/rendering/renderer_rd/renderer_canvas_render_rd.cpp b/servers/rendering/renderer_rd/renderer_canvas_render_rd.cpp
index 5728444312..4cde7406bb 100644
--- a/servers/rendering/renderer_rd/renderer_canvas_render_rd.cpp
+++ b/servers/rendering/renderer_rd/renderer_canvas_render_rd.cpp
@@ -1620,7 +1620,7 @@ void RendererCanvasRenderRD::light_update_shadow(RID p_rid, int p_shadow_index,
projection.set_frustum(xmin, xmax, ymin, ymax, nearp, farp);
}
- Vector3 cam_target = Basis(Vector3(0, 0, Math_TAU * ((i + 3) / 4.0))).xform(Vector3(0, 1, 0));
+ Vector3 cam_target = Basis::from_euler(Vector3(0, 0, Math_TAU * ((i + 3) / 4.0))).xform(Vector3(0, 1, 0));
projection = projection * Projection(Transform3D().looking_at(cam_target, Vector3(0, 0, -1)).affine_inverse());
ShadowRenderPushConstant push_constant;