clray

diff src/scene.h @ 43:f9eec11e5acc

shoehorned the kdtree into an opnecl image and improved performance slightly
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 28 Aug 2010 09:38:49 +0100
parents ca445da26588
children 8047637961a2
line diff
     1.1 --- a/src/scene.h	Sat Aug 28 02:01:16 2010 +0100
     1.2 +++ b/src/scene.h	Sat Aug 28 09:38:49 2010 +0100
     1.3 @@ -51,9 +51,10 @@
     1.4  	KDNode();
     1.5  };
     1.6  
     1.7 +#define MAX_NODE_FACES	32
     1.8  struct KDNodeGPU {
     1.9  	AABBox aabb;
    1.10 -	int face_idx[32];
    1.11 +	int face_idx[MAX_NODE_FACES];
    1.12  	int num_faces;
    1.13  	int left, right;
    1.14  	int padding;