<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ShaderGraph-Docs",
  "identifier" : "/documentation/ShaderGraph/realitykit/Image-2D-Array-Gradient-(RealityKit)",
  "metadataVersion" : "0.1.0",
  "role" : "ShaderGraph Node",
  "symbol" : {
    "kind" : "ShaderGraph Node",
    "modules" : [
      "ShaderGraph"
    ],
    "preciseIdentifier" : "Shader_ND_RealityKitTexture2DArrayGradient_vector4"
  },
  "title" : "Image 2D Array Gradient (RealityKit)"
}
-->

# Image 2D Array Gradient (RealityKit)

A texture with RealityKit properties.

## Overview

Level of detail gradient

## Parameter Types

**Image 2D Array Gradient (vector4f):**

|Input                   |Type     |
                |------------------------|---------|
                |`File`                  |AssetPath|
                |`U Wrap Mode`           |String   |
                |`V Wrap Mode`           |String   |
                |`Border Color`          |String   |
                |`Mag Filter`            |String   |
                |`Min Filter`            |String   |
                |`Mip Filter`            |String   |
                |`Max Anisotropy`        |Int32    |
                |`Max Lod Clamp`         |Float    |
                |`Min Lod Clamp`         |Float    |
                |`Default`               |Vector4f |
                |`Texture Coordinates`   |Vector2f |
                |`Index`                 |Int32    |
                |`Use MaterialX V Origin`|Bool     |
                |`Dynamic Min Lod Clamp` |Float    |
                |`Gradient D Pdx`        |Vector2f |
                |`Gradient D Pdy`        |Vector2f |
                |`Offset`                |Integer2 |

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

**Image 2D Array Gradient (color4):**

|Input                   |Type         |
                |------------------------|-------------|
                |`File`                  |AssetPath    |
                |`U Wrap Mode`           |String       |
                |`V Wrap Mode`           |String       |
                |`Border Color`          |String       |
                |`Mag Filter`            |String       |
                |`Min Filter`            |String       |
                |`Mip Filter`            |String       |
                |`Max Anisotropy`        |Int32        |
                |`Max Lod Clamp`         |Float        |
                |`Min Lod Clamp`         |Float        |
                |`Default`               |Color4<Float>|
                |`Texture Coordinates`   |Vector2f     |
                |`Index`                 |Int32        |
                |`Use MaterialX V Origin`|Bool         |
                |`Dynamic Min Lod Clamp` |Float        |
                |`Gradient D Pdx`        |Vector2f     |
                |`Gradient D Pdy`        |Vector2f     |
                |`Offset`                |Integer2     |

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

**Image 2D Array Gradient (color3):**

|Input                   |Type         |
                |------------------------|-------------|
                |`File`                  |AssetPath    |
                |`U Wrap Mode`           |String       |
                |`V Wrap Mode`           |String       |
                |`Border Color`          |String       |
                |`Mag Filter`            |String       |
                |`Min Filter`            |String       |
                |`Mip Filter`            |String       |
                |`Max Anisotropy`        |Int32        |
                |`Max Lod Clamp`         |Float        |
                |`Min Lod Clamp`         |Float        |
                |`Default`               |Color3<Float>|
                |`Texture Coordinates`   |Vector2f     |
                |`Index`                 |Int32        |
                |`Use MaterialX V Origin`|Bool         |
                |`Dynamic Min Lod Clamp` |Float        |
                |`Gradient D Pdx`        |Vector2f     |
                |`Gradient D Pdy`        |Vector2f     |
                |`Offset`                |Integer2     |

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

> Important: This node requires a device with a <doc://com.apple.documentation/documentation/Metal/MTLGPUFamily/apple3> or later GPU and may not be available on certain devices. To determine GPU feature support at runtime, see <doc://com.apple.documentation/documentation/Metal/detecting-gpu-features-and-metal-software-versions>.

---

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)