View Full Version : Add a 2D texture to a 3D texture
03-25-2010, 10: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, 02: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, 02:55 AM
On NVIDIA hardware you could use the NV_copy_image extension.
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.