[F] Texture coordinate Y must be flipped for OpenGL.

pull/960/head
Alexandr Arutjunov 2016-08-01 13:13:35 +03:00
parent 6fe0895799
commit 2a815df888
1 changed files with 2 additions and 1 deletions

View File

@ -35,7 +35,8 @@ QTime time_begin = QTime::currentTime();
}
// 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)
{
ui->lblLoadTime->setText(QString("%1").arg(time_begin.secsTo(QTime::currentTime())));