diff options
Diffstat (limited to 'viewpoint.c')
-rw-r--r-- | viewpoint.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/viewpoint.c b/viewpoint.c index d51e646..7786c12 100644 --- a/viewpoint.c +++ b/viewpoint.c @@ -4,7 +4,7 @@ #include <math.h> #include <stdlib.h> -static const vector_t up = {0, 1, 0}; +static const vector_t up = {0, 0, 1}; void viewpoint_init(viewpoint_t *view) { @@ -37,10 +37,12 @@ void viewpoint_init(viewpoint_t *view) vector_sub(&view->blc, &view->blc, vector_scale(&v, &v, gy)); // Debug print + /* printf("Calculated the following viewpoint stuff\n"); printf("qx"); vector_print(&view->qx); printf("qy"); vector_print(&view->qy); printf("blc"); vector_print(&view->blc); + */ } // Calculate ray for viewport w, h |