I would like to use shaders for simple simulations like these.
The basic idea is to manipulate a texture with a shader and then feed it back into the shader
for the next frame. So the shaders effect can accumulate over time.
So my question is, is there a way to access the output of a shader and feed it back in as a uniform sampler2D?
Ideally without copying or leaving the GPU memory.