X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=scene.h;h=b54587aadf1a1064019bedf7882fd0140eb6b4f7;hb=5bfb36032928ba9f8d12e72961af68bfab9ea648;hp=cee7e699f6f570831ddaad9cca143095d1471706;hpb=35b57a341eb37d863ec69e4f011a88b7bfba5c01;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/scene.h b/scene.h index cee7e69..b54587a 100644 --- 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;