You don't necessarily need a mask, just use "fmod" on your texture coordinates, with the correct value for the y tile. for example- fmod(UV, float2(1.0,0.5)); This will repeat your texture on Y depending on the limit you feed it - with the above pseudo code it'll repeat from 0 to 0.5, and then repeat that section…