diff options
Diffstat (limited to 'data')
-rw-r--r-- | data/simple.vert | 7 |
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 |