[osg-users] transfer data to shader with osg::texture

liu ming 81792534 at qq.com
Wed Oct 5 05:20:06 PDT 2016


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








More information about the osg-users mailing list