JoyPanda / RuntimeTextureAtlas

runtime texture atlas

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RuntimeTextureAtlas

Pack multiple textures into one rendertexture at runtime.

How To Use

RawImage image;
Texture texture;
...
image.PackTexture(texture);

Usecase

for a UI Scene which have 5 RawImage controls: screenshot

RTA pack all five texture into a rendertexture: rendertexture

4 drawcall saved.

without RTA with RTA
without RTA with RTA

About

runtime texture atlas

License:Apache License 2.0


Languages

Language:C# 96.3%Language:ShaderLab 3.7%