Add shared memory API for setting shadow and light source distance.

This commit is contained in:
yunfeibai
2016-11-29 13:19:35 -08:00
parent 8aa90a7427
commit 1fbd78ece5
7 changed files with 58 additions and 6 deletions

View File

@@ -90,7 +90,7 @@ struct TinyRendererVisualShapeConverterInternalData
m_rgbColorBuffer(START_WIDTH,START_HEIGHT,TGAImage::RGB),
m_hasLightDirection(false),
m_hasLightColor(false),
m_hasShadow(true)
m_hasShadow(false)
{
m_depthBuffer.resize(m_swWidth*m_swHeight);
m_shadowBuffer.resize(m_swWidth*m_swHeight);