jeromeetienne / threex.htmlmixer

three.js extension to seemlessly integrate dom elements in your webgl

Home Page:http://jeromeetienne.github.io/threex.htmlmixer/examples/demo.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why do we need to copy the webgl camera?

trusktr opened this issue · comments

//////////////////////////////////////////////////////////////////////////////////
// Handle Camera
//////////////////////////////////////////////////////////////////////////////////
var cssCamera = new THREE.PerspectiveCamera(camera.fov, camera.aspect, camera.near*cssFactor, camera.far*cssFactor);
updateFcts.push(function(){
cssCamera.quaternion.copy(camera.quaternion)
cssCamera.position
.copy(camera.position)
.multiplyScalar(cssFactor)
})

?