I’m creating a FPS in a Minecraft style environment and I’m having a problem with the repetition of materials on the boxes.
I manage to repeat my material in the right way for textures representing only one side of a block. Here is an example: Babylon.js Playground
As you can see, the material replicates well depending on the width, height and depth of the box.
Now I wish I could do the same thing with a “multi face” texture. But I don’t really have an idea of how to do it. How to make the texture repeat correctly (the right face in the right place), depending on the size of the box?
Here is a second playground with a multi face texture: https://playground.babylonjs.com/#ICLXQ8#175
I hope to have been understandable, thank you in advance.