<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "ShaderGraph-Docs",
  "identifier" : "/documentation/ShaderGraph/realitykit",
  "metadataVersion" : "0.1.0",
  "role" : "ShaderGraph Node Group",
  "symbol" : {
    "kind" : "ShaderGraph Node Group",
    "modules" : [
      "ShaderGraph"
    ],
    "preciseIdentifier" : "realitykit"
  },
  "title" : "RealityKit"
}
-->

# RealityKit

Add RealityKit surfaces or textures to your material and access and manipulate scene geometry.

## Overview

Incorporate RealityKit-specific content into your graph and modify that content visually. You can use geometry modifiers to change the vertices of your models. You can also create and configure RealityKit surfaces and textures and use them in your graph.

## Topics

### Nodes

[`Unlit Surface (RealityKit)`](/documentation/ShaderGraph/realitykit/Unlit-Surface-(RealityKit))

A surface shader that defines properties for a RealityKit Unlit material.

[`PBR Surface (RealityKit)`](/documentation/ShaderGraph/realitykit/PBR-Surface-(RealityKit))

A surface shader that defines properties for a RealityKit Physically Based Rendering material.

[`Hair Surface (RealityKit)`](/documentation/ShaderGraph/realitykit/Hair-Surface-(RealityKit))

A surface shader that defines properties for a RealityKit Hair material.

[`Occlusion Surface (RealityKit)`](/documentation/ShaderGraph/realitykit/Occlusion-Surface-(RealityKit))

A surface shader that defines properties for a RealityKit Occlusion material that does not receive dynamic lighting.

[`Shadow Receiving Occlusion Surface (RealityKit)`](/documentation/ShaderGraph/realitykit/Shadow-Receiving-Occlusion-Surface-(RealityKit))

A surface shader that defines properties for a RealityKit Occlusion material that receives dynamic lighting.

[`View Direction (RealityKit)`](/documentation/ShaderGraph/realitykit/View-Direction-(RealityKit))

A vector from a position in the scene to the view reference point.

[`Camera Position (RealityKit)`](/documentation/ShaderGraph/realitykit/Camera-Position-(RealityKit))

The position of the camera in the scene.

[`Geometry Modifier Model To World (RealityKit)`](/documentation/ShaderGraph/realitykit/Geometry-Modifier-Model-To-World-(RealityKit))

The model-to-world transformation Matrix4x4 (Float).

[`Geometry Modifier World To Model (RealityKit)`](/documentation/ShaderGraph/realitykit/Geometry-Modifier-World-To-Model-(RealityKit))

The world-to-model transformation Matrix4x4 (Float).

[`Geometry Modifier Normal To World (RealityKit)`](/documentation/ShaderGraph/realitykit/Geometry-Modifier-Normal-To-World-(RealityKit))

The normal-to-world transformation Matrix3x3 (Float).

[`Geometry Modifier Model To View (RealityKit)`](/documentation/ShaderGraph/realitykit/Geometry-Modifier-Model-To-View-(RealityKit))

The model-to-view transformation Matrix4x4 (Float).

[`Geometry Modifier View To Projection (RealityKit)`](/documentation/ShaderGraph/realitykit/Geometry-Modifier-View-To-Projection-(RealityKit))

The view-to-projection transformation Matrix4x4 (Float).

[`Geometry Modifier Projection To View (RealityKit)`](/documentation/ShaderGraph/realitykit/Geometry-Modifier-Projection-To-View-(RealityKit))

The projection-to-view transformation Matrix4x4 (Float).

[`Geometry Modifier Vertex ID (RealityKit)`](/documentation/ShaderGraph/realitykit/Geometry-Modifier-Vertex-ID-(RealityKit))

The integer index of the vertex.

[`Surface Model To World (RealityKit)`](/documentation/ShaderGraph/realitykit/Surface-Model-To-World-(RealityKit))

The model-to-world transformation Matrix4x4 (Float).

[`Surface Model To View (RealityKit)`](/documentation/ShaderGraph/realitykit/Surface-Model-To-View-(RealityKit))

The model-to-view transformation Matrix4x4 (Float).

[`Surface World To View (RealityKit)`](/documentation/ShaderGraph/realitykit/Surface-World-To-View-(RealityKit))

The world-to-view transformation Matrix4x4 (Float).

[`Surface View To Projection (RealityKit)`](/documentation/ShaderGraph/realitykit/Surface-View-To-Projection-(RealityKit))

The view-to-projection transformation Matrix4x4 (Float).

[`Surface Projection To View (RealityKit)`](/documentation/ShaderGraph/realitykit/Surface-Projection-To-View-(RealityKit))

