Commit 5ea90723 authored by Anakin's avatar Anakin

changed intensity of background

parent af94ecd5
......@@ -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;
......
......@@ -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();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment