<!--
{
  "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/Audio/Material/scattering(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation5AudioO8MaterialV10scatteringyAeC10ScatteringVF"
  },
  "title" : "scattering(_:)"
}
-->

# scattering(_:)

Creates a new audio material with the provided scattering data.

```
func scattering(_ data: Audio.Scattering) -> Audio.Material
```

## Discussion

Example usage:

```
let material: Audio.Material = .wood.scattering([500: 0.3, 1000: 0.4, 4000: 0.5])
```

---

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)