projects
/
opengl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
First pass at blendshapes
[opengl.git]
/
pbrvert.glsl
diff --git
a/pbrvert.glsl
b/pbrvert.glsl
index 775cebfb0f411c04aa80c10f195e1e31cad1308b..57633800ad4402dd2f4a5c6c55377f51a4c9a82c 100644
(file)
--- a/
pbrvert.glsl
+++ b/
pbrvert.glsl
@@
-25,7
+25,7
@@
void main() {
boneTrans += bones[boneIds.z] * boneWeights.z;
boneTrans += bones[boneIds.w] * boneWeights.w;
boneTrans += bones[boneIds.z] * boneWeights.z;
boneTrans += bones[boneIds.w] * boneWeights.w;
- mat4 bonedModel =
boneTrans * model
;
+ mat4 bonedModel =
model * boneTrans
;
worldPos = vec3(bonedModel * vec4(pos, 1.f));
worldPos = vec3(bonedModel * vec4(pos, 1.f));