I am attempting to achieve a fading effect on the drawing buffer while leaving trails of drawn objects, rather than clearing it every frame. It's a relatively simple effect that can be achieved in 2D using this code snippet: http://jsfiddle.net/faRW3/1/
// draw stuff
c.fillStyle = "red";
c.fillRect(Math.sin( time )*50+70, Math.cos( time )*50+70, 20, 20);
// fade background
c.fillStyle = "rgba(255, 255, 255, 0.25)";
c.fillRect(0, 0, canvas.width, canvas.height);
However, I have been unable to replicate this effect in WebGL, particularly when using Three.js. I have tried setting preserveDrawingBuffer to true and experimenting with the Effect Composer, but without success.
If anyone has any advice on how to achieve this effect in WebGL, I would greatly appreciate it.