fix compile issue
This commit is contained in:
@@ -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++)
|
||||
|
||||
@@ -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,9 +57,7 @@ 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);
|
||||
|
||||
Reference in New Issue
Block a user