polyadvent

A game engine from scratch in C
git clone git://jb55.com/polyadvent
Log | Files | Refs | README

commit c4620526f04b3e3992a64936db9b1f708ef0f2f5
parent f4db3acb3832c8ec35f4e0913bed9a5da7d6939d
Author: William Casarin <jb55@jb55.com>
Date:   Wed,  2 Nov 2022 21:02:20 -0700

enable gravity, remove fbo

Diffstat:
Msrc/test_game.c | 14+++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/test_game.c b/src/test_game.c @@ -509,7 +509,7 @@ void update_test_game (struct engine *engine, struct test_game *game) { float *time = &game->time; float *light = cvars->light_dir; - //gravity(player, engine->dt); + gravity(player, engine->dt); if (needs_terrain_update) { /* update_terrain(terrain); */ @@ -589,7 +589,7 @@ void test_game_frame(struct engine *engine, struct test_game *game) }; struct render_config default_config = { - .draw_ui = 1, + .draw_ui = 0, .is_depth_pass = 0, .camera = game->camera_node_id, .projection = game->proj_persp, @@ -608,13 +608,13 @@ void test_game_frame(struct engine *engine, struct test_game *game) update_test_game(engine, game); - struct fbo *fbo = &game->shadow_buffer; - check_fbo(fbo); - bind_fbo(fbo); + //struct fbo *fbo = &game->shadow_buffer; + //check_fbo(fbo); + //bind_fbo(fbo); /* glDrawBuffer(GL_NONE); */ - render_test_game(&engine->gpu, game, &fbo_render_config); - unbind_fbo(&game->shadow_buffer); + //render_test_game(&engine->gpu, game, &fbo_render_config); + //unbind_fbo(&game->shadow_buffer); render_test_game(&engine->gpu, game, &default_config); }