parallax occlusion mapping in RealityKit?

I'm wondering if it's possible to do Parallax Occlusion Mapping in RealityKit? Does RK's metal shader API provide enough?

I think it would need to be able to discard fragments and thus can't be run as a deferred pass. Not sure though!

Answered by DTS Engineer in 808633022

Hello @Audulus,

Yes, it is possible!

If you are asking for iOS / macOS, you can implement this as a CustomMaterial, otherwise, you could implement a ShaderGraphMaterial (but note that this would be a very cumbersome shader graph to implement).

In any case, you should file an enhancement request using Feedback Assistant to request built-in support for this type of shading effect.

If you have a specific question about an Apple API as you implement this, I will be happy to help :)

Best regards,

Greg

Hello @Audulus,

Yes, it is possible!

If you are asking for iOS / macOS, you can implement this as a CustomMaterial, otherwise, you could implement a ShaderGraphMaterial (but note that this would be a very cumbersome shader graph to implement).

In any case, you should file an enhancement request using Feedback Assistant to request built-in support for this type of shading effect.

If you have a specific question about an Apple API as you implement this, I will be happy to help :)

Best regards,

Greg

parallax occlusion mapping in RealityKit?
 
 
Q