You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 7, 2024. It is now read-only.
Samuel Rasquinha edited this page Jun 17, 2020
·
1 revision
Texture Atlases
Texture Atlases are used to speed up rendering by using a single texture and sampling from particular locations from that image.
Using it
The TextureAtlas Class allows you to do that. The Sample() function is used to sample a texture using non-UV coords that gets multiplied with the TileX and TileY.
The CustomSample() function allows you to sample a texture from your own pixel coordinates
A Note
The UV Coordinates origin of a texture is at the bottom left of a texture.