added attributes to materials

This commit is contained in:
C-Fu 2017-01-20 10:49:43 +01:00
parent 28d17b2fdd
commit eb0592373f
1 changed files with 3 additions and 1 deletions

View File

@ -45,7 +45,9 @@ struct Material {
QOpenGLTexture* texture = Q_NULLPTR;
bool transparent = false;
float shininess = 80; //TODO: read from file
QVector3D specularColor = {1.0,1.0,1.0}; //TODO: read from file
QVector4D specularColor = {1.0,1.0,1.0, 1.0}; //TODO: read from file, change to 4D
QVector4D diffuseColor;
QVector4D ambientColor;
};
class FileInterface : public QObject