Time for action — using the mirror mode

For the mirror mode, we again create a new material:

  1. Create a new material called MyMaterial5 using the previous material as a template.
  2. Change the texture mode to mirror:
    tex_address_mode mirror
    
  3. Change the texture to the leaf texture that we used before:
    texture leaf.png
    
  4. Compile and run the application, and you should see the leaf mirrored four times.
    Time for action — using the mirror mode

What just happened?

We again changed the texture mode – this time to mirroring. Mirror is a simple, yet effective, mode when used for texturing big areas like a stone wall. Each time the texture coordinates are bigger than 1, the texture gets flipped and then used ...

Get Ogre 3D 1.7 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.