I'm currently working a mapping tool that will generate a custom map for my game. I've got the mesh generation working perfectly but I can't seen to figure out how to correctly UV map my faces to get the textures consistent. I've got the UV map working on the floor perfectly just by using the respective coordinate pair but the walls don't seem to work the same.
Does anyone know the proper way to map a UV map to a vertical wall?
Here are some examples of my current walls:
I'm currently using this for the UV mapping of the walls
currentMesh.uvs.Add(new Vector2(0, 0));
currentMesh.uvs.Add(new Vector2(1, 0));
currentMesh.uvs.Add(new Vector2(0, 1));
currentMesh.uvs.Add(new Vector2(1, 1));