Sign in to follow this  

FBO and texture switch

This topic is 3200 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hello, I attach a texture to FBO color attachment and render to it, all fine.I then attach another texture to the same attachement point and use the old texture that was previously attached as a sampler in a shader and render to the FBO. in my shader I simply sample the previous texture and output to the new texture so I should be getting the same texture but I get a black texture in my new texture, here is what I do: FBObind rendering remembercurrentFBOtexture FBOattach_secondtexture secondtexture=previoustexture takeprevioustextureandpassittoashader renderwithshader FBOunbind ... after this in my FBO current target should be a texture looking just like previous texture but there is only black texture. Can I work with FBO like this? I mean attach a new texture, take old texture, sample it in a shader and output to FBO ?

Share this post


Link to post
Share on other sites

This topic is 3200 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this