For this example, we are going to use another texture. Otherwise, we wouldn't see the effect of this texture mode:
terr_rock6.jpg:
material MyMaterial3 { technique { pass { texture_unit { texture terr_rock6.jpg } } } }
MyMaterial1
to MyMaterial3:
manual->begin("MyMaterial3", RenderOperation::OT_TRIANGLE_LIST)
This time, the quad seems like it's covered in one single texture. We don't see any obvious repetitions like we did with the plant texture. The reason for this is that, like we already know, the texture wrapping mode repeats. The texture was created in such a way that at the left end of the texture, the texture is started again with its right side and the same is true for the lower end. This kind of texture is called seamless. The texture we used was prepared so that the left and right side fit perfectly together. The same goes for the upper and lower part of the texture. If this wasn't the case, we would see instances where the texture is repeated.
18.191.237.201