Too complicated and doesn't work for me, it says error it must be a mesh. Tough it was a scene poste effect to be more effective, but...
You need to create any mesh and set it as the node for rendering the scene. The code works by rendering the scene onto a mesh that’s projected in front of the camera.