@xviewer.js/postprocessing 1.0.0-alpha.6 → 1.0.0-alpha.7
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.
- package/dist/main.js +38 -37
- package/dist/main.js.map +1 -1
- package/dist/module.js +38 -37
- package/dist/module.js.map +1 -1
- package/package.json +2 -2
- package/types/EffectComposerPlugin.d.ts +0 -1
- package/types/getVelocityDepthNormalPass.d.ts +3 -0
- package/types/index.d.ts +1 -1
package/dist/module.js
CHANGED
|
@@ -64,35 +64,12 @@ class EffectComposerPlugin extends Plugin {
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
74
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
75
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
76
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
77
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
78
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
79
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
80
|
-
***************************************************************************** */
|
|
81
|
-
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
function __decorate(decorators, target, key, desc) {
|
|
85
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
86
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
87
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
88
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
67
|
+
function _ts_decorate$4(decorators, target, key, desc) {
|
|
68
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
69
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
70
|
+
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
71
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
89
72
|
}
|
|
90
|
-
|
|
91
|
-
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
92
|
-
var e = new Error(message);
|
|
93
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
94
|
-
};
|
|
95
|
-
|
|
96
73
|
class PassPlugin extends Plugin {
|
|
97
74
|
get enable() {
|
|
98
75
|
return this.pass.enabled;
|
|
@@ -107,10 +84,16 @@ class PassPlugin extends Plugin {
|
|
|
107
84
|
this.composer.activePass(this.pass, v);
|
|
108
85
|
}
|
|
109
86
|
}
|
|
110
|
-
|
|
87
|
+
_ts_decorate$4([
|
|
111
88
|
property
|
|
112
89
|
], PassPlugin.prototype, "enable", null);
|
|
113
90
|
|
|
91
|
+
function _ts_decorate$3(decorators, target, key, desc) {
|
|
92
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
93
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
94
|
+
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
95
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
96
|
+
}
|
|
114
97
|
class ToneMappingPlugin extends PassPlugin {
|
|
115
98
|
get mode() {
|
|
116
99
|
return this.effect.mode;
|
|
@@ -129,12 +112,18 @@ class ToneMappingPlugin extends PassPlugin {
|
|
|
129
112
|
};
|
|
130
113
|
}
|
|
131
114
|
}
|
|
132
|
-
|
|
115
|
+
_ts_decorate$3([
|
|
133
116
|
property({
|
|
134
117
|
value: ToneMappingMode
|
|
135
118
|
})
|
|
136
119
|
], ToneMappingPlugin.prototype, "mode", null);
|
|
137
120
|
|
|
121
|
+
function _ts_decorate$2(decorators, target, key, desc) {
|
|
122
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
123
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
124
|
+
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
125
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
126
|
+
}
|
|
138
127
|
class BloomPlugin extends PassPlugin {
|
|
139
128
|
get intensity() {
|
|
140
129
|
return this.effect.intensity;
|
|
@@ -168,21 +157,21 @@ class BloomPlugin extends PassPlugin {
|
|
|
168
157
|
};
|
|
169
158
|
}
|
|
170
159
|
}
|
|
171
|
-
|
|
160
|
+
_ts_decorate$2([
|
|
172
161
|
property({
|
|
173
162
|
min: 0,
|
|
174
163
|
max: 2,
|
|
175
164
|
step: 0.01
|
|
176
165
|
})
|
|
177
166
|
], BloomPlugin.prototype, "intensity", null);
|
|
178
|
-
|
|
167
|
+
_ts_decorate$2([
|
|
179
168
|
property({
|
|
180
169
|
min: 0,
|
|
181
170
|
max: 10,
|
|
182
171
|
step: 0.01
|
|
183
172
|
})
|
|
184
173
|
], BloomPlugin.prototype, "luminanceThreshold", null);
|
|
185
|
-
|
|
174
|
+
_ts_decorate$2([
|
|
186
175
|
property({
|
|
187
176
|
min: 0,
|
|
188
177
|
max: 10,
|
|
@@ -202,6 +191,12 @@ class FXAAPlugin extends PassPlugin {
|
|
|
202
191
|
}
|
|
203
192
|
}
|
|
204
193
|
|
|
194
|
+
function _ts_decorate$1(decorators, target, key, desc) {
|
|
195
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
196
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
197
|
+
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
198
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
199
|
+
}
|
|
205
200
|
class SMAAPlugin extends PassPlugin {
|
|
206
201
|
get preset() {
|
|
207
202
|
return this._preset;
|
|
@@ -236,22 +231,28 @@ class SMAAPlugin extends PassPlugin {
|
|
|
236
231
|
};
|
|
237
232
|
}
|
|
238
233
|
}
|
|
239
|
-
|
|
234
|
+
_ts_decorate$1([
|
|
240
235
|
property({
|
|
241
236
|
value: SMAAPreset
|
|
242
237
|
})
|
|
243
238
|
], SMAAPlugin.prototype, "preset", null);
|
|
244
|
-
|
|
239
|
+
_ts_decorate$1([
|
|
245
240
|
property({
|
|
246
241
|
value: EdgeDetectionMode
|
|
247
242
|
})
|
|
248
243
|
], SMAAPlugin.prototype, "edgeDetectionMode", null);
|
|
249
|
-
|
|
244
|
+
_ts_decorate$1([
|
|
250
245
|
property({
|
|
251
246
|
value: PredicationMode
|
|
252
247
|
})
|
|
253
248
|
], SMAAPlugin.prototype, "predicationMode", null);
|
|
254
249
|
|
|
250
|
+
function _ts_decorate(decorators, target, key, desc) {
|
|
251
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
252
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
253
|
+
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
254
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
255
|
+
}
|
|
255
256
|
class MSAAPlugin extends Plugin {
|
|
256
257
|
get enable() {
|
|
257
258
|
return this.composer.multisampling > 0;
|
|
@@ -275,7 +276,7 @@ class MSAAPlugin extends Plugin {
|
|
|
275
276
|
};
|
|
276
277
|
}
|
|
277
278
|
}
|
|
278
|
-
|
|
279
|
+
_ts_decorate([
|
|
279
280
|
property
|
|
280
281
|
], MSAAPlugin.prototype, "enable", null);
|
|
281
282
|
|