Skip to content

Commit 0b2cfdf

Browse files
committed
Fix flip of Y component of normal when computing tangents.
1 parent 77a3c57 commit 0b2cfdf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Source/CesiumRuntime/Private/CesiumGltfComponent.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,7 @@ static void mikkSetTSpaceBasic(
643643

644644
TangentX.Y = -TangentX.Y;
645645
TangentY.Y = -TangentY.Y;
646+
TangentZ.Y = -TangentZ.Y;
646647

647648
vertexBuffer.SetVertexTangents(vertexIndex, TangentX, TangentY, TangentZ);
648649
}

0 commit comments

Comments
 (0)