|
发表于 2008-9-22 00:08:46
|
显示全部楼层
请参看osgprerender例子,其中MyCameraPostDrawCallback的实现代码中有关于浮点纹理的操作:
看看是否作了必要的设置,比如:
osg::Image* image = new osg::Image;
image->allocateImage(width, height, 1, GL_RGBA, GL_FLOAT);
camera->attach(osg::Camera::COLOR_BUFFER, image); |
|