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

@@ -798,7 +798,7 @@ void TinyRendererVisualShapeConverter::render(const float viewMat[16], const flo
renderObj->m_lightDirWorld = lightDirWorld;
renderObj->m_lightColor = lightColor;
renderObj->m_lightDistance = lightDistance;
TinyRenderer::renderObjectShadow(*renderObj);
TinyRenderer::renderObject(*renderObj);
}
}
//printf("write tga \n");