X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world_routes.h;h=3aeaf05e931afe3885f880ee6772bcef1c9f7352;hb=0de25596501d8aba67b08c92bdab417d6947cd13;hp=6f34c8c56de1a1e00f1316364ff871feeec4df02;hpb=0ae443b3f6b4b753f9a2eba58da597ae8cb14b4f;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/world_routes.h b/world_routes.h index 6f34c8c..3aeaf05 100644 --- a/world_routes.h +++ b/world_routes.h @@ -5,6 +5,7 @@ #ifndef ROUTES_H #define ROUTES_H +#include #include "world.h" #include "world_gate.h" @@ -1131,7 +1132,7 @@ VG_STATIC void world_routes_update(void) } 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 ); @@ -1141,9 +1142,12 @@ VG_STATIC void render_world_routes( m4x4f projection, v3f camera ) 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 );