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