implemented light into cpp,

bug:
everything is dark,
need to calculate the normal matrix once in cpp and not for every pixel
This commit is contained in:
Anakin
2017-01-17 17:48:54 +01:00
parent 86c0559fdc
commit 1c962a481f
3 changed files with 18 additions and 8 deletions

View File

@@ -37,6 +37,11 @@ private:
bool z = true;
} m_rotDirections;
struct {
QVector3D position = { 1,1,1 };
QVector3D intensities = { 1,1,1 };
} m_light;
QOpenGLShaderProgram m_program;
GeometryEngine *m_dataEngine;