headlight,

bug fixes,
code improvement,
This commit is contained in:
Anakin
2017-01-30 11:31:37 +01:00
parent fbb51563c9
commit 9c16aa32f1
5 changed files with 31 additions and 11 deletions

View File

@@ -34,6 +34,7 @@ private:
QVector3D intensities = { 1.0,1.0,1.0 };
float attenuationFactor = 0.0f;
float ambientCoefficient = 0.005f;
bool headlight = false;
} m_light;
SettingsWindow* m_settings;
@@ -79,6 +80,7 @@ protected:
// slots
public slots:
void loadFile(QString name);
void toggleAxis(int axis);
void toggleWireframe();
void toggleLight();
@@ -88,6 +90,7 @@ public slots:
void setLightColor(QVector3D value);
void setAttFac(double value);
void setAmbCoef(double value);
void setHeadlight(bool value);
void setBackfaceCulling(bool value);
void setZoomSpeed(int percent);

View File

@@ -30,6 +30,8 @@ signals:
void updateLightColor(QVector3D value);
void updateAttFac(double value);
void updateAmbCoef(double value);
void sendHeadlight(bool value);
void sendBackfaceCulling(bool value);
void sendZommSpeed(int percent);
};