Nearclipping now scales with farclipping automatically and correctly

Also stubbed out an experimental PC2 thing I forgot to do the first time lolol
This commit is contained in:
Fazana
2021-08-27 12:31:43 +01:00
parent 1e0d308382
commit 60612ff1ec
2 changed files with 2 additions and 2 deletions

View File

@@ -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
{

View File

@@ -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);