[F] Texture coordinate Y must be flipped for OpenGL.
parent
6fe0895799
commit
2a815df888
|
@ -35,7 +35,8 @@ QTime time_begin = QTime::currentTime();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Try to import scene.
|
// Try to import scene.
|
||||||
mScene = mImporter.ReadFile(pFileName.toStdString(), aiProcess_Triangulate | aiProcess_GenNormals | aiProcess_ValidateDataStructure | aiProcess_GenUVCoords | aiProcess_TransformUVCoords);
|
mScene = mImporter.ReadFile(pFileName.toStdString(), aiProcess_Triangulate | aiProcess_GenNormals | aiProcess_ValidateDataStructure | \
|
||||||
|
aiProcess_GenUVCoords | aiProcess_TransformUVCoords | aiProcess_FlipUVs);
|
||||||
if(mScene != nullptr)
|
if(mScene != nullptr)
|
||||||
{
|
{
|
||||||
ui->lblLoadTime->setText(QString("%1").arg(time_begin.secsTo(QTime::currentTime())));
|
ui->lblLoadTime->setText(QString("%1").arg(time_begin.secsTo(QTime::currentTime())));
|
||||||
|
|
Loading…
Reference in New Issue