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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user