The problem was that a new effect was created when rendering to the rtt, but the effect was not ready right away, so the mesh was not rendered. I also added a way to modify the properties of the rtt before taking the screenshot, that way you can easily set the useCameraPostProcesses property.
Once the PR is merged, this PG will work as expected: