3 #include <QOpenGLShaderProgram>
5 #include <QOpenGLBuffer>
6 #include <QOpenGLFunctions>
27 protected QOpenGLFunctions
40 QOpenGLShaderProgram*
prepareVertexColor(QMatrix4x4 modelMatrix, QMatrix4x4 viewMatrix, QMatrix4x4 projMatrix,
41 int colorSet,
bool enableLambert,
bool enableSpecular,
42 QVector3D lightPos, QVector3D cameraPos,
43 bool enableIntensityCorrection =
false,
44 float shininess = 20.0f, QVector3D specularColor = QVector3D(1.0f,1.0f,1.0f)
48 QOpenGLShaderProgram*
prepareNormal(QMatrix4x4 modelMatrix, QMatrix4x4 viewMatrix, QMatrix4x4 projMatrix);