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

@ -7,8 +7,8 @@ layout (location = 2) in vec2 inUV;
layout (binding = 0) uniform UBO
{
mat4 projection;
mat4 model;
mat4 view;
mat4 model;
vec4 lightPos;
vec4 viewPos;
vec2 uvOffset;
@ -30,7 +30,7 @@ void main()
vec4 pos = vec4(inPos, 1.0);
gl_Position = ubo.projection * ubo.view * ubo.model * vec4(pos);
outNormal = mat3(ubo.model) * inNormal;
outNormal = inNormal;
outLightVec = ubo.lightPos.xyz - pos.xyz;
outViewVec = ubo.viewPos.xyz - pos.xyz;
}