commit
0600a730e9
1 changed files with 1 additions and 1 deletions
|
|
@ -323,7 +323,7 @@ class StarField {
|
|||
|
||||
const clock = new THREE.Clock();
|
||||
this.points.onBeforeRender = (renderer, scene, camera) => {
|
||||
this.points!.position.copy(camera.position)
|
||||
this.points?.position.copy?.(camera.position)
|
||||
material.uniforms.time.value = clock.getElapsedTime() * speed
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue