我不知道为什么它不起作用。 我补充说:
var effect = new THREE.StereoEffect(renderer);
effect.eyeSeparation = 10;
effect.setSize(window.innerWidth, window.innerHeight);
console.log("aspect is " + window.innerWidth /window.innerHeight);
进入函数animate:
effect.render(scene, camera);