auto-git:
[change] src/rendering/world-background-renderer.ts
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import {
|
||||
BackSide,
|
||||
Camera,
|
||||
Color,
|
||||
Group,
|
||||
Mesh,
|
||||
MeshBasicMaterial,
|
||||
PerspectiveCamera,
|
||||
Scene,
|
||||
ShaderMaterial,
|
||||
SphereGeometry,
|
||||
@@ -246,7 +246,7 @@ export class WorldBackgroundRenderer {
|
||||
this.overlayMesh.visible = overlayOpacity > NIGHT_BACKGROUND_EPSILON;
|
||||
}
|
||||
|
||||
syncToCamera(camera: PerspectiveCamera) {
|
||||
syncToCamera(camera: Camera) {
|
||||
this.anchor.position.copy(camera.position);
|
||||
}
|
||||
|
||||
@@ -256,4 +256,4 @@ export class WorldBackgroundRenderer {
|
||||
this.imageMaterial.dispose();
|
||||
this.overlayMaterial.dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user