The projection-to-view transformation Matrix4x4 (Float).

[`Surface Screen Position (RealityKit)`](/documentation/ShaderGraph/realitykit/Surface-Screen-Position-(RealityKit))

The coordinates of the currently-processed data in screen space.

[`Surface View Direction (RealityKit)`](/documentation/ShaderGraph/realitykit/Surface-View-Direction-(RealityKit))

A vector from a position in the scene to the view reference point.

[`Environment Radiance (RealityKit)`](/documentation/ShaderGraph/realitykit/Environment-Radiance-(RealityKit))

Returns an environment’s diffuse and specular radiance value based on real-world environment, and an IBL map that is either a developer-provided map or a default map.

[`Hover State (RealityKit)`](/documentation/ShaderGraph/realitykit/Hover-State-(RealityKit))

Hover State to define custom hover effects.

[`Blurred Background (RealityKit)`](/documentation/ShaderGraph/realitykit/Blurred-Background-(RealityKit))

Returns a sample of the blurred background.

[`Geometry Modifier (RealityKit)`](/documentation/ShaderGraph/realitykit/Geometry-Modifier-(RealityKit))

A function that manipulates the location of a model’s vertices, run once per vertex.

[`Camera Index Switch (RealityKit)`](/documentation/ShaderGraph/realitykit/Camera-Index-Switch-(RealityKit))

Render different results for each eye in a stereoscopic render.

[`Image 2D (RealityKit)`](/documentation/ShaderGraph/realitykit/Image-2D-(RealityKit))

A texture with RealityKit properties.

[`Image 2D LOD (RealityKit)`](/documentation/ShaderGraph/realitykit/Image-2D-LOD-(RealityKit))

A texture with RealityKit properties and a explicit level of detail.

[`Image 2D Gradient (RealityKit)`](/documentation/ShaderGraph/realitykit/Image-2D-Gradient-(RealityKit))

A texture with RealityKit properties and a specified LOD gradient.

[`Image 2D Pixel (RealityKit)`](/documentation/ShaderGraph/realitykit/Image-2D-Pixel-(RealityKit))

A texture with RealityKit properties and pixel texture coordinates.

[`Image 2D LOD Pixel (RealityKit)`](/documentation/ShaderGraph/realitykit/Image-2D-LOD-Pixel-(RealityKit))

A texture with RealityKit properties, a explicit level of detail, and pixel texture coordinates.

[`Image 2D Gradient Pixel (RealityKit)`](/documentation/ShaderGraph/realitykit/Image-2D-Gradient-Pixel-(RealityKit))

A texture with RealityKit properties, a specified LOD gradient, and pixel texture coordinates.

[`Cube Image (RealityKit)`](/documentation/ShaderGraph/realitykit/Cube-Image-(RealityKit))

A texturecube with RealityKit properties.

[`Cube Image LOD (RealityKit)`](/documentation/ShaderGraph/realitykit/Cube-Image-LOD-(RealityKit))

A texturecube with RealityKit properties and a explicit level of detail.

[`Cube Image Gradient (RealityKit)`](/documentation/ShaderGraph/realitykit/Cube-Image-Gradient-(RealityKit))

A texturecube with RealityKit properties and a specified LOD gradient.

[`Image 2D Read (RealityKit)`](/documentation/ShaderGraph/realitykit/Image-2D-Read-(RealityKit))

Direct texture read.

[`Image 3D (RealityKit)`](/documentation/ShaderGraph/realitykit/Image-3D-(RealityKit))

A texture with RealityKit properties.

[`Image 3D LOD (RealityKit)`](/documentation/ShaderGraph/realitykit/Image-3D-LOD-(RealityKit))

A texture with RealityKit properties.

[`Image 3D Gradient (RealityKit)`](/documentation/ShaderGraph/realitykit/Image-3D-Gradient-(RealityKit))

A texture with RealityKit properties.

[`Image 3D Pixel (RealityKit)`](/documentation/ShaderGraph/realitykit/Image-3D-Pixel-(RealityKit))

A texture with RealityKit properties.

[`Image 3D LOD Pixel (RealityKit)`](/documentation/ShaderGraph/realitykit/Image-3D-LOD-Pixel-(RealityKit))

A texture with RealityKit properties.

[`Image 3D Gradient Pixel (RealityKit)`](/documentation/ShaderGraph/realitykit/Image-3D-Gradient-Pixel-(RealityKit))

A texture with RealityKit properties.

[`Image 2D Array (RealityKit)`](/documentation/ShaderGraph/realitykit/Image-2D-Array-(RealityKit))

A texture with RealityKit properties.

[`Image 2D Array LOD (RealityKit)`](/documentation/ShaderGraph/realitykit/Image-2D-Array-LOD-(RealityKit))

A texture with RealityKit properties.

[`Image 2D Array Gradient (RealityKit)`](/documentation/ShaderGraph/realitykit/Image-2D-Array-Gradient-(RealityKit))

A texture with RealityKit properties.

[`Image 2D Array Pixel (RealityKit)`](/documentation/ShaderGraph/realitykit/Image-2D-Array-Pixel-(RealityKit))

A texture with RealityKit properties.

[`Image 2D Array LOD Pixel (RealityKit)`](/documentation/ShaderGraph/realitykit/Image-2D-Array-LOD-Pixel-(RealityKit))

A texture with RealityKit properties.

[`Image 2D Array Gradient Pixel (RealityKit)`](/documentation/ShaderGraph/realitykit/Image-2D-Array-Gradient-Pixel-(RealityKit))

A texture with RealityKit properties.

[`Image 2D Array Read (RealityKit)`](/documentation/ShaderGraph/realitykit/Image-2D-Array-Read-(RealityKit))

Direct texture read.

[`Image 3D Read (RealityKit)`](/documentation/ShaderGraph/realitykit/Image-3D-Read-(RealityKit))

Direct texture read.

[`Screen-Space X Partial Derivative (RealityKit)`](/documentation/ShaderGraph/realitykit/Screen-Space-X-Partial-Derivative-(RealityKit))

Returns a high-precision partial derivative of the specified value with respect to the screen space X coordinate.

[`Screen-Space Y Partial Derivative (RealityKit)`](/documentation/ShaderGraph/realitykit/Screen-Space-Y-Partial-Derivative-(RealityKit))

Returns a high-precision partial derivative of the specified value with respect to the screen space Y coordinate.

[`Absolute Derivatives Sum (RealityKit)`](/documentation/ShaderGraph/realitykit/Absolute-Derivatives-Sum-(RealityKit))

Returns the sum of the absolute derivatives in X and Y using local differencing for p; that is, fabs(dfdx(p)) + fabs(dfdy(p)).

[`Power Positive (RealityKit)`](/documentation/ShaderGraph/realitykit/Power-Positive-(RealityKit))

Computes X to the power of Y, where X is >= 0.

[`Round Integral (RealityKit)`](/documentation/ShaderGraph/realitykit/Round-Integral-(RealityKit))

Rounds X to integral value using round ties to even rounding mode in floating-point format.

[`Reflection Diffuse (RealityKit)`](/documentation/ShaderGraph/realitykit/Reflection-Diffuse-(RealityKit))

Diffuse component of reflection.

[`Reflection Specular (RealityKit)`](/documentation/ShaderGraph/realitykit/Reflection-Specular-(RealityKit))

Specular component of reflection.

[`Fortran Difference and Minimum (RealityKit)`](/documentation/ShaderGraph/realitykit/Fortran-Difference-and-Minimum-(RealityKit))

Returns X – Y if X > Y, or +0 if X <= Y.

[`Is Finite (RealityKit)`](/documentation/ShaderGraph/realitykit/Is-Finite-(RealityKit))

Returns true if the incoming value is finite.

[`Is Infinite (RealityKit)`](/documentation/ShaderGraph/realitykit/Is-Infinite-(RealityKit))

Returns true if the incoming value is infinite.

[`Is Not a Number (RealityKit)`](/documentation/ShaderGraph/realitykit/Is-Not-a-Number-(RealityKit))

Returns true if the incoming value is a not a number (NaN).

[`Is Normal (RealityKit)`](/documentation/ShaderGraph/realitykit/Is-Normal-(RealityKit))

Test if the incoming value is a normalized floating-point value.

[`Is Ordered (RealityKit)`](/documentation/ShaderGraph/realitykit/Is-Ordered-(RealityKit))

Test if arguments are ordered.

[`Is Unordered (RealityKit)`](/documentation/ShaderGraph/realitykit/Is-Unordered-(RealityKit))

Test if arguments are unordered.

[`Sign Bit (RealityKit)`](/documentation/ShaderGraph/realitykit/Sign-Bit-(RealityKit))

Tests for sign bit.

### Subscripts

[`Multiply 24 (RealityKit)`](/documentation/ShaderGraph/realitykit/Multiply-24-(RealityKit))

Multiplies two 24-bit integer values X and Y and returns the 32-bit integer result.

[`Multiply Add 24 (RealityKit)`](/documentation/ShaderGraph/realitykit/Multiply-Add-24-(RealityKit))

Multiplies two 24-bit integer values X and Y and returns the 32-bit integer result with 32-bit Z value added.

---

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)