Show
Ignore:
Timestamp:
10/21/14 17:10:27 (23 hours 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/examples/osgpick/osgpick.cpp

    r13376 r13471  
    197197        colors->push_back(osg::Vec4(0.8-0.1*i,0.1*i,0.2*i, 1.0)); 
    198198        quad->setColorArray(colors); 
    199         quad->setColorBinding(osg::Geometry::BIND_PER_PRIMITIVE); 
     199        quad->setColorBinding(osg::Geometry::BIND_OVERALL); 
    200200        (*vertices)[0]=position; 
    201201        (*vertices)[1]=position+dx;