<!--
{
  "availability" : [
    "iOS: 8.0.0 - 26.0.0",
    "iPadOS: 8.0.0 - 26.0.0",
    "macCatalyst: 13.1.0 - 26.0.0",
    "macOS: 10.8.0 - 26.0.0",
    "tvOS: 9.0.0 - 26.0.0",
    "visionOS: 1.0.0 - 26.0.0",
    "watchOS: 3.0.0 - 26.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SceneKit",
  "identifier" : "/documentation/SceneKit/SCNWrapMode",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "SceneKit"
    ],
    "preciseIdentifier" : "c:@E@SCNWrapMode"
  },
  "title" : "SCNWrapMode"
}
-->

# SCNWrapMode

Modes to apply to texture wrapping, used by the [`wrapT`](/documentation/SceneKit/SCNMaterialProperty/wrapT) and [`wrapS`](/documentation/SceneKit/SCNMaterialProperty/wrapS) properties.

```
enum SCNWrapMode
```

## Overview

Wrapping modes determine texture mapping behavior for cases where a material’s texture coordinates extend outside the range from `0.0` to `1.0`. For example, if you use the [`contentsTransform`](/documentation/SceneKit/SCNMaterialProperty/contentsTransform) property to shrink a texture relative to the surface of a geometry, you use the wrap mode properties to determine whether the texture repeats across the surface. The figure below shows the effect of each wrapping mode on an otherwise identical material.

![](images/com.apple.scenekit/media-2929787@2x.png)

## Topics

### Constants

[`SCNWrapModeClamp`](/documentation/SceneKit/SCNWrapMode/clamp)

Texture coordinates are clamped to the range from `0.0` to `1.0`, inclusive.

[`SCNWrapModeRepeat`](/documentation/SceneKit/SCNWrapMode/repeat)

Texture sampling uses only the fractional part of texture coordinates, passing through the range from `0.0` to (but not including) `1.0`.

[`SCNWrapModeClampToBorder`](/documentation/SceneKit/SCNWrapMode/clampToBorder)

Texture sampling uses texture colors for coordinates in the range from `0.0` to `1.0` (inclusive) and the material property’s [`borderColor`](/documentation/SceneKit/SCNMaterialProperty/borderColor) value otherwise.

[`SCNWrapModeMirror`](/documentation/SceneKit/SCNWrapMode/mirror)

Texture sampling of texture coordinates outside range from `0.0` to `1.0` should behave as if the range reverses before repeating.

[SCNClamp](/documentation/SceneKit/scnclamp)

Equivalent to [`SCNWrapMode.clamp`](/documentation/SceneKit/SCNWrapMode/clamp).

[SCNRepeat](/documentation/SceneKit/scnrepeat)

Equivalent to [`SCNWrapMode.repeat`](/documentation/SceneKit/SCNWrapMode/repeat).

[SCNClampToBorder](/documentation/SceneKit/scnclamptoborder)

Equivalent to [`SCNWrapMode.clampToBorder`](/documentation/SceneKit/SCNWrapMode/clampToBorder).

[SCNMirror](/documentation/SceneKit/scnmirror)

Equivalent to [`SCNWrapMode.mirror`](/documentation/SceneKit/SCNWrapMode/mirror).

## Relationships

### Conforms To

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Equatable`](/documentation/Swift/Equatable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Hashable`](/documentation/Swift/Hashable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

---

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)