<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/LowLevelRenderer/Camera/Projection-swift.struct/custom(matrix:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:19RealityCoreRenderer08LowLevelC0C6CameraV10ProjectionV6custom6matrixAGSo13simd_float4x4a_tFZ"
  },
  "title" : "custom(matrix:)"
}
-->

# custom(matrix:)

Creates a projection using a caller-supplied matrix.

```
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

A custom [`LowLevelRenderer.Camera.Projection`](/documentation/RealityKit/LowLevelRenderer/Camera/Projection-swift.struct).

---

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)