summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2012-12-11 12:10:58 -0800
committerMatt Turner <mattst88@gmail.com>2012-12-11 12:10:58 -0800
commit6864066ecdf3291d2a443ab05bd2e793a38af683 (patch)
treec56f4c0a2dfb9e62b0f70353199f71cdfd075dfd
parentde28b8ba484266a03b8650326b306785d75720b3 (diff)
Transform the vertex by each of the bones that influence it
-rw-r--r--data/simple.vert7
1 files changed, 3 insertions, 4 deletions
diff --git a/data/simple.vert b/data/simple.vert
index 7d771c4..d9cebc2 100644
--- a/data/simple.vert
+++ b/data/simple.vert
@@ -21,13 +21,12 @@ varying vec4 color;
void main(void)
{
- /* FINISHME: Transform the vertex by each of the bones that influence
- * FINISHME: it.
- */
- vec4 p_ws = m[0] * position;
+ vec4 px_ws = m[int(weight.x)] * position;
+ vec4 py_ws = m[int(weight.y)] * position;
/* FINISME: Blend the transformed locations.
*/
+ vec4 p_ws = px_ws;
/* Transform the final world-space position to camera-space and