viral-viewer-2 5.2.4 → 5.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -14,9 +14,9 @@ class ViralRenderer {
|
|
|
14
14
|
logarithmicDepthBuffer: true,
|
|
15
15
|
powerPreference: "high-performance",
|
|
16
16
|
});
|
|
17
|
-
this.renderer.shadowMap.enabled = true;
|
|
18
|
-
this.renderer.shadowMap.type =
|
|
19
|
-
this.renderer.outputColorSpace =
|
|
17
|
+
// this.renderer.shadowMap.enabled = true;
|
|
18
|
+
// this.renderer.shadowMap.type = PCFSoftShadowMap;
|
|
19
|
+
// this.renderer.outputColorSpace = SRGBColorSpace;
|
|
20
20
|
this.renderer.setClearColor(0xffffff, 0);
|
|
21
21
|
this.renderer.setSize(this.viralViewerApi.targetElement.offsetWidth, this.viralViewerApi.targetElement.offsetHeight);
|
|
22
22
|
this.viralViewerApi.targetElement.appendChild(this.renderer.domElement);
|
|
@@ -33,11 +33,8 @@ class ViralRenderer {
|
|
|
33
33
|
this.viralViewerApi.viralCamera.camera) {
|
|
34
34
|
//force update without wait for next frame
|
|
35
35
|
(_a = this.viralViewerApi.viralCamera.camera) === null || _a === void 0 ? void 0 : _a.updateMatrixWorld(true);
|
|
36
|
-
|
|
37
|
-
//
|
|
38
|
-
// this.viralViewerApi.viralCamera.camera
|
|
39
|
-
// );
|
|
40
|
-
this.postProcessingRenderer.render();
|
|
36
|
+
this.renderer.render(this.viralViewerApi.viralScene.scene, this.viralViewerApi.viralCamera.camera);
|
|
37
|
+
// this.postProcessingRenderer.render();
|
|
41
38
|
if (this.viralViewerApi.viralTools.viralToolMeasure.isActivated) {
|
|
42
39
|
this.renderer.autoClear = false;
|
|
43
40
|
this.renderer.clearDepth();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viral-renderer.js","sourceRoot":"","sources":["../../../src/components/renderer/viral-renderer.ts"],"names":[],"mappings":";;;AAAA,iCAMe;AA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