fix compile issue

This commit is contained in:
Erwin Coumans
2017-04-23 17:12:40 -07:00
parent 4759e5a590
commit 552c85617f
2 changed files with 4 additions and 6 deletions

View File

@@ -172,7 +172,7 @@ struct InternalDataRenderer : public GLInstanceRendererInternalData
m_shadowTexture(0),
m_renderFrameBuffer(0)
{
m_lightPos=b3MakeVector3(-5,50,50);
m_lightPos=b3MakeVector3(-50,30,100);
//clear to zero to make it obvious if the matrix is used uninitialized
for (int i=0;i<16;i++)

View File

@@ -44,7 +44,7 @@ struct TinyRendererSetupInternalData
int m_textureHandle;
int m_animateRenderer;
double m_lightPos[3];
btVector3 m_lightPos;
TinyRendererSetupInternalData(int width, int height)
:
@@ -57,10 +57,8 @@ struct TinyRendererSetupInternalData
m_textureHandle(0),
m_animateRenderer(0)
{
m_lightPos[0] = -3;
m_lightPos[1] = 3;
m_lightPos[2] = 3;
m_lightPos.setValue(-3,15,15);
m_depthBuffer.resize(m_width*m_height);
m_shadowBuffer.resize(m_width*m_height);
// m_segmentationMaskBuffer.resize(m_width*m_height);