Skip to content

Commit

Permalink
Merge pull request #48775 from CaptainProton42/fix-prism-mesh-normals
Browse files Browse the repository at this point in the history
Fix normals of PrismMesh
  • Loading branch information
akien-mga authored May 17, 2021
2 parents 75622da + c8e4023 commit 2be9b5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/resources/primitive_meshes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 2be9b5d

Please sign in to comment.