Is there a way to create our own shader inside RealityKit or a way to access the shader's source code to alter it? We are looking for a way to use each channel of a texture for each channel of the material (red channel to roughness, green channel for metallic etc...).Does this option exists or as I wrote above, should we create our own shader?
RealityKit - ability to add own fragment shader
Hello,
This functionality is not available in RealityKit, you should file an enhancement request for this functionality using Feedback Assistant.
If this functionality is critical to your app then you may want to consider SceneKit, which gives you complete control of the vertex and fragment shaders used to render an object via SCNProgram, or you could extend SceneKit's shading with shader modifiers (see https://developer.apple.com/documentation/scenekit/scnshadable).
This functionality is not available in RealityKit, you should file an enhancement request for this functionality using Feedback Assistant.
If this functionality is critical to your app then you may want to consider SceneKit, which gives you complete control of the vertex and fragment shaders used to render an object via SCNProgram, or you could extend SceneKit's shading with shader modifiers (see https://developer.apple.com/documentation/scenekit/scnshadable).
In RealityKit 2.0 you can build your own fragment shader.