How to toggle preserveDrawingBuffer in three.js?
问题 Basically, I want the setup where I could go to preserveDrawingBuffer=true, render the scene once, grab the screenshot, and go back. However, this poses two problems: there is no method in renderer to dispose all the buffers, canvas goes black if I do renderer = new THREE.WebGLRenderer({canvas:renderer.domElement,preserveDrawingBuffer:true}); How do I do this properly? EDIT: I did not find the way to toggle this, so I had to clone scene and create second renderer instead to make the