---
title: "custom(matrix:)"
framework: realitykit
role: symbol
role_heading: Type Method
path: "realitykit/lowlevelrenderer/camera/projection-swift.struct/custom(matrix:)"
---

# custom(matrix:)

Creates a projection using a caller-supplied matrix.

## Declaration

```swift
static func custom(matrix: simd_float4x4) -> LowLevelRenderer.Camera.Projection
```

## Parameters

- `matrix`: The column-major 4×4 matrix that transforms from view space to clip space.

## Return Value

Return Value A custom LowLevelRenderer.Camera.Projection.
