Just to further clarify, custom materials are not actually supported in Vision OS, so you would need to do this through a shader graph. It is possible to run custom metal shaders through a compositor layer, but that doesn't integrate with RealityKit and requires a custom renderer.