mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
fix: little endian pvr
This commit is contained in:
1 parent
fa625dc887
commit
21daf9f3bb
5 files changed
+15
-6
No files matched your search
@@ -199,6 +199,7 @@ export async function extractModel(
|
||||
}
|
||||
|
||||
let minLODDistance = Infinity;
|
||||
let isFirstMaxFloat = true;
|
||||
|
||||
range(component['rc.renderObj']['ro.batchCount']).forEach(
|
||||
(id) => {
|
||||
@@ -209,8 +210,10 @@ export async function extractModel(
|
||||
|
||||
if (
|
||||
lodDistance <= minLODDistance ||
|
||||
// (lodDistance === MAX_FLOAT32 && isFirstMaxFloat)
|
||||
lodDistance === MAX_FLOAT32
|
||||
) {
|
||||
if (lodDistance === MAX_FLOAT32) isFirstMaxFloat = false;
|
||||
minLODDistance = lodDistance;
|
||||
minLODDistanceBatchId = id;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user