Hi, I guess answer to main question would be go ahead and add this. But I just want to write about something else here. If you attach Texture2DMultisample to Camera you would want to leave the number of samples and color samples at 0. Thats because these params are used to set up rendering to multisampled Renderbuffer objects and in post step that Renderbuffer is copied to attached texture. If you set Texture2DMultisample and additionaly set numbers of samples in attach it will do rendering to Renderbuffer and then will copy the result to your Texture2DMultisample attachment. I guess its not what you are after.
Cheers, Wojtek Lewandowski. 2013/11/11 Sebastian Messerschmidt <[email protected]> > Hi, > > maybe this seems like s stupid question but why does > osg::Texture2DMultisample does not have a getNumSamples() function? > This might come in handy if, like in my case, a texture is passed around > for MRT binding (camera->attach), to determine the number of samples for > the attach function. > Would it be okay to add the get function? > > cheers > Sebastian > _______________________________________________ > 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

