mirror of
https://github.com/isledecomp/isle.git
synced 2025-12-09 23:53:02 +00:00
BETA10: Fix reccmp regressions, match RealtimeView (#1696)
--------- Co-authored-by: jonschz <jonschz@users.noreply.github.com>
This commit is contained in:
@@ -3,18 +3,23 @@
|
||||
#include <math.h>
|
||||
|
||||
// GLOBAL: LEGO1 0x10109598
|
||||
// GLOBAL: BETA10 0x10211dc0
|
||||
float g_userMaxLodPower;
|
||||
|
||||
// GLOBAL: LEGO1 0x10101044
|
||||
// GLOBAL: BETA10 0x10204fd8
|
||||
float g_userMaxBase = 4.0f;
|
||||
|
||||
// GLOBAL: LEGO1 0x10101048
|
||||
// GLOBAL: BETA10 0x10204fdc
|
||||
float g_userMaxLod = 3.6f;
|
||||
|
||||
// GLOBAL: LEGO1 0x1010104c
|
||||
// GLOBAL: BETA10 0x10204fe0
|
||||
float g_partsThreshold = 1000.0f;
|
||||
|
||||
// FUNCTION: LEGO1 0x100a5dc0
|
||||
// FUNCTION: BETA10 0x10168840
|
||||
RealtimeView::RealtimeView()
|
||||
{
|
||||
UpdateMaxLOD();
|
||||
@@ -26,6 +31,7 @@ RealtimeView::~RealtimeView()
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x100a5de0
|
||||
// FUNCTION: BETA10 0x10168874
|
||||
void RealtimeView::SetUserMaxLOD(float p_lod)
|
||||
{
|
||||
g_userMaxLod = p_lod;
|
||||
@@ -33,24 +39,28 @@ void RealtimeView::SetUserMaxLOD(float p_lod)
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x100a5df0
|
||||
// FUNCTION: BETA10 0x10168891
|
||||
void RealtimeView::SetPartsThreshold(float p_threshold)
|
||||
{
|
||||
g_partsThreshold = p_threshold;
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x100a5e00
|
||||
// FUNCTION: BETA10 0x101688a9
|
||||
float RealtimeView::GetUserMaxLOD()
|
||||
{
|
||||
return g_userMaxLod;
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x100a5e10
|
||||
// FUNCTION: BETA10 0x101688bf
|
||||
float RealtimeView::GetPartsThreshold()
|
||||
{
|
||||
return g_partsThreshold;
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x100a5e20
|
||||
// FUNCTION: BETA10 0x101688d5
|
||||
void RealtimeView::UpdateMaxLOD()
|
||||
{
|
||||
g_userMaxLodPower = pow(g_userMaxBase, -g_userMaxLod);
|
||||
|
||||
@@ -20,11 +20,13 @@ public:
|
||||
// FUNCTION: BETA10 0x1004a7a0
|
||||
const Vector3& Min() const { return min; }
|
||||
|
||||
// FUNCTION: BETA10 0x10174c30
|
||||
Vector3& Min() { return min; }
|
||||
|
||||
// FUNCTION: BETA10 0x1004a7c0
|
||||
const Vector3& Max() const { return max; }
|
||||
|
||||
// FUNCTION: BETA10 0x10174c50
|
||||
Vector3& Max() { return max; }
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user