}
VG_STATIC void bind_terrain_noise(void);
-VG_STATIC void render_world_routes( m4x4f projection, v3f camera )
+VG_STATIC void render_world_routes( camera *cam )
{
m4x3f identity_matrix;
m4x3_identity( identity_matrix );
shader_link_standard_ub( _shader_route.id, 2 );
bind_terrain_noise();
- shader_route_uPv( projection );
+ shader_route_uPv( cam->mtx.pv );
+ shader_route_uPvmPrev( cam->mtx_prev.pv );
shader_route_uMdl( identity_matrix );
- shader_route_uCamera( camera );
+ shader_route_uCamera( cam->transform[3] );
+ shader_route_uBoard0( TEMP_BOARD_0 );
+ shader_route_uBoard1( TEMP_BOARD_1 );
mesh_bind( &world.mesh_route_lines );