Shaku Gfx Demo: Texture Atlas

This demo load multiple textures and generate a Texture Atlas Asset from them at runtime.
If not all textures can fit in a single texture atlas, it will generate multiple textures instead.

In this demo we limit the atlas textures size to 512x512, so we'll get more than one texture. Without providing a size limit it will create textures as big as WebGL allows us.

On the left side of the canvas you'll see the generated atlas textures. On the right we'll extract a random image from the atlas and render it, just to show how to use the atlas.