added specular, ambient light,...

need to fix the texutre gamma correction,
look at the todos
This commit is contained in:
Anakin
2017-01-19 17:57:50 +01:00
parent 4c177f2ddc
commit 9fb3ca03bd
6 changed files with 61 additions and 24 deletions

View File

@@ -44,6 +44,8 @@ struct Material {
QString name;
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
};
class FileInterface : public QObject