commit 837a067098ed35378aca3343e61ee9d360f397b6
parent 15dd96fbee3c7ec13c2acb65980051034235a6f4
Author: William Casarin <bill@casarin.me>
Date: Sat, 27 Jun 2015 23:46:47 -0700
tweak camera
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/game.c b/src/game.c
@@ -9,5 +9,5 @@ void init_game(struct game_state *game) {
mat4_id(normal);
// move the camera a bit
- mat4_translate(mvp, -10.0f, -10.0f, -20.0f, mvp);
+ mat4_translate(mvp, -10.0f, -10.0f, -40.0f, mvp);
}
diff --git a/src/render.c b/src/render.c
@@ -97,7 +97,7 @@ init_gl(struct resources *resources) {
assert(resources->fragment_shader != 0);
// camera
- mat4_perspective(90 /* fov */, 1080 / 720, 1, 100, resources->camera);
+ mat4_perspective(80 /* fov */, 1080 / 720, 1, 1000, resources->camera);
// Shader program
resources->program = make_program(resources->vertex_shader,