Fix the light color issue in box rendering example.

This commit is contained in:
yunfeibai
2016-11-29 11:43:52 -08:00
parent 5fe36ca200
commit 86c5dfe8f4
4 changed files with 6 additions and 10 deletions

View File

@@ -154,7 +154,6 @@ TinyRendererSetup::TinyRendererSetup(struct GUIHelperInterface* gui)
const char* fileName = "textured_sphere_smooth.obj";
fileName = "cube.obj";
{
@@ -373,6 +372,9 @@ void TinyRendererSetup::stepSimulation(float deltaTime)
};
m_internalData->m_renderObjects[o]->m_lightDirWorld = lightDirWorld.normalized();
btVector3 lightColor(1.0,1.0,1.0);
m_internalData->m_renderObjects[o]->m_lightColor = lightColor;
}
}