---
title: SCNWrapMode.clampToBorder
framework: scenekit
role: symbol
role_heading: Case
path: scenekit/scnwrapmode/clamptoborder
---

# 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 value otherwise.

## Declaration

```swift
case clampToBorder
```

## Mentioned in

SCNClampToBorder

## Discussion

Discussion Texture sampling in areas whose texture coordinates would fall outside this range uses the borderColor property instead of texel colors from the texture image.

## See Also

### Constants

- [SCNWrapMode.clamp](scenekit/scnwrapmode/clamp.md)
- [SCNWrapMode.repeat](scenekit/scnwrapmode/repeat.md)
- [SCNWrapMode.mirror](scenekit/scnwrapmode/mirror.md)
- [SCNClamp](scenekit/scnclamp.md)
- [SCNRepeat](scenekit/scnrepeat.md)
- [SCNClampToBorder](scenekit/scnclamptoborder.md)
- [SCNMirror](scenekit/scnmirror.md)
