mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-11-22 15:37:55 -05:00
Match SetUserMaxLOD (#118)
* Match SetUserMaxLOD and implement UpdateMaxLOD * Update realtimeview.cpp
This commit is contained in:
parent
2b3f7cbfc1
commit
c4453fe49f
2 changed files with 15 additions and 0 deletions
|
@ -1,4 +1,11 @@
|
|||
#include "realtimeview.h"
|
||||
#include <math.h>
|
||||
|
||||
// 0x10109598
|
||||
float g_userMaxLodPower;
|
||||
|
||||
// 0x10101044
|
||||
float g_userMaxBase = 4.0f;
|
||||
|
||||
// 0x10101048
|
||||
float g_userMaxLod = 3.6f;
|
||||
|
@ -19,10 +26,17 @@ float RealtimeView::GetPartsThreshold()
|
|||
return g_partsThreshold;
|
||||
}
|
||||
|
||||
// OFFSET: LEGO1 100a5e20
|
||||
void RealtimeView::UpdateMaxLOD()
|
||||
{
|
||||
g_userMaxLodPower = pow(g_userMaxBase, -g_userMaxLod);
|
||||
}
|
||||
|
||||
// OFFSET: LEGO1 0x100a5de0
|
||||
void RealtimeView::SetUserMaxLOD(float p_lod)
|
||||
{
|
||||
g_userMaxLod = p_lod;
|
||||
UpdateMaxLOD();
|
||||
}
|
||||
|
||||
// OFFSET: LEGO1 0x100a5df0
|
||||
|
|
|
@ -7,6 +7,7 @@ class RealtimeView
|
|||
__declspec(dllexport) static float GetPartsThreshold();
|
||||
__declspec(dllexport) static float GetUserMaxLOD();
|
||||
__declspec(dllexport) static void SetPartsThreshold(float);
|
||||
static void UpdateMaxLOD();
|
||||
__declspec(dllexport) static void SetUserMaxLOD(float);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue