changed intensity of background
This commit is contained in:
parent
af94ecd541
commit
5ea90723b4
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user