projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
its finally done
[carveJwlIkooP6JGAAIwe30JlM.git]
/
player_render.c
diff --git
a/player_render.c
b/player_render.c
index f34aa1665028c9ac4909508e56503648f59694bb..8f2521538ca9719b7c83b93dccf3a27553f49e0c 100644
(file)
--- 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 );
}
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 );
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 );
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 );
inverse[2] = main_camera.farz-main_camera.nearz;
shader_model_board_view_uInverseRatioDepth( inverse );