Hi Taras,

just have several uniform sampler2D  or sampler2DRect in shader and bind
textures to them
see example here
http://trac.openscenegraph.org/projects/osg//browser/OpenSceneGraph/trunk/examples/osgmultiplerendertargets/osgmultiplerendertargets.cpp

take notice how

uniform sampler2DRect textureID0;
uniform sampler2DRect textureID1;
uniform sampler2DRect textureID2;
uniform sampler2DRect textureID3;


uniforms are used

Regards
Sergey


On Thu, Jul 10, 2014 at 4:19 PM, Taras Nagorny <[email protected]> wrote:

> Hi, I need to merge the two (or more) images. I have a vector of objects
> of type osg::Image. As a result, we obtain a single object (same type)
> combines all the necessary objects from the vector. Please help.
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=60236#60236
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to