---
title: depthPass
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/modelsortgroup/depthpass-swift.property
---

# depthPass

A depth pass that controls when the renderer draws the depth of model entities in the group relative to their color.

## Declaration

```swift
var depthPass: ModelSortGroup.DepthPass? { get }
```

## Discussion

Discussion You can tell the renderer to draw the depth and color together by setting the value to nil.
