Don't render low-polygon variants on pc-port

This commit is contained in:
n64 2020-07-04 22:18:17 +02:00 committed by fgsfds
parent 469ad637ed
commit 744b6bf5d6
1 changed files with 5 additions and 0 deletions

View File

@ -277,6 +277,11 @@ static void geo_process_level_of_detail(struct GraphNodeLevelOfDetail *node) {
s16 distanceFromCam = -GET_HIGH_S16_OF_32(mtx->m[1][3]); // z-component of the translation column s16 distanceFromCam = -GET_HIGH_S16_OF_32(mtx->m[1][3]); // z-component of the translation column
#endif #endif
#ifndef TARGET_N64
// We assume modern hardware is powerful enough to draw the most detailed variant
distanceFromCam = 0;
#endif
if (node->minDistance <= distanceFromCam && distanceFromCam < node->maxDistance) { if (node->minDistance <= distanceFromCam && distanceFromCam < node->maxDistance) {
if (node->node.children != 0) { if (node->node.children != 0) {
geo_process_node_and_siblings(node->node.children); geo_process_node_and_siblings(node->node.children);