fixed backface culling bug,

todo: connect headligh
This commit is contained in:
Anakin
2017-01-30 00:02:32 +01:00
parent 538453c1db
commit fbb51563c9
5 changed files with 15 additions and 16 deletions

View File

@@ -36,7 +36,7 @@ private:
void clearData();
public:
void drawGeometry(QOpenGLShaderProgram *program, bool wireframe);
void drawGeometry(QOpenGLShaderProgram *program);
void loadFile(QString filePath);
// signals

View File

@@ -27,6 +27,7 @@ private:
bool m_wireframe = false;
bool m_lightOn = false;
bool m_backfaceCulling = false;
struct {
QVector4D position = { 1,1,1,0 };