changed intensity of background

This commit is contained in:
Anakin 2017-01-20 16:54:27 +01:00
parent af94ecd541
commit 5ea90723b4
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ private:
struct {
QVector3D position = { 1,1,1 };
QVector3D intensities = { 1,1,1 };
QVector3D intensities = { 1.0,1.0,1.0 };
float attenuationFactor = 0.2f;
float ambientCoefficient = 0.005f;
} m_light;

View File

@ -336,7 +336,7 @@ void OglViewerWidget::toggleLight()
if (m_lightOn)
{
m_backgroundColor = { m_light.intensities.x() / 100, m_light.intensities.y() / 100, m_light.intensities.z() / 100, 1.0 };
m_backgroundColor = { m_light.intensities.x() / 50, m_light.intensities.y() / 50, m_light.intensities.z() / 50, 1.0 };
updateLightPosition();
}