We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2636f76 commit 8ce2fc7Copy full SHA for 8ce2fc7
Tools/ShaderIncludes/Staple.slang
@@ -95,9 +95,9 @@ public float4x4 StapleGetBoneMatrix(int index)
95
96
public float4x4 StapleGetSkinningMatrix(float4x4 world, float4 indices, float4 weights)
97
{
98
- return mul(weights.x * StapleGetBoneMatrix(int(indices.x)) +
+ return mul(world, weights.x * StapleGetBoneMatrix(int(indices.x)) +
99
weights.y * StapleGetBoneMatrix(int(indices.y)) +
100
weights.z * StapleGetBoneMatrix(int(indices.z)) +
101
- weights.w * StapleGetBoneMatrix(int(indices.w)), world);
+ weights.w * StapleGetBoneMatrix(int(indices.w)));
102
}
103
#endif
0 commit comments