提交 73a40705 编写于 作者: M Mr.doob

StereoCamera: Also store camera.id. See #9656.

上级 b0e4bc6a
......@@ -28,19 +28,20 @@ Object.assign( StereoCamera.prototype, {
update: ( function () {
var focus, fov, aspect, near, far, zoom;
var id, focus, fov, aspect, near, far, zoom;
var eyeRight = new Matrix4();
var eyeLeft = new Matrix4();
return function update( camera ) {
var needsUpdate = focus !== camera.focus || fov !== camera.fov ||
var needsUpdate = id !== camera.id || focus !== camera.focus || fov !== camera.fov ||
aspect !== camera.aspect * this.aspect || near !== camera.near ||
far !== camera.far || zoom !== camera.zoom;
if ( needsUpdate ) {
id = camera.id;
focus = camera.focus;
fov = camera.fov;
aspect = camera.aspect * this.aspect;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册