]> git.lizzy.rs Git - shadowclad.git/blobdiff - level.c
Apply all transforms in 3D assets during import
[shadowclad.git] / level.c
diff --git a/level.c b/level.c
index 7e7f02971cace81624029e786861e42c96c1505a..787461d5bf09888c673f2afc8f4b142b7a699267 100644 (file)
--- a/level.c
+++ b/level.c
@@ -1,5 +1,6 @@
 #include <GL/gl.h>
 #include <assimp/cimport.h>
+#include <assimp/postprocess.h>
 #include <stdlib.h>
 
 #include "level.h"
@@ -78,7 +79,7 @@ void buildLevelFromImage(TgaImage* image) {
 }
 
 const AiScene* importScene(const char* path) {
-       const AiScene* scene = aiImportFile(path, 0u);
+       const AiScene* scene = aiImportFile(path, aiProcess_PreTransformVertices);
        if (scene == NULL) {
                logError("Failed to import asset from %s", path);
        }