yes,I am getting 0 and 1 in geometry shader,but my input values are :
Code:
*ptr1=osg::Vec3( 0.0,0.0,0.0);
*ptr1++;
*ptr1= osg::Vec3( 40.0,0.0,0.0);
*ptr1++;
*ptr1=osg::Vec3( 20.0,0.0,20.0);
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=68869#68869