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;