You've already forked Microtransactions64
mirror of
https://github.com/Print-and-Panic/Microtransactions64.git
synced 2026-01-21 10:17:19 -08:00
Made automatic LODs based on console detection toggleable in config.h
This commit is contained in:
@@ -46,5 +46,8 @@
|
||||
// --ultrasm64-extbounds specific settings--
|
||||
// Enable widescreen (16:9) support
|
||||
#define WIDE
|
||||
// When this option is enabled, LODs will ONLY work on console.
|
||||
// When this option is disabled, LODs will work regardless of whether console or emulator is used.
|
||||
#define AUTO_LOD
|
||||
|
||||
#endif // CONFIG_H
|
||||
|
||||
@@ -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