<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/TextureResource/Format/NormalEncoding",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation15TextureResourceC6FormatV14NormalEncodingO"
  },
  "title" : "TextureResource.Format.NormalEncoding"
}
-->

# TextureResource.Format.NormalEncoding

A profile that specifies the interpretation of pixel values as a normal.

```
enum NormalEncoding
```

## Topics

### Normal profiles

[`case wy`](/documentation/RealityKit/TextureResource/Format/NormalEncoding/wy)

A normal map with the X and Y components of a surface normal in the tangent space of the surface
that RealityKit encodes in the alpha and green channels of a texture.

[`case xy`](/documentation/RealityKit/TextureResource/Format/NormalEncoding/xy)

A normal map with the X and Y components of a surface normal in the tangent space of the surface
that RealityKit encodes in the red and green channels of a texture.

## Relationships

### Conforms To

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

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

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

[`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)