fix uninitialized m_lightColor (see ExampleBrowser/Rendering/TinyRenderer, Software was black.

This commit is contained in:
Erwin Coumans
2016-11-21 22:33:23 -08:00
parent 24c9020aac
commit ca71b84913

View File

@@ -107,6 +107,7 @@ m_objectIndex(-1)
Vec3f center(0,0,0); Vec3f center(0,0,0);
Vec3f up(0,0,1); Vec3f up(0,0,1);
m_lightDirWorld.setValue(0,0,0); m_lightDirWorld.setValue(0,0,0);
m_lightColor.setValue(1, 1, 1);
m_localScaling.setValue(1,1,1); m_localScaling.setValue(1,1,1);
m_modelMatrix = Matrix::identity(); m_modelMatrix = Matrix::identity();
@@ -127,6 +128,7 @@ m_objectIndex(objectIndex)
Vec3f center(0,0,0); Vec3f center(0,0,0);
Vec3f up(0,0,1); Vec3f up(0,0,1);
m_lightDirWorld.setValue(0,0,0); m_lightDirWorld.setValue(0,0,0);
m_lightColor.setValue(1, 1, 1);
m_localScaling.setValue(1,1,1); m_localScaling.setValue(1,1,1);
m_modelMatrix = Matrix::identity(); m_modelMatrix = Matrix::identity();