Fix texcoords.

pull/2829/head
Malcolm Tyrrell 2019-12-12 09:38:50 +00:00
parent 81cb2433bc
commit b70c05b4e0
1 changed files with 1 additions and 0 deletions

View File

@ -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;