View Full Version : Texture Atlas Programmable Pipeline
08-23-2012, 04:57 AM
I'm looking for help implementing a Texture Atlas using the programmable pipeline. Would I just use a loop and glSubTexImage, or would I have to do additional work with the pixel shader?
08-23-2012, 05:15 AM
Depends on whether the texture atlas is known to your input models. If they have texture coords baked for the atlas, you can just use them. Otherwise you might need to do some atlas texcoord computation magic in the frag shader.
Given the filtering and wrap/clamping issues with texture atlases though, you might seriously consider texture arrays instead.
08-23-2012, 08:16 AM
..or if you are willing to be tied to Kepler, GL_NV_bindless_texture...
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.