Hello.

Lets say i have a texture which stores the depthmap.

1) Is the following correct ?
texture2d->setInternalFormat(GL_DEPTH_COMPONENT16);
texture2d->setSourceFormat(GL_DEPTH_COMPONENT);
texture2d->setSourceType(GL_UNSIGNED_SHORT);


2) Why do we need do initialize both internal format and source format
if we are not going to use
any image ?

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

Reply via email to