This is my decision. The original comments should explain what is happening. Setup (init):
var renderer; var composer; var renderModel; var effectCopy; renderer = new THREE.WebGLRenderer({canvas: canvas});
Change the animation loop to:
Note. EffectComposer, RenderPass, ShaderPass, and CopyShader are not part of the default three.js file. You should include them in addition to three.js. At the time of writing, they can be found in the threejs project in the examples folder:
/examples/js/postprocessing/EffectComposer.js /examples/js/postprocessing/RenderPass.js /examples/js/postprocessing/ShaderPass.js /examples/js/shaders/CopyShader.js
jorgenfb
source share