1

I'm trying to make the renderer write on top of the previous frame. If I understand the context of autoClear correct, renderer.autoClear = false; should make this possible, however I can't seem to make it work.

Here is a codepen example: http://codepen.io/anon/pen/ifLEz?editors=001

renderer.autoClear = false;

If I'm missing a point, feel free to fork it and paste the solution :)

gman
  • 100,619
  • 31
  • 269
  • 393
Mia
  • 6,220
  • 12
  • 47
  • 81

1 Answers1

3

Use

renderer = new THREE.WebGLRenderer({antialias: true, preserveDrawingBuffer: true});
gaitat
  • 12,449
  • 4
  • 52
  • 76