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