mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-06-10 02:32:33 +00:00
Add generic XModel Export dumper without bone support yet
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
#include "QuatInt16.h"
|
||||
|
||||
quat_int_16 QuatInt16::ToInt16(const float quat)
|
||||
{
|
||||
return static_cast<quat_int_16>(quat * INT16_MAX);
|
||||
}
|
||||
|
||||
float QuatInt16::ToFloat(const quat_int_16 quat)
|
||||
{
|
||||
return static_cast<float>(quat) / static_cast<float>(INT16_MAX);
|
||||
}
|
||||
Reference in New Issue
Block a user