From eb0592373f2c06e5f1395f010f208e3fe0d3196d Mon Sep 17 00:00:00 2001 From: C-Fu Date: Fri, 20 Jan 2017 10:49:43 +0100 Subject: [PATCH] added attributes to materials --- QtMeshViewer/Header/FileInterface.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/QtMeshViewer/Header/FileInterface.h b/QtMeshViewer/Header/FileInterface.h index de2f920..0d254ca 100644 --- a/QtMeshViewer/Header/FileInterface.h +++ b/QtMeshViewer/Header/FileInterface.h @@ -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