viral-viewer-2 4.8.9 → 4.9.0
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.
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PostProcessingRenderer = void 0;
|
|
4
|
-
const n8ao_1 = require("../../threejs-addon/n8ao/n8ao");
|
|
5
4
|
const EffectComposer_1 = require("three/examples/jsm/postprocessing/EffectComposer");
|
|
6
|
-
const SMAAPass_1 = require("three/examples/jsm/postprocessing/SMAAPass");
|
|
7
5
|
const post_processing_1 = require("../../threejs-addon/n8ao/post-processing");
|
|
8
6
|
class PostProcessingRenderer {
|
|
9
7
|
constructor(renderer) {
|
|
@@ -19,15 +17,15 @@ class PostProcessingRenderer {
|
|
|
19
17
|
initN8aoPass(scene, camera) {
|
|
20
18
|
this.renderPass = new post_processing_1.RenderPass(scene, camera);
|
|
21
19
|
this.composer.addPass(this.renderPass);
|
|
22
|
-
this.na8oPass = new
|
|
23
|
-
this.na8oPass.configuration.denoiseRadius = 12;
|
|
24
|
-
this.na8oPass.configuration.intensity = 5;
|
|
25
|
-
//reduce resolution for performance purpose
|
|
26
|
-
this.na8oPass.configuration.halfRes = true;
|
|
27
|
-
this.composer.addPass(this.na8oPass);
|
|
28
|
-
this.composer.removePass(this.na8oPass);
|
|
29
|
-
let smaaPass = new
|
|
30
|
-
this.composer.addPass(smaaPass);
|
|
20
|
+
// this.na8oPass = new N8AOPass(scene, camera);
|
|
21
|
+
// this.na8oPass.configuration.denoiseRadius = 12;
|
|
22
|
+
// this.na8oPass.configuration.intensity = 5;
|
|
23
|
+
// //reduce resolution for performance purpose
|
|
24
|
+
// this.na8oPass.configuration.halfRes = true;
|
|
25
|
+
// this.composer.addPass(this.na8oPass);
|
|
26
|
+
// this.composer.removePass(this.na8oPass);
|
|
27
|
+
// let smaaPass = new SMAAPass(window.innerWidth, window.innerHeight);
|
|
28
|
+
// this.composer.addPass(smaaPass);
|
|
31
29
|
}
|
|
32
30
|
}
|
|
33
31
|
exports.PostProcessingRenderer = PostProcessingRenderer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"post-processing-renderer.js","sourceRoot":"","sources":["../../../src/components/post-processing/post-processing-renderer.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"post-processing-renderer.js","sourceRoot":"","sources":["../../../src/components/post-processing/post-processing-renderer.ts"],"names":[],"mappings":";;;AAEA,qFAAkF;AAElF,8EAKkD;AAClD,MAAa,sBAAsB;IAKjC,YAAoB,QAAuB;QAAvB,aAAQ,GAAR,QAAQ,CAAe;QAF3C,aAAQ,GAAoB,IAAI,CAAC;QACjC,aAAQ,GAAoB,IAAI,CAAC;QAE/B,IAAI,CAAC,QAAQ,GAAG,IAAI,+BAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAClD,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC;IAC/D,CAAC;IAEM,MAAM;QACX,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;IACzB,CAAC;IAEM,YAAY,CAAC,KAAY,EAAE,MAAc;QAC9C,IAAI,CAAC,UAAU,GAAG,IAAI,4BAAU,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;QAChD,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAEvC,+CAA+C;QAC/C,kDAAkD;QAClD,6CAA6C;QAC7C,8CAA8C;QAC9C,8CAA8C;QAE9C,wCAAwC;QACxC,2CAA2C;QAC3C,sEAAsE;QACtE,mCAAmC;IACrC,CAAC;CACF;AA7BD,wDA6BC"}
|