by mbel · 13y ago · 0 comments
I believe you meant "to reduce number of texutre swaps"? Otherwise I fail to find how texture atlas is helping in reducing number of meshes in the drawn scene.
> But if you use texture atlas you can't combine surfaces like in the article.
Actually you can, pixel/fragment shader can be used later on to transform texture coordinates just before the texel value will be fetched (obviously this is only possible if you use shaders, but most games nowadays do).
If you have 256 different block types in 1 chunk, using texture atlas there's only 1 mesh instead of 256 different meshes.
https://docs.google.com/viewer?url=http%3A%2F%2Fnvidia.com%2...