Browse Source

Fix texcoords.

Malcolm Tyrrell 5 years ago
parent
commit
b70c05b4e0
1 changed files with 1 additions and 0 deletions
  1. 1 0
      code/glTF2/glTF2Importer.cpp

+ 1 - 0
code/glTF2/glTF2Importer.cpp

@@ -201,6 +201,7 @@ inline void SetMaterialTextureProperty(std::vector<int> &embeddedTexIdxs, Asset
 		}
 		}
 
 
         mat->AddProperty(&uri, AI_MATKEY_TEXTURE(texType, texSlot));
         mat->AddProperty(&uri, AI_MATKEY_TEXTURE(texType, texSlot));
+        mat->AddProperty(&prop.texCoord, 1, AI_MATKEY_GLTF_TEXTURE_TEXCOORD(texType, texSlot));
 
 
 		if (prop.textureTransformSupported) {
 		if (prop.textureTransformSupported) {
 			aiUVTransform transform;
 			aiUVTransform transform;