From b70c05b4e0bd38e034af81a7ec40cfd7d38d292d Mon Sep 17 00:00:00 2001 From: Malcolm Tyrrell Date: Thu, 12 Dec 2019 09:38:50 +0000 Subject: [PATCH] Fix texcoords. --- code/glTF2/glTF2Importer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/code/glTF2/glTF2Importer.cpp b/code/glTF2/glTF2Importer.cpp index dd80aeba9..9b416850f 100644 --- a/code/glTF2/glTF2Importer.cpp +++ b/code/glTF2/glTF2Importer.cpp @@ -201,6 +201,7 @@ inline void SetMaterialTextureProperty(std::vector &embeddedTexIdxs, Asset } mat->AddProperty(&uri, AI_MATKEY_TEXTURE(texType, texSlot)); + mat->AddProperty(&prop.texCoord, 1, AI_MATKEY_GLTF_TEXTURE_TEXCOORD(texType, texSlot)); if (prop.textureTransformSupported) { aiUVTransform transform;