Skip to content

perf:rebuild camera loop,light#3

Open
abandon888 wants to merge 1 commit into
NCUHOME:mainfrom
abandon888:main
Open

perf:rebuild camera loop,light#3
abandon888 wants to merge 1 commit into
NCUHOME:mainfrom
abandon888:main

Conversation

@abandon888

Copy link
Copy Markdown
Member

feat:import Perf

Comment thread package-lock.json

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

原项目使用了 yarn(.lock),说明你也应该使用 yarn,不应该再引入一个 pack-lock.json

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

原项目使用了 yarn(.lock),说明你也应该使用 yarn,不应该再引入一个 pack-lock.json

好的

Comment on lines +36 to +47
// const alpha = 0.1;
// state.camera.position.lerp(
// new THREE.Vector3(camPos.x, camPos.y, camPos.z),
// alpha
// );
// lookAtPos.lerp(new THREE.Vector3(lookAt.x, lookAt.y, lookAt.z), alpha);
// state.camera.lookAt(
// new THREE.Vector3(lookAtPos.x, lookAtPos.y, lookAtPos.z)
// );
// state.camera.updateProjectionMatrix();
// if (state.clock.getElapsedTime() > 1.2) setAnimation(false);
// });

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不需要的代码自己删掉就行,不需要以注释的方式保留

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不需要的代码自己删掉就行,不需要以注释的方式保留

了解

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants