WebARonTango icon indicating copy to clipboard operation
WebARonTango copied to clipboard

use .makeFrustum in THREE.WebAR.resizeVRSeeThroughCamera

Open jeromeetienne opened this issue 6 years ago • 1 comments

this function is obsolete and trigger a console.warn() from three.js.

THREE.Matrix4: .makeFrustum() has been removed. Use .makePerspective( left, right, top, bottom, near, far ) instead.

in THREE.WebAR.js, in THREE.WebAR.resizeVRSeeThroughCamera, change this code to remove the warning

 // old code - disabled because triggering warning
 // camera.projectionMatrix.makeFrustum(left, right, bottom, top, camera.near, camera.far);

 camera.projectionMatrix.makePerspective(left, right, top, bottom, camera.near, camera.far);

jeromeetienne avatar Jul 29 '17 16:07 jeromeetienne

i should do a pull request when time allow

jeromeetienne avatar Jul 29 '17 16:07 jeromeetienne