Friday, May 22, 2015

rendering - What is a texture atlas?


I've heard about this concept, but what is it?



Answer



A texture atlas is simply a way to stuff multiple sprites into a single texture. You also will need an index into the texture so that you can find where each of the sprites are located.


The reason these are used is because it's more efficient to bind a texture once and change the UV values being used than to bind multiple textures for each sprite you draw.


Here is an article from Gamasutra on texture atlases that helped me a lot when I was first getting started



No comments:

Post a Comment

Simple past, Present perfect Past perfect

Can you tell me which form of the following sentences is the correct one please? Imagine two friends discussing the gym... I was in a good s...