Don't render low-polygon variants on pc-port
This commit is contained in:
parent
3fb5a2813f
commit
518c7a2a0b
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue