X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world.h;h=9d35d304be7e8c6682f73e5cdae665857cd43749;hb=ba5f879f85b9cab1e2b37241399d79709fe4f584;hp=2fa7ce4f5ada984e5e4059d477e3e9eeb0823be7;hpb=4625f91b85d2badbb719a7f5bcaa2426af25911b;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/world.h b/world.h index 2fa7ce4..9d35d30 100644 --- a/world.h +++ b/world.h @@ -88,6 +88,7 @@ static struct gworld instance_cache_cap; v3f render_gate_pos; + int active_route_board; } world; @@ -550,6 +551,8 @@ static void world_update(void) { world_routes_update(); world_routes_debug(); + + sfd_update( &world.sfd.tester ); #if 0 @@ -752,15 +755,23 @@ static void render_world( m4x4f projection, m4x3f camera ) render_world_alphatest( projection, camera[3] ); render_terrain( projection, camera[3] ); - m4x3f identity_matrix; - m4x3_identity( identity_matrix ); - identity_matrix[3][1] = 125.0f; + int closest = 0; + float min_dist = INFINITY; - v4f t; - q_axis_angle( t, (v3f){0.0f,1.0f,0.0f}, 2.3f ); - q_m3x3( t, identity_matrix ); + for( int i=0; i