mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-19 15:52:53 +00:00
fix: broken normals when packing unitvec3 for t6
This commit is contained in:
parent
7eb1714e89
commit
2c47212b52
@ -44,7 +44,7 @@ namespace pack32
|
||||
PackUtil32 z;
|
||||
z.f = (in[2] - -24624.0939334638f) * 0.0001218318939208984f;
|
||||
|
||||
return x.u | y.u << 10u | z.u << 20u;
|
||||
return (x.u & 0x3FF) | (y.u & 0x3FF) << 10u | (z.u & 0x3FF) << 20u;
|
||||
}
|
||||
|
||||
uint32_t Vec4PackGfxColor(const float (&in)[4])
|
||||
|
Loading…
x
Reference in New Issue
Block a user