Three.js StereoEffect

时间:2017-11-02 21:34:56

标签: javascript three.js

我不知道为什么它不起作用。 我补充说:

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);

I've prepared an example in codepen

1 个答案:

答案 0 :(得分:0)

我使用enter image description here来弄清楚我的情况,结果:

我在里面添加了一些代码,比如;

var mouseX = 0, mouseY = 0;
var windowHalfX = window.innerWidth / 2;
var windowHalfY = window.innerHeight / 2;

step curves without shading