<!--
{
  "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/DirectionalLightComponent/Shadow/Cascades-swift.struct/fixed(_:bias:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation25DirectionalLightComponentV6ShadowV8CascadesV5fixed_4biasAGSi_SftFZ"
  },
  "title" : "fixed(_:bias:)"
}
-->

# fixed(_:bias:)

Specify a fixed number of shadow cascades to use.

```
static func fixed(_ count: Int, bias: Float = 0.0) -> DirectionalLightComponent.Shadow.Cascades
```

## Discussion

Accepted values are 1, 2, 3, and 4.

The optional `bias` parameter can be used to shift the cascade splits (where one cascade
ends and the next begins) closer to or farther from the camera, useful in viewing
configurations where more shadow resolution is desired near to or far from the viewer.
The valid range of this parameter is `(-1.0, 1.0)`, where `-1.0` maps the first cascade
split onto the near plane and `1.0` moves the last cascade split to the far plane. The
default value is `0.0`.

---

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)