Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
CloudJin committed Apr 2, 2020
1 parent d753877 commit 857936d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Assets/AniInstancing/Shader/AnimationInstancingBase.cginc
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ half4 skinning(inout appdata_full v)
localToWorldMatrixPre += loadMatFromTexture(preFrame, bone.w) * max(0, w.w);

half4x4 localToWorldMatrixNext = loadMatFromTexture(nextFrame, bone.x) * w.x;
localToWorldMatrixNext += loadMatFromTexture(preFrame, bone.y) * max(0, w.y);
localToWorldMatrixNext += loadMatFromTexture(preFrame, bone.z) * max(0, w.z);
localToWorldMatrixNext += loadMatFromTexture(preFrame, bone.w) * max(0, w.w);
localToWorldMatrixNext += loadMatFromTexture(nextFrame, bone.y) * max(0, w.y);
localToWorldMatrixNext += loadMatFromTexture(nextFrame, bone.z) * max(0, w.z);
localToWorldMatrixNext += loadMatFromTexture(nextFrame, bone.w) * max(0, w.w);

half4 localPosPre = mul(v.vertex, localToWorldMatrixPre);
half4 localPosNext = mul(v.vertex, localToWorldMatrixNext);
Expand Down

0 comments on commit 857936d

Please sign in to comment.