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

@ -18,7 +18,7 @@ void main()
vec3 L = normalize(inLightVec);
vec3 V = normalize(inViewVec);
vec3 R = reflect(-L, N);
vec3 diffuse = max(dot(N, L), 0.0) * vec3(1.0);// * inColor;
vec3 diffuse = max(dot(N, L), 0.1) * vec3(1.0) * inColor;
vec3 specular = pow(max(dot(R, V), 0.0), 32.0) * vec3(0.5);
outFragColor = vec4(diffuse * color.rgb + specular, 1.0);
}