Hello.

First of all sorry if the next question is dumb but i couldnt find it
anywhere.

I use camera->attach(osg::Camera::COLOR_BUFFER0, textureColor); in my
program.
It works only if the texture's source format is GL_RGBA.
As i read in setSourceFormat's comment: Sets the external source image
format

Is FBO considered image ?

As it seems i dont have to use setSourceType for the texture. But the
default source type for the texture is 0.
Why is it working ?

Thank you for your time.
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to