How do i create texture with border in material ?

I would like to create the texture with border in the material as shown below. I also want to change the border color and thickness with the parameter.

I tried with lerp but it’s hiding some part of the texture.

Scale UV by center may be what you are looking for. You’ll then have to make sure the border is a flat texture

Tried this way.

2 Likes