X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fgame.c;h=a1dad7be36010bce993819213991eba7b5d669c2;hb=49c9842d3766ebb1b3a67f41774c188e7bc1ae95;hp=a729996e88130bf624e7bbafd4c63d62e714f995;hpb=e09f58ce22aa16e6fc68347b70c2be6a864f25b3;p=vrtris diff --git a/src/game.c b/src/game.c index a729996..a1dad7b 100644 --- a/src/game.c +++ b/src/game.c @@ -12,7 +12,6 @@ static void calc_framerate(void); static void print_framerate(void); -float view_matrix[16], proj_matrix[16]; static int should_swap; static unsigned long framerate; @@ -40,6 +39,11 @@ int game_init(int argc, char **argv) should_swap = goatvr_should_swap(); } + glEnable(GL_DEPTH_TEST); + glEnable(GL_CULL_FACE); + glEnable(GL_LIGHTING); + glEnable(GL_LIGHT0); + return 0; } @@ -104,7 +108,7 @@ void game_display(void) /* non-VR mode */ glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - cgm_mperspective(proj_matrix, cgm_deg_to_rad(50.0), win_aspect, 0.5, 500.0); + cgm_mperspective(proj_matrix, cgm_deg_to_rad(40.0), win_aspect, 0.5, 500.0); glMatrixMode(GL_PROJECTION); glLoadMatrixf(proj_matrix);