babylonjs-procedural-textures 6.7.0 → 6.8.1
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/babylon.brickProceduralTexture.js +387 -359
- package/babylon.brickProceduralTexture.js.map +1 -1
- package/babylon.brickProceduralTexture.min.js.map +1 -1
- package/babylon.cloudProceduralTexture.js +387 -359
- package/babylon.cloudProceduralTexture.js.map +1 -1
- package/babylon.cloudProceduralTexture.min.js.map +1 -1
- package/babylon.fireProceduralTexture.js +391 -363
- package/babylon.fireProceduralTexture.js.map +1 -1
- package/babylon.fireProceduralTexture.min.js.map +1 -1
- package/babylon.grassProceduralTexture.js +382 -354
- package/babylon.grassProceduralTexture.js.map +1 -1
- package/babylon.grassProceduralTexture.min.js.map +1 -1
- package/babylon.marbleProceduralTexture.js +386 -358
- package/babylon.marbleProceduralTexture.js.map +1 -1
- package/babylon.marbleProceduralTexture.min.js.map +1 -1
- package/babylon.normalMapProceduralTexture.js +379 -351
- package/babylon.normalMapProceduralTexture.js.map +1 -1
- package/babylon.normalMapProceduralTexture.min.js.map +1 -1
- package/babylon.perlinNoiseProceduralTexture.js +383 -355
- package/babylon.perlinNoiseProceduralTexture.js.map +1 -1
- package/babylon.perlinNoiseProceduralTexture.min.js.map +1 -1
- package/babylon.roadProceduralTexture.js +380 -352
- package/babylon.roadProceduralTexture.js.map +1 -1
- package/babylon.roadProceduralTexture.min.js.map +1 -1
- package/babylon.starfieldProceduralTexture.js +399 -371
- package/babylon.starfieldProceduralTexture.js.map +1 -1
- package/babylon.starfieldProceduralTexture.min.js.map +1 -1
- package/babylon.woodProceduralTexture.js +382 -354
- package/babylon.woodProceduralTexture.js.map +1 -1
- package/babylon.woodProceduralTexture.min.js.map +1 -1
- package/babylonjs.proceduralTextures.js +591 -572
- package/babylonjs.proceduralTextures.js.map +1 -1
- package/babylonjs.proceduralTextures.min.js.map +1 -1
- package/package.json +2 -4
|
@@ -12,341 +12,6 @@ return /******/ (() => { // webpackBootstrap
|
|
|
12
12
|
/******/ "use strict";
|
|
13
13
|
/******/ var __webpack_modules__ = ({
|
|
14
14
|
|
|
15
|
-
/***/ "../../../../node_modules/tslib/tslib.es6.js":
|
|
16
|
-
/*!***************************************************!*\
|
|
17
|
-
!*** ../../../../node_modules/tslib/tslib.es6.js ***!
|
|
18
|
-
\***************************************************/
|
|
19
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
20
|
-
|
|
21
|
-
__webpack_require__.r(__webpack_exports__);
|
|
22
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
23
|
-
/* harmony export */ "__assign": () => (/* binding */ __assign),
|
|
24
|
-
/* harmony export */ "__asyncDelegator": () => (/* binding */ __asyncDelegator),
|
|
25
|
-
/* harmony export */ "__asyncGenerator": () => (/* binding */ __asyncGenerator),
|
|
26
|
-
/* harmony export */ "__asyncValues": () => (/* binding */ __asyncValues),
|
|
27
|
-
/* harmony export */ "__await": () => (/* binding */ __await),
|
|
28
|
-
/* harmony export */ "__awaiter": () => (/* binding */ __awaiter),
|
|
29
|
-
/* harmony export */ "__classPrivateFieldGet": () => (/* binding */ __classPrivateFieldGet),
|
|
30
|
-
/* harmony export */ "__classPrivateFieldIn": () => (/* binding */ __classPrivateFieldIn),
|
|
31
|
-
/* harmony export */ "__classPrivateFieldSet": () => (/* binding */ __classPrivateFieldSet),
|
|
32
|
-
/* harmony export */ "__createBinding": () => (/* binding */ __createBinding),
|
|
33
|
-
/* harmony export */ "__decorate": () => (/* binding */ __decorate),
|
|
34
|
-
/* harmony export */ "__esDecorate": () => (/* binding */ __esDecorate),
|
|
35
|
-
/* harmony export */ "__exportStar": () => (/* binding */ __exportStar),
|
|
36
|
-
/* harmony export */ "__extends": () => (/* binding */ __extends),
|
|
37
|
-
/* harmony export */ "__generator": () => (/* binding */ __generator),
|
|
38
|
-
/* harmony export */ "__importDefault": () => (/* binding */ __importDefault),
|
|
39
|
-
/* harmony export */ "__importStar": () => (/* binding */ __importStar),
|
|
40
|
-
/* harmony export */ "__makeTemplateObject": () => (/* binding */ __makeTemplateObject),
|
|
41
|
-
/* harmony export */ "__metadata": () => (/* binding */ __metadata),
|
|
42
|
-
/* harmony export */ "__param": () => (/* binding */ __param),
|
|
43
|
-
/* harmony export */ "__propKey": () => (/* binding */ __propKey),
|
|
44
|
-
/* harmony export */ "__read": () => (/* binding */ __read),
|
|
45
|
-
/* harmony export */ "__rest": () => (/* binding */ __rest),
|
|
46
|
-
/* harmony export */ "__runInitializers": () => (/* binding */ __runInitializers),
|
|
47
|
-
/* harmony export */ "__setFunctionName": () => (/* binding */ __setFunctionName),
|
|
48
|
-
/* harmony export */ "__spread": () => (/* binding */ __spread),
|
|
49
|
-
/* harmony export */ "__spreadArray": () => (/* binding */ __spreadArray),
|
|
50
|
-
/* harmony export */ "__spreadArrays": () => (/* binding */ __spreadArrays),
|
|
51
|
-
/* harmony export */ "__values": () => (/* binding */ __values)
|
|
52
|
-
/* harmony export */ });
|
|
53
|
-
/******************************************************************************
|
|
54
|
-
Copyright (c) Microsoft Corporation.
|
|
55
|
-
|
|
56
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
57
|
-
purpose with or without fee is hereby granted.
|
|
58
|
-
|
|
59
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
60
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
61
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
62
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
63
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
64
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
65
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
66
|
-
***************************************************************************** */
|
|
67
|
-
/* global Reflect, Promise */
|
|
68
|
-
|
|
69
|
-
var extendStatics = function(d, b) {
|
|
70
|
-
extendStatics = Object.setPrototypeOf ||
|
|
71
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
72
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
73
|
-
return extendStatics(d, b);
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
function __extends(d, b) {
|
|
77
|
-
if (typeof b !== "function" && b !== null)
|
|
78
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
79
|
-
extendStatics(d, b);
|
|
80
|
-
function __() { this.constructor = d; }
|
|
81
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
var __assign = function() {
|
|
85
|
-
__assign = Object.assign || function __assign(t) {
|
|
86
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
87
|
-
s = arguments[i];
|
|
88
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
89
|
-
}
|
|
90
|
-
return t;
|
|
91
|
-
}
|
|
92
|
-
return __assign.apply(this, arguments);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
function __rest(s, e) {
|
|
96
|
-
var t = {};
|
|
97
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
98
|
-
t[p] = s[p];
|
|
99
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
100
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
101
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
102
|
-
t[p[i]] = s[p[i]];
|
|
103
|
-
}
|
|
104
|
-
return t;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
function __decorate(decorators, target, key, desc) {
|
|
108
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
109
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
110
|
-
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;
|
|
111
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
function __param(paramIndex, decorator) {
|
|
115
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
119
|
-
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
|
120
|
-
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
121
|
-
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
122
|
-
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
123
|
-
var _, done = false;
|
|
124
|
-
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
125
|
-
var context = {};
|
|
126
|
-
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
127
|
-
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
128
|
-
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
129
|
-
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
130
|
-
if (kind === "accessor") {
|
|
131
|
-
if (result === void 0) continue;
|
|
132
|
-
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
133
|
-
if (_ = accept(result.get)) descriptor.get = _;
|
|
134
|
-
if (_ = accept(result.set)) descriptor.set = _;
|
|
135
|
-
if (_ = accept(result.init)) initializers.push(_);
|
|
136
|
-
}
|
|
137
|
-
else if (_ = accept(result)) {
|
|
138
|
-
if (kind === "field") initializers.push(_);
|
|
139
|
-
else descriptor[key] = _;
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
143
|
-
done = true;
|
|
144
|
-
};
|
|
145
|
-
|
|
146
|
-
function __runInitializers(thisArg, initializers, value) {
|
|
147
|
-
var useValue = arguments.length > 2;
|
|
148
|
-
for (var i = 0; i < initializers.length; i++) {
|
|
149
|
-
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
150
|
-
}
|
|
151
|
-
return useValue ? value : void 0;
|
|
152
|
-
};
|
|
153
|
-
|
|
154
|
-
function __propKey(x) {
|
|
155
|
-
return typeof x === "symbol" ? x : "".concat(x);
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
function __setFunctionName(f, name, prefix) {
|
|
159
|
-
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
|
160
|
-
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
161
|
-
};
|
|
162
|
-
|
|
163
|
-
function __metadata(metadataKey, metadataValue) {
|
|
164
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
168
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
169
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
170
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
171
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
172
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
173
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
174
|
-
});
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
function __generator(thisArg, body) {
|
|
178
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
179
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
180
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
181
|
-
function step(op) {
|
|
182
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
183
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
184
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
185
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
186
|
-
switch (op[0]) {
|
|
187
|
-
case 0: case 1: t = op; break;
|
|
188
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
189
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
190
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
191
|
-
default:
|
|
192
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
193
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
194
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
195
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
196
|
-
if (t[2]) _.ops.pop();
|
|
197
|
-
_.trys.pop(); continue;
|
|
198
|
-
}
|
|
199
|
-
op = body.call(thisArg, _);
|
|
200
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
201
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
var __createBinding = Object.create ? (function(o, m, k, k2) {
|
|
206
|
-
if (k2 === undefined) k2 = k;
|
|
207
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
208
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
209
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
210
|
-
}
|
|
211
|
-
Object.defineProperty(o, k2, desc);
|
|
212
|
-
}) : (function(o, m, k, k2) {
|
|
213
|
-
if (k2 === undefined) k2 = k;
|
|
214
|
-
o[k2] = m[k];
|
|
215
|
-
});
|
|
216
|
-
|
|
217
|
-
function __exportStar(m, o) {
|
|
218
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
function __values(o) {
|
|
222
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
223
|
-
if (m) return m.call(o);
|
|
224
|
-
if (o && typeof o.length === "number") return {
|
|
225
|
-
next: function () {
|
|
226
|
-
if (o && i >= o.length) o = void 0;
|
|
227
|
-
return { value: o && o[i++], done: !o };
|
|
228
|
-
}
|
|
229
|
-
};
|
|
230
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
function __read(o, n) {
|
|
234
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
235
|
-
if (!m) return o;
|
|
236
|
-
var i = m.call(o), r, ar = [], e;
|
|
237
|
-
try {
|
|
238
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
239
|
-
}
|
|
240
|
-
catch (error) { e = { error: error }; }
|
|
241
|
-
finally {
|
|
242
|
-
try {
|
|
243
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
244
|
-
}
|
|
245
|
-
finally { if (e) throw e.error; }
|
|
246
|
-
}
|
|
247
|
-
return ar;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
/** @deprecated */
|
|
251
|
-
function __spread() {
|
|
252
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
253
|
-
ar = ar.concat(__read(arguments[i]));
|
|
254
|
-
return ar;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
/** @deprecated */
|
|
258
|
-
function __spreadArrays() {
|
|
259
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
260
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
261
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
262
|
-
r[k] = a[j];
|
|
263
|
-
return r;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
function __spreadArray(to, from, pack) {
|
|
267
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
268
|
-
if (ar || !(i in from)) {
|
|
269
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
270
|
-
ar[i] = from[i];
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
function __await(v) {
|
|
277
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
281
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
282
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
283
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
284
|
-
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
285
|
-
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
286
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
287
|
-
function fulfill(value) { resume("next", value); }
|
|
288
|
-
function reject(value) { resume("throw", value); }
|
|
289
|
-
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
function __asyncDelegator(o) {
|
|
293
|
-
var i, p;
|
|
294
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
295
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
function __asyncValues(o) {
|
|
299
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
300
|
-
var m = o[Symbol.asyncIterator], i;
|
|
301
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
302
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
303
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
function __makeTemplateObject(cooked, raw) {
|
|
307
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
308
|
-
return cooked;
|
|
309
|
-
};
|
|
310
|
-
|
|
311
|
-
var __setModuleDefault = Object.create ? (function(o, v) {
|
|
312
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
313
|
-
}) : function(o, v) {
|
|
314
|
-
o["default"] = v;
|
|
315
|
-
};
|
|
316
|
-
|
|
317
|
-
function __importStar(mod) {
|
|
318
|
-
if (mod && mod.__esModule) return mod;
|
|
319
|
-
var result = {};
|
|
320
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
321
|
-
__setModuleDefault(result, mod);
|
|
322
|
-
return result;
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
function __importDefault(mod) {
|
|
326
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
330
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
331
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
332
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
336
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
337
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
338
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
339
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
function __classPrivateFieldIn(state, receiver) {
|
|
343
|
-
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
|
|
344
|
-
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
/***/ }),
|
|
349
|
-
|
|
350
15
|
/***/ "../../../lts/proceduralTextures/dist/fire/fireProceduralTexture.fragment.js":
|
|
351
16
|
/*!***********************************************************************************!*\
|
|
352
17
|
!*** ../../../lts/proceduralTextures/dist/fire/fireProceduralTexture.fragment.js ***!
|
|
@@ -355,7 +20,7 @@ function __classPrivateFieldIn(state, receiver) {
|
|
|
355
20
|
|
|
356
21
|
__webpack_require__.r(__webpack_exports__);
|
|
357
22
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
358
|
-
/* harmony export */
|
|
23
|
+
/* harmony export */ fireProceduralTexturePixelShader: () => (/* binding */ fireProceduralTexturePixelShader)
|
|
359
24
|
/* harmony export */ });
|
|
360
25
|
/* harmony import */ var core_Engines_shaderStore__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core/Engines/shaderStore */ "core/Misc/decorators");
|
|
361
26
|
/* harmony import */ var core_Engines_shaderStore__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_Engines_shaderStore__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -379,12 +44,12 @@ var fireProceduralTexturePixelShader = { name: name, shader: shader };
|
|
|
379
44
|
|
|
380
45
|
__webpack_require__.r(__webpack_exports__);
|
|
381
46
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
382
|
-
/* harmony export */
|
|
47
|
+
/* harmony export */ FireProceduralTexture: () => (/* binding */ FireProceduralTexture)
|
|
383
48
|
/* harmony export */ });
|
|
384
|
-
/* harmony import */ var
|
|
385
|
-
/* harmony import */ var
|
|
386
|
-
/* harmony import */ var
|
|
387
|
-
/* harmony import */ var
|
|
49
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ "../../../../node_modules/tslib/tslib.es6.mjs");
|
|
50
|
+
/* harmony import */ var core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core/Misc/typeStore */ "core/Misc/decorators");
|
|
51
|
+
/* harmony import */ var core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__);
|
|
52
|
+
/* harmony import */ var _fireProceduralTexture_fragment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./fireProceduralTexture.fragment */ "../../../lts/proceduralTextures/dist/fire/fireProceduralTexture.fragment.js");
|
|
388
53
|
|
|
389
54
|
|
|
390
55
|
|
|
@@ -393,12 +58,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
393
58
|
|
|
394
59
|
|
|
395
60
|
var FireProceduralTexture = /** @class */ (function (_super) {
|
|
396
|
-
(0,
|
|
61
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_2__.__extends)(FireProceduralTexture, _super);
|
|
397
62
|
function FireProceduralTexture(name, size, scene, fallbackTexture, generateMipMaps) {
|
|
398
63
|
if (scene === void 0) { scene = null; }
|
|
399
64
|
var _this = _super.call(this, name, size, "fireProceduralTexture", scene, fallbackTexture, generateMipMaps) || this;
|
|
400
65
|
_this._time = 0.0;
|
|
401
|
-
_this._speed = new
|
|
66
|
+
_this._speed = new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.Vector2(0.5, 0.3);
|
|
402
67
|
_this._autoGenerateTime = true;
|
|
403
68
|
_this._alphaThreshold = 0.5;
|
|
404
69
|
_this._fireColors = FireProceduralTexture.RedFireColors;
|
|
@@ -426,28 +91,28 @@ var FireProceduralTexture = /** @class */ (function (_super) {
|
|
|
426
91
|
};
|
|
427
92
|
Object.defineProperty(FireProceduralTexture, "PurpleFireColors", {
|
|
428
93
|
get: function () {
|
|
429
|
-
return [new
|
|
94
|
+
return [new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.Color3(0.5, 0.0, 1.0), new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.Color3(0.9, 0.0, 1.0), new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.Color3(0.2, 0.0, 1.0), new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.Color3(1.0, 0.9, 1.0), new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.Color3(0.1, 0.1, 1.0), new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.Color3(0.9, 0.9, 1.0)];
|
|
430
95
|
},
|
|
431
96
|
enumerable: false,
|
|
432
97
|
configurable: true
|
|
433
98
|
});
|
|
434
99
|
Object.defineProperty(FireProceduralTexture, "GreenFireColors", {
|
|
435
100
|
get: function () {
|
|
436
|
-
return [new
|
|
101
|
+
return [new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.Color3(0.5, 1.0, 0.0), new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.Color3(0.5, 1.0, 0.0), new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.Color3(0.3, 0.4, 0.0), new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.Color3(0.5, 1.0, 0.0), new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.Color3(0.2, 0.0, 0.0), new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.Color3(0.5, 1.0, 0.0)];
|
|
437
102
|
},
|
|
438
103
|
enumerable: false,
|
|
439
104
|
configurable: true
|
|
440
105
|
});
|
|
441
106
|
Object.defineProperty(FireProceduralTexture, "RedFireColors", {
|
|
442
107
|
get: function () {
|
|
443
|
-
return [new
|
|
108
|
+
return [new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.Color3(0.5, 0.0, 0.1), new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.Color3(0.9, 0.0, 0.0), new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.Color3(0.2, 0.0, 0.0), new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.Color3(1.0, 0.9, 0.0), new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.Color3(0.1, 0.1, 0.1), new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.Color3(0.9, 0.9, 0.9)];
|
|
444
109
|
},
|
|
445
110
|
enumerable: false,
|
|
446
111
|
configurable: true
|
|
447
112
|
});
|
|
448
113
|
Object.defineProperty(FireProceduralTexture, "BlueFireColors", {
|
|
449
114
|
get: function () {
|
|
450
|
-
return [new
|
|
115
|
+
return [new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.Color3(0.1, 0.0, 0.5), new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.Color3(0.0, 0.0, 0.5), new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.Color3(0.1, 0.0, 0.2), new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.Color3(0.0, 0.0, 1.0), new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.Color3(0.1, 0.2, 0.3), new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.Color3(0.0, 0.2, 0.9)];
|
|
451
116
|
},
|
|
452
117
|
enumerable: false,
|
|
453
118
|
configurable: true
|
|
@@ -511,7 +176,7 @@ var FireProceduralTexture = /** @class */ (function (_super) {
|
|
|
511
176
|
* @returns a serialized fire procedural texture object
|
|
512
177
|
*/
|
|
513
178
|
FireProceduralTexture.prototype.serialize = function () {
|
|
514
|
-
var serializationObject =
|
|
179
|
+
var serializationObject = core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.SerializationHelper.Serialize(this, _super.prototype.serialize.call(this));
|
|
515
180
|
serializationObject.customType = "BABYLON.FireProceduralTexture";
|
|
516
181
|
serializationObject.fireColors = [];
|
|
517
182
|
for (var i = 0; i < this._fireColors.length; i++) {
|
|
@@ -527,30 +192,29 @@ var FireProceduralTexture = /** @class */ (function (_super) {
|
|
|
527
192
|
* @returns a parsed Fire Procedural Texture
|
|
528
193
|
*/
|
|
529
194
|
FireProceduralTexture.Parse = function (parsedTexture, scene, rootUrl) {
|
|
530
|
-
var texture =
|
|
195
|
+
var texture = core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.SerializationHelper.Parse(function () { return new FireProceduralTexture(parsedTexture.name, parsedTexture._size, scene, undefined, parsedTexture._generateMipMaps); }, parsedTexture, scene, rootUrl);
|
|
531
196
|
var colors = [];
|
|
532
197
|
for (var i = 0; i < parsedTexture.fireColors.length; i++) {
|
|
533
|
-
colors.push(
|
|
198
|
+
colors.push(core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.Color3.FromArray(parsedTexture.fireColors[i]));
|
|
534
199
|
}
|
|
535
200
|
texture.fireColors = colors;
|
|
536
201
|
return texture;
|
|
537
202
|
};
|
|
538
|
-
(0,
|
|
539
|
-
(0,
|
|
203
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
|
|
204
|
+
(0,core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
|
|
540
205
|
], FireProceduralTexture.prototype, "autoGenerateTime", null);
|
|
541
|
-
(0,
|
|
542
|
-
(0,
|
|
206
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
|
|
207
|
+
(0,core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
|
|
543
208
|
], FireProceduralTexture.prototype, "time", null);
|
|
544
|
-
(0,
|
|
545
|
-
(0,
|
|
209
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
|
|
210
|
+
(0,core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serializeAsVector2)()
|
|
546
211
|
], FireProceduralTexture.prototype, "speed", null);
|
|
547
|
-
(0,
|
|
548
|
-
(0,
|
|
212
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
|
|
213
|
+
(0,core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
|
|
549
214
|
], FireProceduralTexture.prototype, "alphaThreshold", null);
|
|
550
215
|
return FireProceduralTexture;
|
|
551
|
-
}(
|
|
552
|
-
|
|
553
|
-
(0,core_Misc_decorators__WEBPACK_IMPORTED_MODULE_1__.RegisterClass)("BABYLON.FireProceduralTexture", FireProceduralTexture);
|
|
216
|
+
}(core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.ProceduralTexture));
|
|
217
|
+
(0,core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.RegisterClass)("BABYLON.FireProceduralTexture", FireProceduralTexture);
|
|
554
218
|
|
|
555
219
|
|
|
556
220
|
/***/ }),
|
|
@@ -563,7 +227,7 @@ var FireProceduralTexture = /** @class */ (function (_super) {
|
|
|
563
227
|
|
|
564
228
|
__webpack_require__.r(__webpack_exports__);
|
|
565
229
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
566
|
-
/* harmony export */
|
|
230
|
+
/* harmony export */ FireProceduralTexture: () => (/* reexport safe */ _fireProceduralTexture__WEBPACK_IMPORTED_MODULE_0__.FireProceduralTexture)
|
|
567
231
|
/* harmony export */ });
|
|
568
232
|
/* harmony import */ var _fireProceduralTexture__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./fireProceduralTexture */ "../../../lts/proceduralTextures/dist/fire/fireProceduralTexture.js");
|
|
569
233
|
|
|
@@ -579,6 +243,370 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
579
243
|
|
|
580
244
|
module.exports = __WEBPACK_EXTERNAL_MODULE_core_Misc_decorators__;
|
|
581
245
|
|
|
246
|
+
/***/ }),
|
|
247
|
+
|
|
248
|
+
/***/ "../../../../node_modules/tslib/tslib.es6.mjs":
|
|
249
|
+
/*!****************************************************!*\
|
|
250
|
+
!*** ../../../../node_modules/tslib/tslib.es6.mjs ***!
|
|
251
|
+
\****************************************************/
|
|
252
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
253
|
+
|
|
254
|
+
__webpack_require__.r(__webpack_exports__);
|
|
255
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
256
|
+
/* harmony export */ __assign: () => (/* binding */ __assign),
|
|
257
|
+
/* harmony export */ __asyncDelegator: () => (/* binding */ __asyncDelegator),
|
|
258
|
+
/* harmony export */ __asyncGenerator: () => (/* binding */ __asyncGenerator),
|
|
259
|
+
/* harmony export */ __asyncValues: () => (/* binding */ __asyncValues),
|
|
260
|
+
/* harmony export */ __await: () => (/* binding */ __await),
|
|
261
|
+
/* harmony export */ __awaiter: () => (/* binding */ __awaiter),
|
|
262
|
+
/* harmony export */ __classPrivateFieldGet: () => (/* binding */ __classPrivateFieldGet),
|
|
263
|
+
/* harmony export */ __classPrivateFieldIn: () => (/* binding */ __classPrivateFieldIn),
|
|
264
|
+
/* harmony export */ __classPrivateFieldSet: () => (/* binding */ __classPrivateFieldSet),
|
|
265
|
+
/* harmony export */ __createBinding: () => (/* binding */ __createBinding),
|
|
266
|
+
/* harmony export */ __decorate: () => (/* binding */ __decorate),
|
|
267
|
+
/* harmony export */ __esDecorate: () => (/* binding */ __esDecorate),
|
|
268
|
+
/* harmony export */ __exportStar: () => (/* binding */ __exportStar),
|
|
269
|
+
/* harmony export */ __extends: () => (/* binding */ __extends),
|
|
270
|
+
/* harmony export */ __generator: () => (/* binding */ __generator),
|
|
271
|
+
/* harmony export */ __importDefault: () => (/* binding */ __importDefault),
|
|
272
|
+
/* harmony export */ __importStar: () => (/* binding */ __importStar),
|
|
273
|
+
/* harmony export */ __makeTemplateObject: () => (/* binding */ __makeTemplateObject),
|
|
274
|
+
/* harmony export */ __metadata: () => (/* binding */ __metadata),
|
|
275
|
+
/* harmony export */ __param: () => (/* binding */ __param),
|
|
276
|
+
/* harmony export */ __propKey: () => (/* binding */ __propKey),
|
|
277
|
+
/* harmony export */ __read: () => (/* binding */ __read),
|
|
278
|
+
/* harmony export */ __rest: () => (/* binding */ __rest),
|
|
279
|
+
/* harmony export */ __runInitializers: () => (/* binding */ __runInitializers),
|
|
280
|
+
/* harmony export */ __setFunctionName: () => (/* binding */ __setFunctionName),
|
|
281
|
+
/* harmony export */ __spread: () => (/* binding */ __spread),
|
|
282
|
+
/* harmony export */ __spreadArray: () => (/* binding */ __spreadArray),
|
|
283
|
+
/* harmony export */ __spreadArrays: () => (/* binding */ __spreadArrays),
|
|
284
|
+
/* harmony export */ __values: () => (/* binding */ __values),
|
|
285
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
286
|
+
/* harmony export */ });
|
|
287
|
+
/******************************************************************************
|
|
288
|
+
Copyright (c) Microsoft Corporation.
|
|
289
|
+
|
|
290
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
291
|
+
purpose with or without fee is hereby granted.
|
|
292
|
+
|
|
293
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
294
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
295
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
296
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
297
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
298
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
299
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
300
|
+
***************************************************************************** */
|
|
301
|
+
/* global Reflect, Promise */
|
|
302
|
+
|
|
303
|
+
var extendStatics = function(d, b) {
|
|
304
|
+
extendStatics = Object.setPrototypeOf ||
|
|
305
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
306
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
307
|
+
return extendStatics(d, b);
|
|
308
|
+
};
|
|
309
|
+
|
|
310
|
+
function __extends(d, b) {
|
|
311
|
+
if (typeof b !== "function" && b !== null)
|
|
312
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
313
|
+
extendStatics(d, b);
|
|
314
|
+
function __() { this.constructor = d; }
|
|
315
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
var __assign = function() {
|
|
319
|
+
__assign = Object.assign || function __assign(t) {
|
|
320
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
321
|
+
s = arguments[i];
|
|
322
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
323
|
+
}
|
|
324
|
+
return t;
|
|
325
|
+
}
|
|
326
|
+
return __assign.apply(this, arguments);
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
function __rest(s, e) {
|
|
330
|
+
var t = {};
|
|
331
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
332
|
+
t[p] = s[p];
|
|
333
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
334
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
335
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
336
|
+
t[p[i]] = s[p[i]];
|
|
337
|
+
}
|
|
338
|
+
return t;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
function __decorate(decorators, target, key, desc) {
|
|
342
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
343
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
344
|
+
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;
|
|
345
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
function __param(paramIndex, decorator) {
|
|
349
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
353
|
+
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
|
354
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
355
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
356
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
357
|
+
var _, done = false;
|
|
358
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
359
|
+
var context = {};
|
|
360
|
+
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
361
|
+
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
362
|
+
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
363
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
364
|
+
if (kind === "accessor") {
|
|
365
|
+
if (result === void 0) continue;
|
|
366
|
+
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
367
|
+
if (_ = accept(result.get)) descriptor.get = _;
|
|
368
|
+
if (_ = accept(result.set)) descriptor.set = _;
|
|
369
|
+
if (_ = accept(result.init)) initializers.unshift(_);
|
|
370
|
+
}
|
|
371
|
+
else if (_ = accept(result)) {
|
|
372
|
+
if (kind === "field") initializers.unshift(_);
|
|
373
|
+
else descriptor[key] = _;
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
377
|
+
done = true;
|
|
378
|
+
};
|
|
379
|
+
|
|
380
|
+
function __runInitializers(thisArg, initializers, value) {
|
|
381
|
+
var useValue = arguments.length > 2;
|
|
382
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
383
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
384
|
+
}
|
|
385
|
+
return useValue ? value : void 0;
|
|
386
|
+
};
|
|
387
|
+
|
|
388
|
+
function __propKey(x) {
|
|
389
|
+
return typeof x === "symbol" ? x : "".concat(x);
|
|
390
|
+
};
|
|
391
|
+
|
|
392
|
+
function __setFunctionName(f, name, prefix) {
|
|
393
|
+
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
|
394
|
+
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
395
|
+
};
|
|
396
|
+
|
|
397
|
+
function __metadata(metadataKey, metadataValue) {
|
|
398
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
402
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
403
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
404
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
405
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
406
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
407
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
408
|
+
});
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
function __generator(thisArg, body) {
|
|
412
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
413
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
414
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
415
|
+
function step(op) {
|
|
416
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
417
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
418
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
419
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
420
|
+
switch (op[0]) {
|
|
421
|
+
case 0: case 1: t = op; break;
|
|
422
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
423
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
424
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
425
|
+
default:
|
|
426
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
427
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
428
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
429
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
430
|
+
if (t[2]) _.ops.pop();
|
|
431
|
+
_.trys.pop(); continue;
|
|
432
|
+
}
|
|
433
|
+
op = body.call(thisArg, _);
|
|
434
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
435
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
var __createBinding = Object.create ? (function(o, m, k, k2) {
|
|
440
|
+
if (k2 === undefined) k2 = k;
|
|
441
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
442
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
443
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
444
|
+
}
|
|
445
|
+
Object.defineProperty(o, k2, desc);
|
|
446
|
+
}) : (function(o, m, k, k2) {
|
|
447
|
+
if (k2 === undefined) k2 = k;
|
|
448
|
+
o[k2] = m[k];
|
|
449
|
+
});
|
|
450
|
+
|
|
451
|
+
function __exportStar(m, o) {
|
|
452
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
function __values(o) {
|
|
456
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
457
|
+
if (m) return m.call(o);
|
|
458
|
+
if (o && typeof o.length === "number") return {
|
|
459
|
+
next: function () {
|
|
460
|
+
if (o && i >= o.length) o = void 0;
|
|
461
|
+
return { value: o && o[i++], done: !o };
|
|
462
|
+
}
|
|
463
|
+
};
|
|
464
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
function __read(o, n) {
|
|
468
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
469
|
+
if (!m) return o;
|
|
470
|
+
var i = m.call(o), r, ar = [], e;
|
|
471
|
+
try {
|
|
472
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
473
|
+
}
|
|
474
|
+
catch (error) { e = { error: error }; }
|
|
475
|
+
finally {
|
|
476
|
+
try {
|
|
477
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
478
|
+
}
|
|
479
|
+
finally { if (e) throw e.error; }
|
|
480
|
+
}
|
|
481
|
+
return ar;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
/** @deprecated */
|
|
485
|
+
function __spread() {
|
|
486
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
487
|
+
ar = ar.concat(__read(arguments[i]));
|
|
488
|
+
return ar;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
/** @deprecated */
|
|
492
|
+
function __spreadArrays() {
|
|
493
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
494
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
495
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
496
|
+
r[k] = a[j];
|
|
497
|
+
return r;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
function __spreadArray(to, from, pack) {
|
|
501
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
502
|
+
if (ar || !(i in from)) {
|
|
503
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
504
|
+
ar[i] = from[i];
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
function __await(v) {
|
|
511
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
515
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
516
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
517
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
518
|
+
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
519
|
+
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
520
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
521
|
+
function fulfill(value) { resume("next", value); }
|
|
522
|
+
function reject(value) { resume("throw", value); }
|
|
523
|
+
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
function __asyncDelegator(o) {
|
|
527
|
+
var i, p;
|
|
528
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
529
|
+
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
function __asyncValues(o) {
|
|
533
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
534
|
+
var m = o[Symbol.asyncIterator], i;
|
|
535
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
536
|
+
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
537
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
function __makeTemplateObject(cooked, raw) {
|
|
541
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
542
|
+
return cooked;
|
|
543
|
+
};
|
|
544
|
+
|
|
545
|
+
var __setModuleDefault = Object.create ? (function(o, v) {
|
|
546
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
547
|
+
}) : function(o, v) {
|
|
548
|
+
o["default"] = v;
|
|
549
|
+
};
|
|
550
|
+
|
|
551
|
+
function __importStar(mod) {
|
|
552
|
+
if (mod && mod.__esModule) return mod;
|
|
553
|
+
var result = {};
|
|
554
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
555
|
+
__setModuleDefault(result, mod);
|
|
556
|
+
return result;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
function __importDefault(mod) {
|
|
560
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
564
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
565
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
566
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
570
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
571
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
572
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
573
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
function __classPrivateFieldIn(state, receiver) {
|
|
577
|
+
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
|
|
578
|
+
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
582
|
+
__extends,
|
|
583
|
+
__assign,
|
|
584
|
+
__rest,
|
|
585
|
+
__decorate,
|
|
586
|
+
__param,
|
|
587
|
+
__metadata,
|
|
588
|
+
__awaiter,
|
|
589
|
+
__generator,
|
|
590
|
+
__createBinding,
|
|
591
|
+
__exportStar,
|
|
592
|
+
__values,
|
|
593
|
+
__read,
|
|
594
|
+
__spread,
|
|
595
|
+
__spreadArrays,
|
|
596
|
+
__spreadArray,
|
|
597
|
+
__await,
|
|
598
|
+
__asyncGenerator,
|
|
599
|
+
__asyncDelegator,
|
|
600
|
+
__asyncValues,
|
|
601
|
+
__makeTemplateObject,
|
|
602
|
+
__importStar,
|
|
603
|
+
__importDefault,
|
|
604
|
+
__classPrivateFieldGet,
|
|
605
|
+
__classPrivateFieldSet,
|
|
606
|
+
__classPrivateFieldIn,
|
|
607
|
+
});
|
|
608
|
+
|
|
609
|
+
|
|
582
610
|
/***/ })
|
|
583
611
|
|
|
584
612
|
/******/ });
|
|
@@ -669,7 +697,7 @@ var __webpack_exports__ = {};
|
|
|
669
697
|
\*********************/
|
|
670
698
|
__webpack_require__.r(__webpack_exports__);
|
|
671
699
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
672
|
-
/* harmony export */
|
|
700
|
+
/* harmony export */ FireProceduralTexture: () => (/* reexport safe */ procedural_textures_fire_index__WEBPACK_IMPORTED_MODULE_0__.FireProceduralTexture)
|
|
673
701
|
/* harmony export */ });
|
|
674
702
|
/* harmony import */ var procedural_textures_fire_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! procedural-textures/fire/index */ "../../../lts/proceduralTextures/dist/fire/index.js");
|
|
675
703
|
/* eslint-disable import/no-internal-modules */
|