clray
diff src/mesh.h @ 9:a09622aaa043
moving to triangles
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 24 Jul 2010 06:28:17 +0100 |
parents | b06518bb16e9 |
children | 85fd61f374d9 |
line diff
1.1 --- a/src/mesh.h Fri Jul 23 19:48:43 2010 +0100 1.2 +++ b/src/mesh.h Sat Jul 24 06:28:17 2010 +0100 1.3 @@ -4,19 +4,19 @@ 1.4 #include <vector> 1.5 1.6 struct Vertex { 1.7 - float pos[3]; 1.8 - float normal[3]; 1.9 + float pos[4]; 1.10 + float normal[4]; 1.11 float tex[2]; 1.12 }; 1.13 1.14 struct Face { 1.15 Vertex v[3]; 1.16 - float normal[3]; 1.17 + float normal[4]; 1.18 int matid; 1.19 }; 1.20 1.21 struct Material { 1.22 - float kd[3], ks[3]; 1.23 + float kd[4], ks[4]; 1.24 float kr, kt; 1.25 float spow; 1.26 };