projects
/
vrfileman
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fallback ton non-srgb when window creation fails
[vrfileman]
/
src
/
app.cc
diff --git
a/src/app.cc
b/src/app.cc
index
617e6a1
..
6ed9b8e
100644
(file)
--- a/
src/app.cc
+++ b/
src/app.cc
@@
-71,7
+71,7
@@
bool app_init(int argc, char **argv)
return false;
}
return false;
}
- if(!init_fs()) {
+ if(!init_fs(opt.path)) {
return false;
}
return false;
}
@@
-97,7
+97,7
@@
void app_draw()
goatvr_draw_eye(i);
glMatrixMode(GL_PROJECTION);
goatvr_draw_eye(i);
glMatrixMode(GL_PROJECTION);
- glLoadMatrixf(goatvr_projection_matrix(i, 0.5, 1000.0));
+ glLoadMatrixf(goatvr_projection_matrix(i, 0.1, 200.0));
view_matrix = goatvr_view_matrix(i);
view_matrix.pre_rotate_x(deg_to_rad(cam_phi));
view_matrix = goatvr_view_matrix(i);
view_matrix.pre_rotate_x(deg_to_rad(cam_phi));
@@
-147,7
+147,7
@@
void app_reshape(int x, int y)
glViewport(0, 0, x, y);
Mat4 mat;
glViewport(0, 0, x, y);
Mat4 mat;
- mat.perspective(deg_to_rad(50), win_aspect, 0.5, 500.0);
+ mat.perspective(deg_to_rad(60), win_aspect, 0.1, 200.0);
glMatrixMode(GL_PROJECTION);
glLoadMatrixf(mat[0]);
glMatrixMode(GL_PROJECTION);
glLoadMatrixf(mat[0]);