You can take a look at this example: https://threejs.org/examples/#webgl_postprocessing_advanced
Generally, you render to a offscreen texture (not to the actual screen) and then use that as input texture for any other effect/primitive/whatever that you need to.