alternative for CustomShader in visionOS

Following the post on https://developer.apple.com/documentation/realitykit/custommaterial it's simple to use shader for materials and get uniforms and params from each vertex. However it's not available for visionOS. Any alternative to use in this case? I want to write shader to fill material by myself. (I have shader experience from web, familiar with fragment shader)

Answered by DTS Engineer in 824407022

Sounds like you'll want to consider writing your own shaders in Metal Shading Language (MSL) using the Compositor Services Framework.

Check out this sample project for details: Interacting with virtual content blended with passthrough.

Sounds like you'll want to consider writing your own shaders in Metal Shading Language (MSL) using the Compositor Services Framework.

Check out this sample project for details: Interacting with virtual content blended with passthrough.

alternative for CustomShader in visionOS
 
 
Q