node.setTexPos(anothernode.getPos()) ?

This sample uses texture projection, it may help:
[Shaderless Shadows)