Skip to content

Commit

Permalink
Fix for skinning blend matrix being multiplied in wrong order
Browse files Browse the repository at this point in the history
Affects the single weight animations in places like Garden.
  • Loading branch information
colincornaby committed Jun 4, 2024
1 parent f85fd87 commit aa0d1c2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ vertex ColorInOut pipelineVertexShader(Vertex in [[stage_in]],

float4 position = float4(in.position, 1.f) * uniforms.localToWorldMatrix;
if (temp_hasOnlyWeight1) {
const float4 position2 = blendMatrix1 * float4(in.position, 1.f);
const float4 position2 = float4(in.position, 1.f) * blendMatrix1;
position = (in.weight1 * position) + ((1.f - in.weight1) * position2);
}

Expand Down

0 comments on commit aa0d1c2

Please sign in to comment.