|
@@ -229,8 +229,10 @@ export class VideoDome extends TransformNode {
|
|
// in half-dome mode the uScale should be double of 360 videos
|
|
// in half-dome mode the uScale should be double of 360 videos
|
|
// Use 0.99999 to boost perf by not switching program
|
|
// Use 0.99999 to boost perf by not switching program
|
|
this._videoTexture.uScale = this._halfDome ? 0.99999 : 0.5;
|
|
this._videoTexture.uScale = this._halfDome ? 0.99999 : 0.5;
|
|
|
|
+ const rightOffset = this._halfDome ? 0.0 : 0.5;
|
|
|
|
+ const leftOffset = this._halfDome ? 0.5 : 0.0;
|
|
this._onBeforeCameraRenderObserver = this._scene.onBeforeCameraRenderObservable.add((camera) => {
|
|
this._onBeforeCameraRenderObserver = this._scene.onBeforeCameraRenderObservable.add((camera) => {
|
|
- this._videoTexture.uOffset = camera.isRightCamera ? 0.5 : 0.0;
|
|
|
|
|
|
+ this._videoTexture.uOffset = camera.isRightCamera ? rightOffset : leftOffset;
|
|
});
|
|
});
|
|
break;
|
|
break;
|
|
case VideoDome.MODE_TOPBOTTOM:
|
|
case VideoDome.MODE_TOPBOTTOM:
|