In a previous version of threejs, there was a method for setting the camera projection like this:
camera.projectionMatrix = THREE.Matrix4.makePerspective( fov, aspect, 1, 1100 );
However, I am now encountering an error:
Error: has no method 'makePerspective'
I am wondering what this method has been replaced with and how I should now call it.
Although the documentation still mentions this method, I have found it in
THREE.Matrix4.prototype.makePerspective
, but calling it from there does not work as expected.