Made automatic LODs based on console detection toggleable in config.h
This commit is contained in:
1 parent
84d4c8b84b
commit
9cae5d864b
2 files changed
+7
No files matched your search
@@ -275,11 +275,15 @@ static void geo_process_perspective(struct GraphNodePerspective *node) {
|
||||
*/
|
||||
static void geo_process_level_of_detail(struct GraphNodeLevelOfDetail *node) {
|
||||
f32 distanceFromCam;
|
||||
#ifdef AUTO_LOD
|
||||
if (gIsConsole) {
|
||||
distanceFromCam = -gMatStack[gMatStackIndex][3][2];
|
||||
} else {
|
||||
distanceFromCam = 50;
|
||||
}
|
||||
#else
|
||||
distanceFromCam = -gMatStack[gMatStackIndex][3][2];
|
||||
#endif
|
||||
|
||||
if ((f32)node->minDistance <= distanceFromCam && distanceFromCam < (f32)node->maxDistance) {
|
||||
if (node->node.children != 0) {
|
||||
|
||||
Reference in new issue
Block a user