spt: Use vbos for geometry.

This commit is contained in:
Mathias Froehlich
2013-02-24 13:03:06 +01:00
parent 49162a7a64
commit fafa70c6bc

View File

@@ -307,6 +307,8 @@ ReaderWriterSPT::createSeaLevelTile(const BucketBox& bucketBox, const osgDB::Opt
colors->push_back(osg::Vec4(1, 1, 1, 1));
osg::Geometry* geometry = new osg::Geometry;
geometry->setDataVariance(osg::Object::STATIC);
geometry->setUseVertexBufferObjects(true);
geometry->setVertexArray(vertices);
geometry->setNormalArray(normals);
geometry->setNormalBinding(osg::Geometry::BIND_PER_VERTEX);