Combining Textures (2D)

In a 2D game using simple squares of planes

How to combine several textures of a single Atlas

for instance
1216886--49823--$multi.jpg

in order to get that =>
1216886--49824--$single.jpg

without using several layers of plane meshes.

I know how to use UVs to set the texture of each square but i don’t know how to combine several textures on the same square.

no idea ?

I only see two possibilities:

a) use several planes layered over each other
b) combine the specific regions of the atlas texture to a unique texture

You stated that you do not want to use a), but depending on your needs it may be the better solution. Basically with a) you got to render more, but planes with sprites on it are dead cheap. With b) you only need to render one texture BUT you need to create a new texture for every combination of character and equipment, which is both heavy on CPU and memory.

Maybe you can use another uvs (which will use same texture) and use some shader for combining it.

Tell me if i’m right : i may change the shader in a way it uses uv1 for a second texture, then combine both textures, right ?
But this way i would be limited to 2 textures ? (or 3 if i also use uv2)

Yes something like this. You could use only 2 UVs (because of unity limitation); for more “textures” you could use tangents for holding additional UVs.

Hey!
Look at this question I asked, might help you.
http://answers.unity3d.com/questions/436871/random-2d-face-generator.html