Hi,

I checked RenderStage::runCameraSetUp() source code, and found that 
bufferAttachments only have Texture1D, Texture2D, Texture3D, TextureCubeMap, 
TextureRetangle, but without TextureArray, and I don`t know weather OSG using 
glFramebufferTextureLayer or glFramebufferTexture when bind TextureArray, 
cubeMap and Texture3D, if using glFramebufferTexture, no layer rendering is 
available. I will try Texture3D for layer rendering.

BTW,
shadowCamera->attach(osg::Camera::COLOR_BUFFER0, ta, 0, 0);
shadowCamera->attach(osg::Camera::COLOR_BUFFER1, ta, 0, 1);
shadowCamera->attach(osg::Camera::COLOR_BUFFER2, ta, 0, 2);
does not take effects, each color_buffer only accept the rastered fragments of 
primitive in first layer, the other 2 in geometry shader does not shown. 

Thank you!

Cheers,
Kai

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=25506#25506





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to