|
|
@ -124,7 +124,7 @@ osg::ref_ptr<IndexArrayType> createIndexBuffer(unsigned int flags, unsigned int
|
|
|
|
// West
|
|
|
|
// West
|
|
|
|
size_t col = 0;
|
|
|
|
size_t col = 0;
|
|
|
|
outerStep = size_t(1) << (lodDeltas[Terrain::West] + lodLevel);
|
|
|
|
outerStep = size_t(1) << (lodDeltas[Terrain::West] + lodLevel);
|
|
|
|
for (size_t row = 0; row < verts-1; row += outerStep)
|
|
|
|
for (row = 0; row < verts-1; row += outerStep)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
indices->push_back(verts*col+row+outerStep);
|
|
|
|
indices->push_back(verts*col+row+outerStep);
|
|
|
|
indices->push_back(verts*col+row);
|
|
|
|
indices->push_back(verts*col+row);
|
|
|
@ -148,7 +148,7 @@ osg::ref_ptr<IndexArrayType> createIndexBuffer(unsigned int flags, unsigned int
|
|
|
|
// East
|
|
|
|
// East
|
|
|
|
col = verts-1;
|
|
|
|
col = verts-1;
|
|
|
|
outerStep = size_t(1) << (lodDeltas[Terrain::East] + lodLevel);
|
|
|
|
outerStep = size_t(1) << (lodDeltas[Terrain::East] + lodLevel);
|
|
|
|
for (size_t row = 0; row < verts-1; row += outerStep)
|
|
|
|
for (row = 0; row < verts-1; row += outerStep)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
indices->push_back(verts*col+row);
|
|
|
|
indices->push_back(verts*col+row);
|
|
|
|
indices->push_back(verts*col+row+outerStep);
|
|
|
|
indices->push_back(verts*col+row+outerStep);
|
|
|
|