fixed missing last tile, and changed bvh node to binary
[cyberay] / src / geom.h
index 50784a4..7f71094 100644 (file)
@@ -26,9 +26,7 @@ struct bvhnode {
        struct triangle *faces;
        int num_faces;
 
-       struct bvhnode *next;
-       struct bvhnode *sub;
-       int num_sub;
+       struct bvhnode *left, *right;
 };
 
 struct rayhit {