I have a little tile editor with procedurally generated mesh. Everything works fine with single texture, but i would like to be able to paint multiple layers on each tile. What it should look like:
I paint a grass on a tile by applying grass uv. Next I paint some flowers (as a second layer) on this grass, which I would like to paint from different texture. Then on another tile I paint the very same grass, but as a second layer now I can add, let’s say, tree, which is located in the same texture as flowers. I want be able to remove these layers independently, so they can’t be “hard painted” with texture SetColors.
I was wondering how is something like this achieved? First idea that came to my mind was creating meshes that would be offset by some small value (so every next layer would be on top of the previous one), but this doesn’t seem like a good solution. I’ve seen similar effect in vertex painting (but I’m quite sure that my case is way way easier than vertex painting). Any ideas appreciated.
Offtopic: As I’m constantly learning all that graphics stuff, I was thinking about messing around with that vertex painting, but couldn’t find any good source of knowledge on this topic. Does anyone know good one? Or could point me in right direction?