Hey I'm running into the same issue - PBRSurface displays just fine, when I'm using:
occluderMaterial = try await ShaderGraphMaterial.init(
named: "/Root/Object/Occluder",
from: "Immersive",
in: realityKitContentBundle
)
But when I connect OcclusionSurface as CustomSurface it breaks and I get error:
Failed to load a shader material: materialNameNotFound
printed in the console.
I've been testing this on Apple Vision Pro.
Why is it happening am I setting something wrong in the Shader Graph, or is that a bug?
Topic:
Spatial Computing
SubTopic:
Reality Composer Pro
Tags: