viral-viewer-2 6.6.8 → 6.6.9
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.
|
@@ -20,6 +20,8 @@ export declare class PostProcessingRenderer {
|
|
|
20
20
|
initn8aoPassPass(scene: Scene, camera: Camera): void;
|
|
21
21
|
enableN8AOPass(): void;
|
|
22
22
|
disableN8AOPass(): void;
|
|
23
|
+
enableN8AOPassScreenSpaceRadius(): void;
|
|
24
|
+
disableN8AOPassScreenSpaceRadius(): void;
|
|
23
25
|
initSMAAPass(): void;
|
|
24
26
|
initSSAAPass(scene: Scene, camera: Camera): void;
|
|
25
27
|
initFXAAPass(): void;
|
package/dist/index.mjs
CHANGED
|
@@ -23747,7 +23747,7 @@ class G2 {
|
|
|
23747
23747
|
this.camera = new mn(
|
|
23748
23748
|
60,
|
|
23749
23749
|
this.targetElement.clientWidth / this.targetElement.clientHeight,
|
|
23750
|
-
1,
|
|
23750
|
+
0.1,
|
|
23751
23751
|
2e3
|
|
23752
23752
|
), this.camera.position.set(0, 0, 2), this.viralViewerApi.options && this.viralViewerApi.options.cameraZUp && (this.camera.up.set(0, 0, 1), this.camera.position.set(100, 100, 0)), Ls.install({ THREE: Y2 }), this.cameraControls = new Ls(
|
|
23753
23753
|
this.camera,
|
|
@@ -29503,6 +29503,12 @@ class lC {
|
|
|
29503
29503
|
disableN8AOPass() {
|
|
29504
29504
|
this.n8aoPass && this.n8aoPass.setDisplayMode("No AO");
|
|
29505
29505
|
}
|
|
29506
|
+
enableN8AOPassScreenSpaceRadius() {
|
|
29507
|
+
this.n8aoPass && (this.n8aoPass.configuration.screenSpaceRadius = !0);
|
|
29508
|
+
}
|
|
29509
|
+
disableN8AOPassScreenSpaceRadius() {
|
|
29510
|
+
this.n8aoPass && (this.n8aoPass.configuration.screenSpaceRadius = !1);
|
|
29511
|
+
}
|
|
29506
29512
|
//#endregion
|
|
29507
29513
|
//#region Anti Aliases Passes
|
|
29508
29514
|
initSMAAPass() {
|
|
@@ -40931,10 +40937,10 @@ class OC {
|
|
|
40931
40937
|
// );
|
|
40932
40938
|
// }
|
|
40933
40939
|
// const buffer = new Float32Array(verticePoints);
|
|
40934
|
-
// const geometry = new
|
|
40935
|
-
// geometry.setAttribute("position", new
|
|
40936
|
-
// const childMesh = new
|
|
40937
|
-
// const childMesh = new
|
|
40940
|
+
// const geometry = new BufferGeometry();
|
|
40941
|
+
// geometry.setAttribute("position", new BufferAttribute(buffer, 3));
|
|
40942
|
+
// const childMesh = new Mesh(geometry, material);
|
|
40943
|
+
// const childMesh = new Mesh(geometry, material);
|
|
40938
40944
|
// this.viralViewerApi.viralScene.mainModel.add(childMesh);
|
|
40939
40945
|
// }
|
|
40940
40946
|
getVerticePoints(e, t, i = []) {
|
|
@@ -41036,7 +41042,7 @@ class OC {
|
|
|
41036
41042
|
z[1] - 1
|
|
41037
41043
|
);
|
|
41038
41044
|
if (F) {
|
|
41039
|
-
this._loadElementStandaloneWorker.initial(F)
|
|
41045
|
+
this._loadElementStandaloneWorker.initial(F);
|
|
41040
41046
|
let k = m.Data[1].length, H = 0;
|
|
41041
41047
|
await this.getElements(
|
|
41042
41048
|
t,
|
|
@@ -43046,6 +43052,12 @@ class jR {
|
|
|
43046
43052
|
disableAmbientOcclusion() {
|
|
43047
43053
|
this.viralViewerApi.viralRenderer.postProcessingRenderer.disableN8AOPass(), this.viralViewerApi.viralRenderer.render();
|
|
43048
43054
|
}
|
|
43055
|
+
enableAmbientOcclusionScreenSpaceRadius() {
|
|
43056
|
+
this.viralViewerApi.viralRenderer.postProcessingRenderer.enableN8AOPassScreenSpaceRadius(), this.viralViewerApi.viralRenderer.render();
|
|
43057
|
+
}
|
|
43058
|
+
disableAmbientOcclusionScreenSpaceRadius() {
|
|
43059
|
+
this.viralViewerApi.viralRenderer.postProcessingRenderer.disableN8AOPassScreenSpaceRadius(), this.viralViewerApi.viralRenderer.render();
|
|
43060
|
+
}
|
|
43049
43061
|
//#endregion
|
|
43050
43062
|
}
|
|
43051
43063
|
function KR() {
|