From 60612ff1ec61ac8900e92a6a25c3c2814f080572 Mon Sep 17 00:00:00 2001 From: Fazana <52551480+FazanaJ@users.noreply.github.com> Date: Fri, 27 Aug 2021 12:31:43 +0100 Subject: [PATCH] Nearclipping now scales with farclipping automatically and correctly Also stubbed out an experimental PC2 thing I forgot to do the first time lolol --- src/game/puppycam2.c | 2 +- src/game/rendering_graph_node.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/puppycam2.c b/src/game/puppycam2.c index 2fb9fb9b..6172efc2 100644 --- a/src/game/puppycam2.c +++ b/src/game/puppycam2.c @@ -1189,7 +1189,7 @@ void puppycam_projection_behaviours(void) puppycam_terrain_angle(); //This will shift the intended yaw when wall kicking, to align with the wall being kicked. - puppycam_wall_angle(); + //puppycam_wall_angle(); } else { diff --git a/src/game/rendering_graph_node.c b/src/game/rendering_graph_node.c index c1c7bfa0..e4c96d0e 100644 --- a/src/game/rendering_graph_node.c +++ b/src/game/rendering_graph_node.c @@ -265,7 +265,7 @@ static void geo_process_perspective(struct GraphNodePerspective *node) { else gWorldScale = 1.0f; - guPerspective(mtx, &perspNorm, node->fov, aspect, node->near / gWorldScale, node->far / gWorldScale, 1.0f); + guPerspective(mtx, &perspNorm, node->fov, aspect, (node->far/300) / gWorldScale, node->far / gWorldScale, 1.0f); gSPPerspNormalize(gDisplayListHead++, perspNorm); gSPMatrix(gDisplayListHead++, VIRTUAL_TO_PHYSICAL(mtx), G_MTX_PROJECTION | G_MTX_LOAD | G_MTX_NOPUSH);