|
|
@@ -1260,9 +1260,7 @@ function onSessionEnd() {
|
|
|
|
|
|
// restore framebuffer/rendering state
|
|
|
|
|
|
- renderer.backend.setXRTarget( null );
|
|
|
- renderer.setOutputRenderTarget( null );
|
|
|
- renderer.setRenderTarget( null );
|
|
|
+ renderer.XRResetState();
|
|
|
|
|
|
this._session = null;
|
|
|
this._xrRenderTarget = null;
|
|
|
@@ -1300,6 +1298,8 @@ function onSessionEnd() {
|
|
|
|
|
|
layer.plane.material = layer.material;
|
|
|
layer.material.map = layer.renderTarget.texture;
|
|
|
+ layer.material.map.offset.y = 1;
|
|
|
+ layer.material.map.repeat.y = - 1;
|
|
|
delete layer.xrlayer;
|
|
|
|
|
|
}
|
|
|
@@ -1312,7 +1312,6 @@ function onSessionEnd() {
|
|
|
this._useMultiview = false;
|
|
|
|
|
|
renderer._animation.stop();
|
|
|
-
|
|
|
renderer._animation.setAnimationLoop( this._currentAnimationLoop );
|
|
|
renderer._animation.setContext( this._currentAnimationContext );
|
|
|
renderer._animation.start();
|