diff options
author | John Wigg <31868812+CaptainProton42@users.noreply.github.com> | 2021-05-16 23:01:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-16 23:01:53 +0200 |
commit | c8e402324e6942a09fd669f67a82567007521262 (patch) | |
tree | fcd6ad9ce1d34c50bbbbe24aa6ad079992858e7e | |
parent | d4fc125fbc7d2a15ebb7ff2b472a64d9a71de023 (diff) |
Fix normals of PrismMesh
-rw-r--r-- | scene/resources/primitive_meshes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/primitive_meshes.cpp b/scene/resources/primitive_meshes.cpp index c3d84aeda2..64b43f82c6 100644 --- a/scene/resources/primitive_meshes.cpp +++ b/scene/resources/primitive_meshes.cpp @@ -1133,7 +1133,7 @@ void PrismMesh::_create_mesh_array(Array &p_arr) const { Vector3 normal_left, normal_right; normal_left = Vector3(-size.y, size.x * left_to_right, 0.0); - normal_right = Vector3(size.y, size.x * left_to_right, 0.0); + normal_right = Vector3(size.y, size.x * (1.0 - left_to_right), 0.0); normal_left.normalize(); normal_right.normalize(); |