Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Texture Atlases

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.

Clone this wiki locally