<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/PhysicallyBasedMaterial/bentNormal-swift.property",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation23PhysicallyBasedMaterialV10bentNormalAC04BentG0Vvp"
  },
  "title" : "bentNormal"
}
-->

# bentNormal

The bent normal map for the entity.

```
var bentNormal: PhysicallyBasedMaterial.BentNormal { get set }
```

## Discussion

*Bent normal mapping* describes the average direction of least occlusion at each surface point.
This is used to modulate lighting intensity and direction of the material. Use with ambient occlusion
to improve the accuracy of indirect diffuse lighting. You can generate bent normals maps from
a 3D software package.

The following code loads a bent normal map texture and uses it to set this property:

```swift
if let bentNormalResource = try? TextureResource.load(named:"entity_bentNormalMap") {
    let bentNormalMap = PhysicallyBasedMaterial.Texture(bentNormalResource)
    material.bentNormal = .init(texture: bentNormalMap)
}
```

---

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)