Skeletalanimation fix (#671)
* Fixed anc code cleanup for skeletal animation Refs #669 * Fix android build
This commit is contained in:
parent
fcb0a2a46a
commit
d1fbf8d00a
11 changed files with 26 additions and 37 deletions
|
|
@ -43,7 +43,7 @@ void main()
|
|||
gl_Position = ubo.projection * ubo.view * ubo.model * boneTransform * vec4(inPos.xyz, 1.0);
|
||||
|
||||
vec4 pos = ubo.model * vec4(inPos, 1.0);
|
||||
outNormal = mat3(inverse(transpose(ubo.model * boneTransform))) * inNormal;
|
||||
outNormal = mat3(boneTransform) * inNormal;
|
||||
outLightVec = ubo.lightPos.xyz - pos.xyz;
|
||||
outViewVec = ubo.viewPos.xyz - pos.xyz;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue