Reputation: 21
I've been working on procedural terrain generation in Unity for a while and I was wondering if there was a way to have multiple textures applied to a single mesh like tiles. Imagine a chess board with black and white areas designated on a single mesh and changed during run time. I've considered using multiple meshes but that will over-complicate another part of my program.
Upvotes: 2
Views: 1639
Reputation: 13297
If you don't want to use submeshes, you can create a custom shader that will reference both textures and switch between them using any logic you desire. Including tiles.
Upvotes: 1