support normal map now,

support "glow" now,
update preview.jpg
This commit is contained in:
Anakin
2017-02-06 14:53:05 +01:00
parent 541a975624
commit 06d403d546
6 changed files with 114 additions and 83 deletions

View File

@@ -921,7 +921,7 @@ void MshFile::loadTexture(QOpenGLTexture *& destination, QString filepath, QStri
if (!loadSuccess)
{
OutputDevice::getInstance()->print("WARNING: texture not found or corrupted: " + filename, 1);
//TODO: use the correct diffuse color or return with null
img = QImage(1, 1, QImage::Format_RGB32);
img.fill(QColor(m_materials->back().diffuseColor[0] * 255, m_materials->back().diffuseColor[1] * 255, m_materials->back().diffuseColor[2] * 255));
filename += " *";