SceneKit “masking” SCNNode using another SCNNode

Does anyone know how to make a mask in SceneKit?
similar in UIKit like -> layer.mask = CALayer().

I would like something like this -> node.mask = SCNNode()

Looks like SceneKit does not support such functionality by default.

I use 2D space.

I will be glad to any advice or example. Thank you for your help!

In SpriteKit is SKCropNode
SceneKit “masking” SCNNode using another SCNNode
 
 
Q