<!--
{
  "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/ModelSortGroup/init(depthPass:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation14ModelSortGroupV9depthPassA2C05DepthG0OSg_tcfc"
  },
  "title" : "init(depthPass:)"
}
-->

# init(depthPass:)

Creates a model sort group with an optional depth pass.

```
init(depthPass: ModelSortGroup.DepthPass? = nil)
```

## Parameters

`depthPass`

A depth pass instance that tells the group how to
draw the model entity’s color relative to its depth.

---

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)