mirror of
https://github.com/devZoGok/vb01.git
synced 2026-08-26 19:43:30 +00:00
skeletal and morph animation samples
beginning of light animation, easier animation building and triangle winding order
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user