Updating Node's geometry at runtime

Hello,


I have a vertex shader that does some deformation that involves rotation of the whole geometry. Everything works great. After finishing the deformation I cannot interact with this node, since now it is located in a different orinetation. As I understand, I need to tell the host node that geometry was updated by shader.

My question is: how to update node's geometry after vertex shader has finished deforming the node's surface?


It seems like the applied shader transformation and the one that SCNNode has are different. How to sync those transformations?