One Logo Pool Ball
RealityFoundation · IOS API REFERENCE

DirectionalLightComponent.Shadow.Cascades

struct · iOS 27.0+ · SDK 27.1

struct Cascades

Members (2)

static · iOS 27.0+

fixed

TypeScript
static fixed(count: number, bias?: number): DirectionalLightComponent_Shadow_Cascades
Swift declaration
static func fixed(_ count: Int, bias: Float = 0.0) -> DirectionalLightComponent.Shadow.Cascades

Specify a fixed number of shadow cascades to use. 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`.

get · iOS 27.0+

automatic

TypeScript
static get automatic(): DirectionalLightComponent_Shadow_Cascades
Swift declaration
static var automatic: DirectionalLightComponent.Shadow.Cascades { get }

Allow the engine to determine the optimal number of shadow cascades to use – depending on the scene and camera configuration in any given frame.

Skipped declarations

No declarations were skipped in this snapshot.

All RealityFoundation types →