Skip to content

Commit

Permalink
MyMesh: rotate the tangent and binormal vertex buffers
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Nov 23, 2023
1 parent 7a874cf commit ea2ecbd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion HeartLibrary/src/main/java/jme3utilities/MyMesh.java
Original file line number Diff line number Diff line change
Expand Up @@ -1050,7 +1050,10 @@ public static void rotate(Mesh mesh, Quaternion rotation) {
rotateBuffer(mesh, VertexBuffer.Type.BindPosePosition, rotation);
rotateBuffer(mesh, VertexBuffer.Type.Normal, rotation);
rotateBuffer(mesh, VertexBuffer.Type.BindPoseNormal, rotation);
// TODO binormals?
rotateTangentBuffer(mesh, VertexBuffer.Type.Tangent, rotation);
rotateTangentBuffer(mesh, VertexBuffer.Type.BindPoseTangent, rotation);
rotateBuffer(mesh, VertexBuffer.Type.Binormal, rotation);

mesh.updateBound();
}

Expand Down

0 comments on commit ea2ecbd

Please sign in to comment.