mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-21 19:45:10 +00:00
Re-enable DynOS Vtx rounding
This commit is contained in:
parent
ceb7aa4649
commit
70fb580311
1 changed files with 9 additions and 9 deletions
|
@ -8,16 +8,16 @@ extern "C" {
|
|||
#define F32VTX_SENTINEL_2 0x5854
|
||||
|
||||
static inline bool ShouldUseF32Vtx(DataNode<Vtx>* aNode) {
|
||||
// for (u32 i = 0; i != aNode->mSize; ++i) {
|
||||
// for (u32 j = 0; j != 3; ++j) {
|
||||
// if (aNode->mData[i].n.ob[j] < -0x7FFF ||
|
||||
// aNode->mData[i].n.ob[j] > +0x7FFF) {
|
||||
// return true;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
for (u32 i = 0; i != aNode->mSize; ++i) {
|
||||
for (u32 j = 0; j != 3; ++j) {
|
||||
if (aNode->mData[i].n.ob[j] < -0x7FFF ||
|
||||
aNode->mData[i].n.ob[j] > +0x7FFF) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
static inline bool IsUsingF32Vtx(Vec3f ob) {
|
||||
return ob[0] == F32VTX_SENTINEL_0 &&
|
||||
|
|
Loading…
Reference in a new issue