If the rest position of the shading point P is used, the object space toggle should be off, as P will then already be in the desired space. Transforming P twice will lead to unexpected results.

VOP nodes