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 committed 2021-08-27 12:31:43 +01:00
1 parent 1e0d308382
commit 60612ff1ec
2 files changed
+2 -2

No files matched your search

+1 -1
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);