在旧版本的threejs中,您可以这样做:
camera.projectionMatrix = THREE.Matrix4.makePerspective( fov, aspect, 1, 1100 );
这现在抛出一个错误:
has no method 'makePerspective'
这被什么取代了,我怎么称呼它?
文档仍然指出该方法存在,我在 中找到了它THREE.Matrix4.prototype.makePerspective
,但是如果我在那里调用它,它就不起作用。