|
@@ -310,11 +310,13 @@ export abstract class AbstractViewer {
|
|
// reposition the object to "float" in front of the user
|
|
// reposition the object to "float" in front of the user
|
|
this.sceneManager.models[0].rootMesh.position.y += this._vrModelRepositioning;
|
|
this.sceneManager.models[0].rootMesh.position.y += this._vrModelRepositioning;
|
|
this.sceneManager.models[0].rootMesh.rotationQuaternion = null;
|
|
this.sceneManager.models[0].rootMesh.rotationQuaternion = null;
|
|
-
|
|
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+ // post processing
|
|
|
|
+ if (this.sceneManager.defaultRenderingPipelineEnabled && this.sceneManager.defaultRenderingPipeline) {
|
|
|
|
+ this.sceneManager.defaultRenderingPipeline.imageProcessingEnabled = false;
|
|
|
|
+ this.sceneManager.defaultRenderingPipeline.prepare();
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
if (this.sceneManager.vrHelper) {
|
|
if (this.sceneManager.vrHelper) {
|
|
this.sceneManager.vrHelper.exitVR();
|
|
this.sceneManager.vrHelper.exitVR();
|
|
@@ -329,6 +331,12 @@ export abstract class AbstractViewer {
|
|
this.sceneManager.environmentHelper.ground && this.sceneManager.environmentHelper.ground.scaling.scaleInPlace(1 / this._vrScale);
|
|
this.sceneManager.environmentHelper.ground && this.sceneManager.environmentHelper.ground.scaling.scaleInPlace(1 / this._vrScale);
|
|
this.sceneManager.environmentHelper.skybox && this.sceneManager.environmentHelper.skybox.scaling.scaleInPlace(1 / this._vrScale);
|
|
this.sceneManager.environmentHelper.skybox && this.sceneManager.environmentHelper.skybox.scaling.scaleInPlace(1 / this._vrScale);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ // post processing
|
|
|
|
+ if (this.sceneManager.defaultRenderingPipelineEnabled && this.sceneManager.defaultRenderingPipeline) {
|
|
|
|
+ this.sceneManager.defaultRenderingPipeline.imageProcessingEnabled = true;
|
|
|
|
+ this.sceneManager.defaultRenderingPipeline.prepare();
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|