skeletal and morph animation samples

beginning of light animation, easier animation building and triangle winding order
This commit is contained in:
devZoGok
2021-10-19 19:06:41 +03:00
parent 85fa337163
commit 1d102d091f
29 changed files with 2623 additions and 29876 deletions
+13 -13
View File
@@ -41,24 +41,24 @@ namespace vb01{
Vector2(0, 0),
Vector2(1, 0)
};
unsigned int data[]={
0, 3, 1, 4, 3, 0, 1, 3, 2,
5, 3, 3, 1, 3, 2, 4, 3, 0,
unsigned int data[] = {
1, 3, 2, 4, 3, 0, 0, 3, 1,
4, 3, 0, 1, 3, 2, 5, 3, 3,
2, 0, 1, 6, 0, 0, 3, 0, 2,
6, 0, 2, 7, 0, 0, 3, 0, 3,
3, 0, 2, 6, 0, 0, 2, 0, 1,
3, 0, 3, 7, 0, 0, 6, 0, 2,
3, 2, 0, 7, 2, 1, 4, 2, 2,
4, 2, 2, 0, 2, 3, 3, 2, 0,
4, 2, 2, 7, 2, 1, 3, 2, 0,
3, 2, 0, 0, 2, 3, 4, 2, 1,
1, 5, 0, 5, 5, 1, 6, 5, 2,
6, 5, 2, 2, 5, 3, 1, 5, 0,
1, 4, 0, 5, 4, 1, 6, 4, 2,
6, 4, 2, 2, 4, 3, 1, 4, 0,
0, 1, 0, 1, 1, 1, 2, 1, 2,
2, 1, 2, 3, 1, 3, 0, 1, 0,
2, 1, 2, 1, 1, 1, 0, 1, 0,
0, 1, 0, 3, 1, 3, 2, 1, 2,
4, 4, 3, 6, 4, 1, 5, 4, 2,
6, 4, 1, 4, 4, 3, 7, 4, 0
5, 5, 2, 6, 5, 1, 4, 5, 3,
7, 5, 0, 4, 5, 3, 6, 5, 1
};
for(int i = 0; i < 3 * numTris; i++){
Vertex v;