<!--
{
  "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/SCNHitTestResult/textureCoordinates(withMappingChannel:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SceneKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SCNHitTestResult(im)textureCoordinatesWithMappingChannel:"
  },
  "title" : "textureCoordinates(withMappingChannel:)"
}
-->

# textureCoordinates(withMappingChannel:)

Returns the texture coordinates at the point of intersection for the specified texture mapping channel.

```
func textureCoordinates(withMappingChannel channel: Int) -> CGPoint
```

## Parameters

`channel`

The index of the mapping channel in which to look up texture coordinates.

## Return Value

The texture coordinates at the point of intersection, or <doc://com.apple.documentation/documentation/CoreGraphics/CGPointZero> if the geometry does not have a texture coordinate source for the specified channel.

## Discussion

An [`SCNGeometry`](/documentation/SceneKit/SCNGeometry) object can contain multiple sources of texture coordinates, or texture mapping channels. (With multiple channels, you can map texture images for different material properties in different ways.) To use the texture coordinates of a hit-test result, specify which texture coordinate source to look up coordinates in.

For example, to add “scorch marks” to a game character hit by a laser, you might modify a texture image mapped to the [`multiply`](/documentation/SceneKit/SCNMaterial/multiply) property of the geometry’s material. Use the [`mappingChannel`](/documentation/SceneKit/SCNMaterialProperty/mappingChannel) index from that material property as the `channel` parameter when calling [`textureCoordinates(withMappingChannel:)`](/documentation/SceneKit/SCNHitTestResult/textureCoordinates(withMappingChannel:)) to ensure that you modify the correct location in the texture image.

---

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)