Creating a Single texture thats repeats without stretching based on any size plane.

Hi,
Any information on how to create a shader to do this would be great.

I want to create a shader, that if I applied to a plane GameObject, the tiles would look the same, such as ceiling tiles, roof, floor or even wall tiles. I cold then change the scale, and the shader would not stretch the texture, only repeat. I want the shader to do this automatically without having to enter in tile info on the material. This way I can connect (for example) two ceiling objects in adjacent rooms and the ceiling tiles would match up given the rooms are different sizes.

screenshot is from using a tri-planar shader with the same texture for all 3 texture inputs.
The red outline is one object and green is another gameObject.

Thanks,

Here is a screenshot

I was searching for something similar. Take a look at this video :slight_smile: