mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-21 07:11:16 +00:00
Match SetUserMaxLOD and implement UpdateMaxLOD
This commit is contained in:
parent
c7458211f3
commit
004d28240e
@ -1,4 +1,11 @@
|
|||||||
#include "realtimeview.h"
|
#include "realtimeview.h"
|
||||||
|
#include <math.h>
|
||||||
|
|
||||||
|
// 0x10109598
|
||||||
|
float g_userMaxLodPower;
|
||||||
|
|
||||||
|
// 0x10101044
|
||||||
|
float g_userMaxBase = 4.0f;
|
||||||
|
|
||||||
// 0x10101048
|
// 0x10101048
|
||||||
float g_userMaxLod = 3.6f;
|
float g_userMaxLod = 3.6f;
|
||||||
@ -6,6 +13,7 @@ float g_userMaxLod = 3.6f;
|
|||||||
// 0x1010104c
|
// 0x1010104c
|
||||||
float g_partsThreshold = 1000.0f;
|
float g_partsThreshold = 1000.0f;
|
||||||
|
|
||||||
|
|
||||||
// OFFSET: LEGO1 0x100a5e00
|
// OFFSET: LEGO1 0x100a5e00
|
||||||
float RealtimeView::GetUserMaxLOD()
|
float RealtimeView::GetUserMaxLOD()
|
||||||
{
|
{
|
||||||
@ -19,10 +27,17 @@ float RealtimeView::GetPartsThreshold()
|
|||||||
return g_partsThreshold;
|
return g_partsThreshold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// OFFSET: LEGO1 100a5e20
|
||||||
|
void RealtimeView::UpdateMaxLOD()
|
||||||
|
{
|
||||||
|
g_userMaxLodPower = pow(g_userMaxBase, -g_userMaxLod);
|
||||||
|
}
|
||||||
|
|
||||||
// OFFSET: LEGO1 0x100a5de0
|
// OFFSET: LEGO1 0x100a5de0
|
||||||
void RealtimeView::SetUserMaxLOD(float p_lod)
|
void RealtimeView::SetUserMaxLOD(float p_lod)
|
||||||
{
|
{
|
||||||
g_userMaxLod = p_lod;
|
g_userMaxLod = p_lod;
|
||||||
|
UpdateMaxLOD();
|
||||||
}
|
}
|
||||||
|
|
||||||
// OFFSET: LEGO1 0x100a5df0
|
// OFFSET: LEGO1 0x100a5df0
|
||||||
|
|||||||
@ -7,6 +7,7 @@ class RealtimeView
|
|||||||
__declspec(dllexport) static float GetPartsThreshold();
|
__declspec(dllexport) static float GetPartsThreshold();
|
||||||
__declspec(dllexport) static float GetUserMaxLOD();
|
__declspec(dllexport) static float GetUserMaxLOD();
|
||||||
__declspec(dllexport) static void SetPartsThreshold(float);
|
__declspec(dllexport) static void SetPartsThreshold(float);
|
||||||
|
static void UpdateMaxLOD();
|
||||||
__declspec(dllexport) static void SetUserMaxLOD(float);
|
__declspec(dllexport) static void SetUserMaxLOD(float);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user