polyadvent

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

commit c26e98344514ae4c9aa1c29c3fcb5d2633adff9e
parent 33051a9b86fb62ab292f5dff5cce17c5268dea9c
Author: William Casarin <jb55@jb55.com>
Date:   Fri,  5 Jul 2019 16:54:13 -0700

ui is borked

Diffstat:
Msrc/main.c | 4++--
Msrc/render.c | 11-----------
2 files changed, 2 insertions(+), 13 deletions(-)

diff --git a/src/main.c b/src/main.c @@ -48,7 +48,7 @@ int main(void) mat4_id(depth_vp); struct render_config fbo_render_config = { - .draw_ui = 0, + .draw_ui = 1, .is_depth_pass = 1, .camera = game.test_resources.sun_camera_id, .projection = game.test_resources.proj_ortho, @@ -56,7 +56,7 @@ int main(void) }; struct render_config default_config = { - .draw_ui = 0, + .draw_ui = 1, .is_depth_pass = 0, .camera = game.test_resources.camera_node_id, .projection = game.test_resources.proj_persp, diff --git a/src/render.c b/src/render.c @@ -343,17 +343,6 @@ void render (struct game *game, struct render_config *config) { if (node == NULL) return; - if (i == 1) { - debug("rendering %s\n", node->label); - print_id(&entity->model_id, true); - struct model *model = get_model(&entity->model_id); - struct geometry *geom = get_geometry(&model->geom_id); - print_id(&model->geom_id, true); - - printf("num_verts: %d\n", geom->num_verts); - } - - mat4_multiply(view_proj, node->mat, mvp); mat4_copy(node->mat, model_view); mat4_multiply(config->depth_vp, model_view, depth_mvp);