For this example, we are going to use another texture. Otherwise, we wouldn't see the effect of this texture mode:
Create a new material similar to the previous one, except change the used texture to:
terr_rock6.jpg:
material MyMaterial3 { technique { pass { texture_unit { texture terr_rock6.jpg } } } }
Change the used material from
MyMaterial1
toMyMaterial3:
manual->begin("MyMaterial3", RenderOperation::OT_TRIANGLE_LIST)
Compile and run the application. You should see a quad covered in a rock texture.
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....