View Full Version : Add a 2D texture to a 3D texture
03-25-2010, 09:07 PM
How would I go about copying a 2D texture into a certain depth of a 3D texture?
Would I use glCopyTexImage2D?
03-28-2010, 01:17 PM
You can use glTexSubImage3D or glCompressedTexSubImage3D. I guess your x and y offsets would be 0, and the z offset would be the layer.
03-29-2010, 01:55 AM
On NVIDIA hardware you could use the NV_copy_image extension.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.