I want modders to be able to add new images to my texture. Since each modder is working with their own .png, I'd like to combine a bunch of .png files into one texture for my mesh.
I was thinking I could do something like load each .png into an Image and then save the image as a byte array, then concatenate the byte arrays and load them into one giant image with Image.create_from_data().
But I was wondering if there is a better way.
Heres the way I'm loading my texture now
I'm setting the texture albedo to a .png.
However, is it possible I can use a .tres file to load multiple images as one texture?
I'm just not really sure what .tres files are...
I suppose another option would be to pass each .png to the shader as an array of textures and then somehow update the UV coordinates for each .png in the array? Not really sure how to do that either...