Show
Ignore:
Timestamp:
10/21/14 17:10:27 (10 days ago)
Author:
robert
Message:

Added shaders to support experimental shader based displacement mapping technique osgTerrain::ShaderTerrain?.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgPlugins/md2/ReaderWriterMD2.cpp

    r13497 r13557  
    77 * 
    88 */ 
    9 #include <osg/Config> 
    10 #ifndef OSG_USE_DEPRECATED_GEOMETRY_METHODS  
    11 #define OSG_USE_DEPRECATED_GEOMETRY_METHODS 1 
    12 #endif 
    139 
    1410#include <osg/TexEnv> 
     
    380376        } 
    381377 
    382         osg::Geometry *geom = new osg::Geometry; 
     378        deprecated_osg::Geometry *geom = new deprecated_osg::Geometry; 
    383379 
    384380        geom->setVertexArray (vertexCoords); 
     
    390386        geom->setNormalArray (normalCoords); 
    391387        geom->setNormalIndices (normalIndices); 
    392         geom->setNormalBinding (osg::Geometry::BIND_PER_VERTEX); 
     388        geom->setNormalBinding (deprecated_osg::Geometry::BIND_PER_VERTEX); 
    393389 
    394390        geom->addPrimitiveSet (new osg::DrawArrays (osg::PrimitiveSet::TRIANGLES, 0, vertexIndices->size ()));