I have a procedurally generated static mesh that is just a flat plane. Its size changes at runtime. I have created a material that just draws a stripe pattern across it. However I would like to have a border around the edge of the plane so the stripe pattern doesn’t go all the way to the edge. By border, I don’t mean like s single pixel border or something like that, I mean a nice chunky border of perhaps a solid color or maybe a different pattern, not sure yet. I’m just stuck on how to define this border area and draw something different in it other than the stripes. Can anyone help me how to do something like this?
if your plane has UVs you can use those for that border. will just have to adjust the thickness of the border depending on the mesh scale.
Yes it does have UVs. At the moment, I’m just repeating them across the entire plane. I could change the code so they are different, but how would that help exactly. I’m not really sure.
what i was referring to with the above was using something like this:
https://dl.dropboxusercontent.com/u/107682595/Unreal/UVBorderMask.png
to create a mask with which you can lerp between your stripe pattern and something else.