From da1ddc29ac15e511086b8b5343b735a34be1fcea Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Sun, 21 Jul 2024 20:50:24 +1000 Subject: increase view distance --- src/core/camera.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core') diff --git a/src/core/camera.c b/src/core/camera.c index e3e812c..cde457b 100644 --- a/src/core/camera.c +++ b/src/core/camera.c @@ -10,7 +10,7 @@ Camera Camera_Create(Vec3 pos, Vec3 front, Vec3 up, f32 fov) { } Mat4 Camera_ViewProj(Camera *c, f32 lens_height, f32 lens_width, Mat4 *out_view, Mat4 *out_proj) { - Mat4 proj = mat4_perspective(c->fov, lens_width / lens_height, 0.1, 100.0); + Mat4 proj = mat4_perspective(c->fov, lens_width / lens_height, 0.1, 1000.0); Vec3 camera_direction = vec3_add(c->position, c->front); Mat4 view = mat4_look_at(c->position, camera_direction, c->up); if (out_view) { -- cgit v1.2.3-70-g09d2