#include "osd.h"
#include "opt.h"
+#define DEFSCR "game"
+
static void calc_framerate(void);
static void print_framerate(void);
-static float view_matrix[16], proj_matrix[16];
static int should_swap;
static unsigned long framerate;
goatvr_startvr();
should_swap = goatvr_should_swap();
}
+
+ glEnable(GL_DEPTH_TEST);
+ glEnable(GL_CULL_FACE);
+ glEnable(GL_LIGHTING);
+ glEnable(GL_LIGHT0);
+
return 0;
}
/* 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);