X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world_routes.h;h=6f34c8c56de1a1e00f1316364ff871feeec4df02;hb=a1741ec4aed057cbafff2d6bc9e5cf8a15ae322b;hp=97fc557b604201517f4240a43a15f4c20cf4715b;hpb=a64c18c5996fd5ac9601239f91b12275f04f9cd9;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/world_routes.h b/world_routes.h index 97fc557..6f34c8c 100644 --- a/world_routes.h +++ b/world_routes.h @@ -530,6 +530,17 @@ VG_STATIC void world_routes_verify_run( u32 route ) world.routes[route].latest_pass = world.time; } +VG_STATIC void world_routes_clear(void) +{ + for( u32 i=0; iactive = 0; + } + world.current_run_version += 4; + world.last_use = 0.0; +} + /* * When going through a gate this is called for bookkeeping purposes */ @@ -1119,7 +1130,7 @@ VG_STATIC void world_routes_update(void) } } -VG_STATIC void bind_terrain_textures(void); +VG_STATIC void bind_terrain_noise(void); VG_STATIC void render_world_routes( m4x4f projection, v3f camera ) { m4x3f identity_matrix; @@ -1128,7 +1139,7 @@ VG_STATIC void render_world_routes( m4x4f projection, v3f camera ) shader_route_use(); shader_route_uTexGarbage(0); shader_link_standard_ub( _shader_route.id, 2 ); - bind_terrain_textures(); + bind_terrain_noise(); shader_route_uPv( projection ); shader_route_uMdl( identity_matrix );