Move camera near plane closer to avoid clipping

This commit is contained in:
xtreme8000 2023-10-13 23:19:42 +02:00
parent b9d7cb7fe2
commit 7336dacd05

View file

@ -183,7 +183,7 @@ void camera_update(struct camera* c) {
assert(c);
glm_perspective(glm_rad(gstate.config.fov),
(float)gfx_width() / (float)gfx_height(), 0.1F,
(float)gfx_width() / (float)gfx_height(), 0.075F,
gstate.config.render_distance, c->projection);
glm_lookat((vec3) {c->x, c->y, c->z},