Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf:rebuild camera loop,light #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

abandon888
Copy link
Member

feat:import Perf

Copy link
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
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
Member

Choose a reason for hiding this comment

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

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

Copy link
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