I would like to render some sprites into a buffer, and then use that buffer in the shader of a different sprite. (What I'm trying to essentially do is create a custom blending mode, where some sprites are blended with a background image, using a custom shader.) Is this even possible with SpriteKit?
SKEffectNode can be used to render sprites efficiently into a buffer. However, there doesn't seem to be any way of using said buffer in a shader.
(You can add a shader to the SKEffectNode object, but that's not the same thing. That will affect only the contents of SKEffectNode itself. I need to access the buffer in the shader of another node, so that the buffer is blended with that other node using my own custom shader.)