|
|
@ -563,6 +563,7 @@ void CLandscapeVBAllocator::setupVBFormatAndVertexProgram(bool withVertexProgr
|
|
|
|
string vpgram= string(NL3D_LandscapeCommonStartProgram) +
|
|
|
|
string vpgram= string(NL3D_LandscapeCommonStartProgram) +
|
|
|
|
string(NL3D_LandscapeFar0EndProgram);
|
|
|
|
string(NL3D_LandscapeFar0EndProgram);
|
|
|
|
_VertexProgram[0]= new CVertexProgram(vpgram.c_str());
|
|
|
|
_VertexProgram[0]= new CVertexProgram(vpgram.c_str());
|
|
|
|
|
|
|
|
// TODO_VP_GLSL
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if(_Type==Far1)
|
|
|
|
else if(_Type==Far1)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -580,6 +581,7 @@ void CLandscapeVBAllocator::setupVBFormatAndVertexProgram(bool withVertexProgr
|
|
|
|
string vpgram= string(NL3D_LandscapeCommonStartProgram) +
|
|
|
|
string vpgram= string(NL3D_LandscapeCommonStartProgram) +
|
|
|
|
string(NL3D_LandscapeFar1EndProgram);
|
|
|
|
string(NL3D_LandscapeFar1EndProgram);
|
|
|
|
_VertexProgram[0]= new CVertexProgram(vpgram.c_str());
|
|
|
|
_VertexProgram[0]= new CVertexProgram(vpgram.c_str());
|
|
|
|
|
|
|
|
// TODO_VP_GLSL
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -597,11 +599,13 @@ void CLandscapeVBAllocator::setupVBFormatAndVertexProgram(bool withVertexProgr
|
|
|
|
string vpgram= string(NL3D_LandscapeCommonStartProgram) +
|
|
|
|
string vpgram= string(NL3D_LandscapeCommonStartProgram) +
|
|
|
|
string(NL3D_LandscapeTileEndProgram);
|
|
|
|
string(NL3D_LandscapeTileEndProgram);
|
|
|
|
_VertexProgram[0]= new CVertexProgram(vpgram.c_str());
|
|
|
|
_VertexProgram[0]= new CVertexProgram(vpgram.c_str());
|
|
|
|
|
|
|
|
// TODO_VP_GLSL
|
|
|
|
|
|
|
|
|
|
|
|
// Init the Vertex Program for lightmap pass
|
|
|
|
// Init the Vertex Program for lightmap pass
|
|
|
|
vpgram= string(NL3D_LandscapeCommonStartProgram) +
|
|
|
|
vpgram= string(NL3D_LandscapeCommonStartProgram) +
|
|
|
|
string(NL3D_LandscapeTileLightMapEndProgram);
|
|
|
|
string(NL3D_LandscapeTileLightMapEndProgram);
|
|
|
|
_VertexProgram[1]= new CVertexProgram(vpgram.c_str());
|
|
|
|
_VertexProgram[1]= new CVertexProgram(vpgram.c_str());
|
|
|
|
|
|
|
|
// TODO_VP_GLSL
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|