Skeletalanimation fix (#671)

* Fixed anc code cleanup for skeletal animation

Refs #669

* Fix android build
This commit is contained in:
Sascha Willems 2020-02-20 14:25:29 +01:00 committed by GitHub
parent fcb0a2a46a
commit d1fbf8d00a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 26 additions and 37 deletions

View file

@ -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;
}