Clean up Basis from Euler code
This commit is contained in:
parent
e73ff0e961
commit
7f9a8c99c9
10 changed files with 15 additions and 18 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue