Skip to content

Materials ProPart of the Pro plan and up ​

Custom materials change how a surface looks. You create them in the Materials tab (next to Events), independently of any object, then apply them per object. Because they're standalone, one material can be reused across many objects.

Creating and applying ​

  1. In the Materials tab, choose New material and pick a kind (below).
  2. On an object, open Appearance → Material overrides, then Add reference to apply a material (or create a new one from there).
  3. You can apply several materials to one object, and remove a reference without deleting the material itself.

Material target – when applied, you can target First model, All models, or selected material slots, so a material can affect only part of a model (e.g. just the rims of a car, or the glowing ring of a suit).

Creating a new material – the kind picker with Unlit, Video, Occlusion, Custom Shaders, and MaterialX – Shader Graph (Preset is coming soon)Creating a new material – the kind picker.

Material kinds ​

  • Physically Based – responds to scene lighting. Each channel takes a texture and, where it has one, a value or colour: Base Color with a tint, Metallic, Roughness, Normal, Ambient Occlusion, Emissive Color with a colour and an intensity, Specular, Clearcoat, and opacity. Any texture slot can also show a texture from Library > Textures.
  • Unlit – doesn't respond to scene lighting (no metalness/roughness). Set a texture or a colour tint, optional tone mapping (matches output to the scene), and opacity (with an optional opacity texture).
  • Video – a video texture. Pick the video asset, adjust its audio, and set loop / autoplay. Supports stereoscopic/spatial video and HTTP Live Streaming (HLS) (via right-click → manual URL). With UV mapping it can cover a whole model or just part of it (e.g. a curved plane that wraps around the user).
  • Occlusion – invisible; hides whatever is rendered behind it. Great for walk-in portals, or for blocking out real buildings so virtual objects can collide with them (give the occluder physics). Options: receive shadows, read depth. (On Mac it previews as black; black renders as transparent in AR.)
  • Custom Shaders – your own Metal-based shaders. Load from the asset library, or use live editing (point at a shader file on your Mac and see edits instantly – a live shader preview). Options include the surface shader function (a dropdown when the file has several), a geometry modifier function, and a lighting model – Lit (realistic shading that responds to scene lighting), Unlit (ignores lighting, drawing at constant brightness from its colours and textures), or Clearcoat (Lit plus a glossy clear top layer, like car paint) – plus Reads Original Material (gives the shader each part's original textures and values to read) and control over opacity.
  • Transmission – glass, water or ice: it refracts what is behind it. Set the Index of Refraction (1.33 is water, 1.5 is glass), Roughness for frosting, a Tint, and Lit for the scene's highlights and reflections, with Specular and Clearcoat on top. Thickness and Absorption Distance are shares of the object's largest side, so the look holds at any size. Absorption Color is the colour light takes on as it travels through the volume. Dispersion splits light into its colours like a prism, and Distortion, Distortion Scale and Distortion Speed warp it like gel or uneven glass. It refracts on iPhone, iPad and Mac. On Apple Vision Pro it draws tinted and frosted, without refraction.
  • MaterialX – Shader Graph – a ShaderGraph material authored in Reality Composer Pro and imported. Also supports asset-library or live-editing (a USDZ on your Mac).

An Unlit material – base colour texture and tint, tone mapping, opacity, and the shared rendering optionsAn Unlit material.

A Video material with the clip playing in the viewport – video asset, autoplay, loops, and audio volumeA Video material, playing in the viewport.

An Occlusion material – invisible, with receive-shadows and read-depth optionsAn Occlusion material.

Create a MaterialX – Shader Graph material and apply it to an object through Material overrides.

Platform support

A Custom Shaders material runs on Apple Vision Pro and the web only when its shader can be converted for them; when a platform can't run the chosen shader, Limited Compatibility appears beside it, and clicking it lists each platform with the reason. New Shader makes a material shader from starter code, uses it for the material and opens its code in Library > Shaders; Edit Shader opens the chosen shader's code. Older shaders written before the Shaders library run on iOS and macOS only. (The Preset material kind is shown as Coming Soon.)

Custom Shaders in Live Editing mode – edit the shader file and the object recolors instantly on save.

A custom shader file can define a surface shader (sets a surface's colour and properties) and a geometry modifier (moves vertices). The editor's surface shader function and geometry modifier function pickers choose which function in the file to use.

Example: a custom shader (surface shader + geometry modifier). This draws a UV gradient as the emissive colour and adds a subtle, time-based wiggle.

cpp
#include <metal_stdlib>
#include <RealityKit/RealityKit.h>
using namespace metal;

// Surface shader: sets the surface colour and properties.
[[stitchable]]
void helloWorldSurfaceShader(realitykit::surface_parameters params) {
    float2 uv = params.geometry().uv0();
    half3 color = half3(1.0 - uv.y, 0.2, uv.y); // gradient, top to bottom
    params.surface().set_emissive_color(color);
}

// Geometry modifier: moves vertices. Here, a subtle sine-wave wiggle over time.
[[stitchable]]
void helloWorldGeometryModifier(realitykit::geometry_parameters params) {
    float3 position = params.geometry().model_position();
    float3 normal = params.geometry().normal();
    float time = params.uniforms().time();

    float amplitude = 0.02; // wiggle strength
    float frequency = 6.0;  // wave density
    float speed = 4.0;      // animation speed
    float displacement = amplitude * sin(position.x * frequency + time * speed);
    params.geometry().set_model_position_offset(position + normal * displacement);
}

Choosing a material inside a file ​

A single asset (a USDZ or ShaderGraph file) can hold several materials. Pick the one you want by its Path – the material prim's path inside the file (e.g. /Root/MyMaterial). When Scenery can list the file's materials you choose from a dropdown; otherwise paste the path, which you can copy from Reality Composer Pro via Copy Object Path.

Reference a specific material inside a multi-material file by pasting its object path.

Shared rendering options ​

Most material kinds share these:

  • Render as wireframe – draw only the mesh's edges.
  • Read depth – when on, the material does a depth test, so it's hidden behind closer depth-writing objects; when off, it always draws regardless of what's in front (draw-order groups still apply).
  • Write depth – the material writes to the depth buffer, so other objects test against it.
  • Face culling – each surface of a model has an outer and an inner side, and only one is drawn (the other is left invisible, which saves work). Back (default) draws the outer side – right for solid objects, whose insides you never see. Front draws the inner side instead, so the object looks hollow or inside-out. None draws both sides – use it for thin, flat things like a plane or sheet that should be visible from either side.

The six usable kinds are Physically Based, Unlit, Video, Occlusion, Custom Shaders, and MaterialX. Preset is Coming Soon.

Lit uses physically-based shading; Unlit applies no lighting; Clearcoat adds a clearcoat layer over PBR.