clray

diff src/mesh.h @ 12:85fd61f374d9

fixed the bloody intersection bug
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 03 Aug 2010 13:06:59 +0100
parents a09622aaa043
children 407935b73af3
line diff
     1.1 --- a/src/mesh.h	Sat Jul 31 22:23:57 2010 +0100
     1.2 +++ b/src/mesh.h	Tue Aug 03 13:06:59 2010 +0100
     1.3 @@ -6,19 +6,22 @@
     1.4  struct Vertex {
     1.5  	float pos[4];
     1.6  	float normal[4];
     1.7 -	float tex[2];
     1.8 +	float tex[4];
     1.9 +	float padding[4];
    1.10  };
    1.11  
    1.12  struct Face {
    1.13  	Vertex v[3];
    1.14  	float normal[4];
    1.15  	int matid;
    1.16 +	int padding[3];
    1.17  };
    1.18  
    1.19  struct Material {
    1.20  	float kd[4], ks[4];
    1.21  	float kr, kt;
    1.22  	float spow;
    1.23 +	float padding;
    1.24  };
    1.25  
    1.26  struct Mesh {