mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 15:29:32 +02:00
Merge pull request #4792 from howard-stearns/objReader-tweak
Obj reader tweak
This commit is contained in:
commit
a775c1fb98
2 changed files with 4 additions and 1 deletions
|
@ -510,6 +510,9 @@ FBXGeometry OBJReader::readOBJ(QIODevice* device, const QVariantHash& mapping, Q
|
||||||
<< textureUVs[face.textureUVIndices[0]]
|
<< textureUVs[face.textureUVIndices[0]]
|
||||||
<< textureUVs[face.textureUVIndices[1]]
|
<< textureUVs[face.textureUVIndices[1]]
|
||||||
<< textureUVs[face.textureUVIndices[2]];
|
<< textureUVs[face.textureUVIndices[2]];
|
||||||
|
} else {
|
||||||
|
glm::vec2 corner(0.0f, 1.0f);
|
||||||
|
mesh.texCoords << corner << corner << corner;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,7 +56,7 @@ public:
|
||||||
glm::vec3 specularColor;
|
glm::vec3 specularColor;
|
||||||
QByteArray diffuseTextureFilename;
|
QByteArray diffuseTextureFilename;
|
||||||
QByteArray specularTextureFilename;
|
QByteArray specularTextureFilename;
|
||||||
OBJMaterial() : opacity(1.0f) {}
|
OBJMaterial() : shininess(96.0f), opacity(1.0f), diffuseColor(1.0f), specularColor(1.0f) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
class OBJReader: public QObject { // QObject so we can make network requests.
|
class OBJReader: public QObject { // QObject so we can make network requests.
|
||||||
|
|
Loading…
Reference in a new issue