X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=player_render.c;h=8f2521538ca9719b7c83b93dccf3a27553f49e0c;hb=a6880a555be0e8bed7aae08c95b95eeb62ade0b4;hp=f34aa1665028c9ac4909508e56503648f59694bb;hpb=f24a8cdd8ea6c3d762d26de2fc0700599bedbcad;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/player_render.c b/player_render.c index f34aa16..8f25215 100644 --- a/player_render.c +++ b/player_render.c @@ -61,6 +61,7 @@ VG_STATIC void player_model_load( struct player_model *mdl, const char *path ) mdl_close( &ctx ); } +/* TODO: allow error handling */ VG_STATIC void player_board_load( struct player_board *mdl, const char *path ) { vg_linear_clear( vg_mem.scratch ); @@ -305,6 +306,7 @@ VG_STATIC void render_board( camera *cam, world_instance *world, shader_model_board_view_uTexSceneDepth( 1 ); render_fb_inverse_ratio( gpipeline.fb_main, inverse ); + inverse[2] = main_camera.farz-main_camera.nearz; shader_model_board_view_uInverseRatioDepth( inverse );