surface props
[carveJwlIkooP6JGAAIwe30JlM.git] / world_routes.h
index 312429579a0fcd021d9b3cfe966d85424f9e4919..5a7c07b36df0b154c921a3970fd050eaafb19d63 100644 (file)
@@ -221,8 +221,6 @@ VG_STATIC struct route_ui_segment *world_routes_ui_curseg(
 VG_STATIC void world_routes_ui_newseg( u32 route )
 {
    struct route_ui_bar *pui = &world.ui_bars[route];
-
-   pui->last_notch = 0.0;
    
    glBindVertexArray( pui->vao );
    if( pui->segment_count )
@@ -996,7 +994,6 @@ VG_STATIC void world_routes_create_route( mdl_node *pnode )
    pui->vertex_head = k_route_ui_max_verts - 200;
    pui->segment_start = 0;
    pui->segment_count = 0;
-   pui->last_notch = 0.0;
    pui->fade_start = 0;
    pui->fade_count = 0;
    pui->fade_timer_start = 0.0;
@@ -1122,7 +1119,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;
@@ -1131,7 +1128,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 );