Changeset 385
- Timestamp:
- Jun 15, 2012, 10:12:39 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
experimental/distortionNG/DistortionManipulator.cpp
r384 r385 540 540 void DistortionManipulator::updateDistortionMesh() 541 541 { 542 // Create mesh vertex array 543 544 // Create textCoord array 545 546 // Apply arrays 547 542 // Create mesh vertex array & textCoord array 548 543 osg::Vec3Array* vertices = new osg::Vec3Array; 549 544 osg::Vec2Array* texCoords = new osg::Vec2Array; … … 564 559 } 565 560 561 // Apply arrays 566 562 _distortionSet->getDistortionInternals()->getChild(osgViewer::DistortionSet::MESH)->asGeode()->getDrawable(0)->asGeometry()->setVertexArray(vertices); 567 563 _distortionSet->getDistortionInternals()->getChild(osgViewer::DistortionSet::MESH)->asGeode()->getDrawable(0)->asGeometry()->setTexCoordArray(0, texCoords); // todo: 0 ist hardcoded und müsste durch getTexUnitScene() ersetzt werden 568 564 _distortionSet->getDistortionInternals()->getChild(osgViewer::DistortionSet::MESH)->asGeode()->getDrawable(0)->asGeometry()->dirtyDisplayList(); 569 570 } 565 }
Note: See TracChangeset
for help on using the changeset viewer.