>>4208188so for example we have a wall with coordinates (0, 0, 0) and (160, 64, 64) and a 64x64 texture. It will be sampled on Y and Z sides normally, however, on X coordinate 64 the texture will be cut off, so we need to create 2 new vertices at the coordinate 128, however then 160 -128 = 32 relates to 64 as 1/2, we then we create two new vertices again but draw only half of the texture.