[osg-users] osg::Vec3Array as uniform to Shader

Robert Osfield robert.osfield at gmail.com
Sun Mar 4 01:13:23 PST 2018


The three options you have are :

  To use the array support in osg::Uniform that enables use of array
of Vec3,  It internally manages the array so you
  can't just pass in an osg::Vec3Array, by you have
setNumElements/setElement(..) methods.

  To use an float RGB osg::Image like you have done

   To use the shader_pipeline branch that as a osg::Vec3ArrayUniform
class, this isn't an osg::Vec3Array but is
   pretty close,


More information about the osg-users mailing list