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/ive/DataOutputStream.cpp

    r13041 r13502  
    510510void DataOutputStream::writeBinding(osg::Geometry::AttributeBinding b){ 
    511511    switch(b){ 
    512         case osg::Geometry::BIND_OFF:                writeChar((char) 0); break; 
    513         case osg::Geometry::BIND_OVERALL:            writeChar((char) 1); break; 
    514         case osg::Geometry::BIND_PER_PRIMITIVE:        writeChar((char) 2); break; 
    515         case osg::Geometry::BIND_PER_PRIMITIVE_SET:    writeChar((char) 3); break; 
    516         case osg::Geometry::BIND_PER_VERTEX:        writeChar((char) 4); break; 
     512        case osg::Geometry::BIND_OFF:                           writeChar((char) 0); break; 
     513        case osg::Geometry::BIND_OVERALL:                       writeChar((char) 1); break; 
     514        case static_cast<osg::Geometry::AttributeBinding>(3):   writeChar((char) 2); break;  /*osg::Geometry::BIND_PER_PRIMITIVE*/ 
     515        case osg::Geometry::BIND_PER_PRIMITIVE_SET:             writeChar((char) 3); break; 
     516        case osg::Geometry::BIND_PER_VERTEX:                    writeChar((char) 4); break; 
    517517        default: throwException("Unknown binding in DataOutputStream::writeBinding()"); 
    518518    }