How to use SCNTechnique to create a “masked” portal effect in SceneKit / ARKit?
问题 I'm trying to wrap my head around how to use SCNTechnique with Scenekit. The effect I'm trying to create can easily be achieved in Unity by adding a custom shader to two materials, making objects with the "filtered" shader to only be visible when it is seen through the other shader (the portal). I've followed this tutorial to create this in Unity: https://www.youtube.com/watch?v=b9xUO0zHNXw I'm trying to achieve the same effect in SceneKit, but I'm not sure how to apply the passes. I'm