Multisample texture as an attachment

16 views
Skip to first unread message

Trajce Nikolov NICK

unread,
Aug 6, 2021, 1:08:23 PMAug 6
to osg-...@googlegroups.com
Hi Community,

For some reason when I have RTT (attachment to the camera color) and later on applied to a quad as a texture, nothing is rendered. When I change it to regular Texture2D I am seeing expected result.

Here is the snippet

mainCamera->attach(osg::Camera::COLOR_BUFFER, mOsgMainColor, 0, 0, false, 8, 8);

mainQuad->getOrCreateStateSet()->setTextureAttributeAndModes(0, mOsgMainColor);

What do I miss?

Thanks a bunch as always!
Nick



--
trajce nikolov nick
Reply all
Reply to author
Forward
0 new messages