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
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue