|
@ -637,12 +637,12 @@ Model LoadModel(const char *fileName) |
|
|
#if defined(SUPPORT_FILEFORMAT_OBJ) |
|
|
#if defined(SUPPORT_FILEFORMAT_OBJ) |
|
|
if (IsFileExtension(fileName, ".obj")) model = LoadOBJ(fileName); |
|
|
if (IsFileExtension(fileName, ".obj")) model = LoadOBJ(fileName); |
|
|
#endif |
|
|
#endif |
|
|
#if defined(SUPPORT_FILEFORMAT_GLTF) |
|
|
|
|
|
if (IsFileExtension(fileName, ".gltf") || IsFileExtension(fileName, ".glb")) model = LoadGLTF(fileName); |
|
|
|
|
|
#endif |
|
|
|
|
|
#if defined(SUPPORT_FILEFORMAT_IQM) |
|
|
#if defined(SUPPORT_FILEFORMAT_IQM) |
|
|
if (IsFileExtension(fileName, ".iqm")) model = LoadIQM(fileName); |
|
|
if (IsFileExtension(fileName, ".iqm")) model = LoadIQM(fileName); |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
#if defined(SUPPORT_FILEFORMAT_GLTF) |
|
|
|
|
|
if (IsFileExtension(fileName, ".gltf") || IsFileExtension(fileName, ".glb")) model = LoadGLTF(fileName); |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
// Make sure model transform is set to identity matrix! |
|
|
// Make sure model transform is set to identity matrix! |
|
|
model.transform = MatrixIdentity(); |
|
|
model.transform = MatrixIdentity(); |
|
|