<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ModelIO",
  "identifier" : "/documentation/ModelIO/MDLMaterialTextureWrapMode/mirror",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Model I/O"
    ],
    "preciseIdentifier" : "c:@E@MDLMaterialTextureWrapMode@MDLMaterialTextureWrapModeMirror"
  },
  "title" : "MDLMaterialTextureWrapMode.mirror"
}
-->

# MDLMaterialTextureWrapMode.mirror

Sampling at texture coordinates outside the `0.0` to `1.0` range results in a mirrored tiling effect.

```
case mirror
```

## Discussion

This effect is similar to that of the [`MDLMaterialTextureWrapMode.repeat`](/documentation/ModelIO/MDLMaterialTextureWrapMode/repeat) mode, but inverts the range of fractional texture coordinate values whenever the whole part of a texture coordinate value is odd. For example, sampling at a coordinate value of `1.7` or `5.7` returns the texel color for the coordinate value of `0.3` (because `1.0 - 0.7 = 0.3`), and sampling at a coordinate value of `2.7` or `8.7` returns the texel color for the coordinate value of `0.7`. The visual effect of this mode is to repeat the texture image endlessly across a surface rendered with the texture, with every other repetition in a mirrored orientation.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)