<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ShaderGraph-Docs",
  "identifier" : "/documentation/ShaderGraph/realitykit/Camera-Index-Switch-(RealityKit)",
  "metadataVersion" : "0.1.0",
  "role" : "ShaderGraph Node",
  "symbol" : {
    "kind" : "ShaderGraph Node",
    "modules" : [
      "ShaderGraph"
    ],
    "preciseIdentifier" : "Shader_ND_realitykit_geometry_switch_cameraindex_integer"
  },
  "title" : "Camera Index Switch (RealityKit)"
}
-->

# Camera Index Switch (RealityKit)

Render different results for each eye in a stereoscopic render.

## Parameter Types

**Camera Index Switch (integer):**

|Input  |Type |
                |-------|-----|
                |`Mono` |Int32|
                |`Left` |Int32|
                |`Right`|Int32|

|Output|Type |
                |------|-----|
                |`Out` |Int32|

**Camera Index Switch (float):**

|Input  |Type |
                |-------|-----|
                |`Mono` |Float|
                |`Left` |Float|
                |`Right`|Float|

|Output|Type |
                |------|-----|
                |`Out` |Float|

**Camera Index Switch (vector4h):**

|Input  |Type    |
                |-------|--------|
                |`Mono` |Vector4h|
                |`Left` |Vector4h|
                |`Right`|Vector4h|

|Output|Type    |
                |------|--------|
                |`Out` |Vector4h|

**Camera Index Switch (vector2f):**

|Input  |Type    |
                |-------|--------|
                |`Mono` |Vector2f|
                |`Left` |Vector2f|
                |`Right`|Vector2f|

|Output|Type    |
                |------|--------|
                |`Out` |Vector2f|

**Camera Index Switch (vector4f):**

|Input  |Type    |
                |-------|--------|
                |`Mono` |Vector4f|
                |`Left` |Vector4f|
                |`Right`|Vector4f|

|Output|Type    |
                |------|--------|
                |`Out` |Vector4f|

**Camera Index Switch (color3f):**

|Input  |Type         |
                |-------|-------------|
                |`Mono` |Color3<Float>|
                |`Left` |Color3<Float>|
                |`Right`|Color3<Float>|

|Output|Type         |
                |------|-------------|
                |`Out` |Color3<Float>|

**Camera Index Switch (vector3h):**

|Input  |Type    |
                |-------|--------|
                |`Mono` |Vector3h|
                |`Left` |Vector3h|
                |`Right`|Vector3h|

|Output|Type    |
                |------|--------|
                |`Out` |Vector3h|

**Camera Index Switch (half):**

|Input  |Type|
                |-------|----|
                |`Mono` |Half|
                |`Left` |Half|
                |`Right`|Half|

|Output|Type|
                |------|----|
                |`Out` |Half|

**Camera Index Switch (vector3f):**

|Input  |Type    |
                |-------|--------|
                |`Mono` |Vector3f|
                |`Left` |Vector3f|
                |`Right`|Vector3f|

|Output|Type    |
                |------|--------|
                |`Out` |Vector3f|

**Camera Index Switch (color4f):**

|Input  |Type         |
                |-------|-------------|
                |`Mono` |Color4<Float>|
                |`Left` |Color4<Float>|
                |`Right`|Color4<Float>|

|Output|Type         |
                |------|-------------|
                |`Out` |Color4<Float>|

**Camera Index Switch (vector2h):**

|Input  |Type    |
                |-------|--------|
                |`Mono` |Vector2h|
                |`Left` |Vector2h|
                |`Right`|Vector2h|

|Output|Type    |
                |------|--------|
                |`Out` |Vector2h|

## Parameter descriptions

- `Mono`: The value to return if using a single renderer.
- `Left`: The value to return if seeing the texture through the left eye of a stereoscopic render.
- `Right`: The value to return if seeing the texture through the right eye of a stereoscopic render.

## Discussion

Use the `Camera Index Switch` node to render stereoscopic images. On most devices, this node returns its `Mono` input parameter. On Apple Vision Pro, this node outputs either `Left` or `Right`, depending on which eye the texture renders through.

---

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)