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

@@ -39,7 +39,9 @@ private:
struct {
QVector3D position = { 1,1,1 };
QVector3D intensities = { 1,0.25,0.25 };
QVector3D intensities = { 1,1,1 };
float attenuationFactor = 0.2f;
float ambientCoefficient = 0.005f;
} m_light;
QOpenGLShaderProgram m_program;