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/vrml/ConvertToVRML.cpp

    r13041 r13502  
    269269void ToVRML::apply(osg::Geometry* geom) { 
    270270 
     271  if (geom->containsDeprecatedData()) geom->fixDeprecatedData(); 
     272     
    271273  // are all primitives faces or line ? 
    272274  GLenum mode; 
     
    11291131    } 
    11301132 
    1131   } else if (geom->getNormalBinding() == osg::Geometry::BIND_PER_PRIMITIVE) { 
    1132     for (unsigned int j = 0; j < (*nArray).size(); j++) { 
    1133       n = (*nArray)[j]; 
    1134       _fout << indent() << n[0] << " " << n[1] << " " << n[2] << ",\n"; 
    1135     } 
    1136  
    11371133  } else if (geom->getNormalBinding() == osg::Geometry::BIND_PER_PRIMITIVE_SET) { 
    11381134    for (unsigned int j = 0; j < (*nArray).size(); j++) { 
     
    12831279    } 
    12841280 
    1285   } else if (geom->getColorBinding() == osg::Geometry::BIND_PER_PRIMITIVE) { 
    1286     for (unsigned int j = 0; j < (*cArray).size(); j++) { 
    1287       c = (*cArray)[j]; 
    1288       _fout << indent() << c[0] << " " << c[1] << " " << c[2] << ",\n"; 
    1289     } 
    1290  
    12911281  } else if (geom->getColorBinding() == osg::Geometry::BIND_PER_PRIMITIVE_SET) { 
    12921282    for (unsigned int j = 0; j < (*cArray).size(); j++) {