unlock rendering
[carveJwlIkooP6JGAAIwe30JlM.git] / scene.h
diff --git a/scene.h b/scene.h
index cee7e699f6f570831ddaad9cca143095d1471706..b54587aadf1a1064019bedf7882fd0140eb6b4f7 100644 (file)
--- a/scene.h
+++ b/scene.h
@@ -371,31 +371,6 @@ VG_STATIC void scene_bh_debug( void *user, u32 item_index )
    vg_line( pc->co, pa->co, 0xff0000ff );
 }
 
-#if 0
-VG_STATIC int scene_bh_ray( void *user, u32 index, v3f co, 
-                            v3f dir, ray_hit *hit )
-{
-   scene_context *s = user;
-   v3f positions[3];
-   
-   u32 *tri = &s->arrindices[ index*3 ];
-
-   for( int i=0; i<3; i++ )
-      v3_copy( s->arrvertices[tri[i]].co, positions[i] );
-   
-   float t;
-   if(ray_tri( positions, co, dir, &t )){
-      if( t < hit->dist ){
-         hit->dist = t;
-         hit->tri = tri;
-         return 1;
-      }
-   }
-
-   return 0;
-}
-#endif
-
 VG_STATIC void scene_bh_closest( void *user, u32 index, v3f point, v3f closest )
 {
    scene_context *s = user;