Skip to main content
GameDev.net gamedev.net
šŸ”’ Locked

Copy depth texture

Started by O-san Jun 11, 2009 at 9:10 AM 2 replies 1.2k views
Original Post
O-san
O-san
Hello! I am trying to copy a shadow map texture into another texture using glCopyTexSubImage2D but to no avail. Is it possible to copy depth data from an fbo using that function? If not, can I do it in another way? Any help appreciated.
V-man
V-man
Yes, it works. Is the other texture a GL_DEPTH_COMPONENT format?
zedz
zedz
as V-man saiz, it should work (Ive done it FWIW)
an alternative is just to draw that depth texture into the other FBO
O-san
O-san
Thanks! I must be doing something wrong then.. I just have to figure it out. :)

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.