-
Notifications
You must be signed in to change notification settings - Fork 3
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
base: main
Are you sure you want to change the base?
Conversation
feat:import Perf
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
好的
// 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); | ||
// }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不需要的代码自己删掉就行,不需要以注释的方式保留
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不需要的代码自己删掉就行,不需要以注释的方式保留
了解
feat:import Perf