<!--
{
  "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",
  "identifier" : "/documentation/ShaderGraph/realitykit/Image-2D-Read-(RealityKit)",
  "metadataVersion" : "0.1.0",
  "role" : "ShaderGraph Node",
  "symbol" : {
    "kind" : "ShaderGraph Node",
    "modules" : [
      "ShaderGraph"
    ],
    "preciseIdentifier" : "Shader_ND_RealityKitTextureRead_vector4"
  },
  "title" : "Image 2D Read (RealityKit)"
}
-->

# Image 2D Read (RealityKit)

Direct texture read.

## Parameter Types

**Image 2D Read (vector4f):**

|Input    |Type     |
                |---------|---------|
                |`File`   |AssetPath|
                |`Default`|Vector4f |
                |`X`      |Int32    |
                |`Y`      |Int32    |
                |`Lod`    |Int32    |

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

**Image 2D Read (color4):**

|Input    |Type         |
                |---------|-------------|
                |`File`   |AssetPath    |
                |`Default`|Color4<Float>|
                |`X`      |Int32        |
                |`Y`      |Int32        |
                |`Lod`    |Int32        |

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

## Parameter description

- `File`: The image file to use for the texture.
- `Default`: The default value to use if the ​`File`​ parameter fails to resolve.
- `X`: The X position of the pixel that the node reads.
- Y: The Y position of the pixel that the node reads.
- `Lod`: The specific LOD level that the node samples from.

## Discussion

The `Image 2D Read` node performs a straight read from a 2D texture without a sampler. Use this node if you have a texture that’s just data.

---

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)