babylonjs-procedural-textures 6.7.0 → 6.8.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.
- package/babylon.brickProceduralTexture.js +387 -358
- package/babylon.brickProceduralTexture.js.map +1 -1
- package/babylon.brickProceduralTexture.min.js.map +1 -1
- package/babylon.cloudProceduralTexture.js +387 -358
- package/babylon.cloudProceduralTexture.js.map +1 -1
- package/babylon.cloudProceduralTexture.min.js.map +1 -1
- package/babylon.fireProceduralTexture.js +391 -362
- package/babylon.fireProceduralTexture.js.map +1 -1
- package/babylon.fireProceduralTexture.min.js.map +1 -1
- package/babylon.grassProceduralTexture.js +382 -353
- package/babylon.grassProceduralTexture.js.map +1 -1
- package/babylon.grassProceduralTexture.min.js.map +1 -1
- package/babylon.marbleProceduralTexture.js +386 -357
- package/babylon.marbleProceduralTexture.js.map +1 -1
- package/babylon.marbleProceduralTexture.min.js.map +1 -1
- package/babylon.normalMapProceduralTexture.js +379 -350
- package/babylon.normalMapProceduralTexture.js.map +1 -1
- package/babylon.normalMapProceduralTexture.min.js.map +1 -1
- package/babylon.perlinNoiseProceduralTexture.js +383 -354
- package/babylon.perlinNoiseProceduralTexture.js.map +1 -1
- package/babylon.perlinNoiseProceduralTexture.min.js.map +1 -1
- package/babylon.roadProceduralTexture.js +380 -351
- package/babylon.roadProceduralTexture.js.map +1 -1
- package/babylon.roadProceduralTexture.min.js.map +1 -1
- package/babylon.starfieldProceduralTexture.js +399 -370
- package/babylon.starfieldProceduralTexture.js.map +1 -1
- package/babylon.starfieldProceduralTexture.min.js.map +1 -1
- package/babylon.woodProceduralTexture.js +382 -353
- package/babylon.woodProceduralTexture.js.map +1 -1
- package/babylon.woodProceduralTexture.min.js.map +1 -1
- package/babylonjs.proceduralTextures.js +591 -562
- package/babylonjs.proceduralTextures.js.map +1 -1
- package/babylonjs.proceduralTextures.min.js.map +1 -1
- package/package.json +2 -2
|
@@ -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/marble/index.js":
|
|
351
16
|
/*!************************************************************!*\
|
|
352
17
|
!*** ../../../lts/proceduralTextures/dist/marble/index.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 */ MarbleProceduralTexture: () => (/* reexport safe */ _marbleProceduralTexture__WEBPACK_IMPORTED_MODULE_0__.MarbleProceduralTexture)
|
|
359
24
|
/* harmony export */ });
|
|
360
25
|
/* harmony import */ var _marbleProceduralTexture__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./marbleProceduralTexture */ "../../../lts/proceduralTextures/dist/marble/marbleProceduralTexture.js");
|
|
361
26
|
|
|
@@ -371,7 +36,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
371
36
|
|
|
372
37
|
__webpack_require__.r(__webpack_exports__);
|
|
373
38
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
374
|
-
/* harmony export */
|
|
39
|
+
/* harmony export */ marbleProceduralTexturePixelShader: () => (/* binding */ marbleProceduralTexturePixelShader)
|
|
375
40
|
/* harmony export */ });
|
|
376
41
|
/* harmony import */ var core_Engines_shaderStore__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core/Engines/shaderStore */ "core/Misc/decorators");
|
|
377
42
|
/* harmony import */ var core_Engines_shaderStore__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_Engines_shaderStore__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -395,12 +60,12 @@ var marbleProceduralTexturePixelShader = { name: name, shader: shader };
|
|
|
395
60
|
|
|
396
61
|
__webpack_require__.r(__webpack_exports__);
|
|
397
62
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
398
|
-
/* harmony export */
|
|
63
|
+
/* harmony export */ MarbleProceduralTexture: () => (/* binding */ MarbleProceduralTexture)
|
|
399
64
|
/* harmony export */ });
|
|
400
|
-
/* harmony import */ var
|
|
401
|
-
/* harmony import */ var
|
|
402
|
-
/* harmony import */ var
|
|
403
|
-
/* harmony import */ var
|
|
65
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ "../../../../node_modules/tslib/tslib.es6.mjs");
|
|
66
|
+
/* harmony import */ var core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core/Misc/typeStore */ "core/Misc/decorators");
|
|
67
|
+
/* harmony import */ var core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__);
|
|
68
|
+
/* harmony import */ var _marbleProceduralTexture_fragment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./marbleProceduralTexture.fragment */ "../../../lts/proceduralTextures/dist/marble/marbleProceduralTexture.fragment.js");
|
|
404
69
|
|
|
405
70
|
|
|
406
71
|
|
|
@@ -408,14 +73,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
408
73
|
|
|
409
74
|
|
|
410
75
|
var MarbleProceduralTexture = /** @class */ (function (_super) {
|
|
411
|
-
(0,
|
|
76
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_2__.__extends)(MarbleProceduralTexture, _super);
|
|
412
77
|
function MarbleProceduralTexture(name, size, scene, fallbackTexture, generateMipMaps) {
|
|
413
78
|
if (scene === void 0) { scene = null; }
|
|
414
79
|
var _this = _super.call(this, name, size, "marbleProceduralTexture", scene, fallbackTexture, generateMipMaps) || this;
|
|
415
80
|
_this._numberOfTilesHeight = 3;
|
|
416
81
|
_this._numberOfTilesWidth = 3;
|
|
417
82
|
_this._amplitude = 9.0;
|
|
418
|
-
_this._jointColor = new
|
|
83
|
+
_this._jointColor = new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.Color3(0.72, 0.72, 0.72);
|
|
419
84
|
_this.updateShaderUniforms();
|
|
420
85
|
return _this;
|
|
421
86
|
}
|
|
@@ -474,7 +139,7 @@ var MarbleProceduralTexture = /** @class */ (function (_super) {
|
|
|
474
139
|
* @returns a serialized marble procedural texture object
|
|
475
140
|
*/
|
|
476
141
|
MarbleProceduralTexture.prototype.serialize = function () {
|
|
477
|
-
var serializationObject =
|
|
142
|
+
var serializationObject = core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.SerializationHelper.Serialize(this, _super.prototype.serialize.call(this));
|
|
478
143
|
serializationObject.customType = "BABYLON.MarbleProceduralTexture";
|
|
479
144
|
return serializationObject;
|
|
480
145
|
};
|
|
@@ -486,25 +151,25 @@ var MarbleProceduralTexture = /** @class */ (function (_super) {
|
|
|
486
151
|
* @returns a parsed Marble Procedural Texture
|
|
487
152
|
*/
|
|
488
153
|
MarbleProceduralTexture.Parse = function (parsedTexture, scene, rootUrl) {
|
|
489
|
-
var texture =
|
|
154
|
+
var texture = core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.SerializationHelper.Parse(function () { return new MarbleProceduralTexture(parsedTexture.name, parsedTexture._size, scene, undefined, parsedTexture._generateMipMaps); }, parsedTexture, scene, rootUrl);
|
|
490
155
|
return texture;
|
|
491
156
|
};
|
|
492
|
-
(0,
|
|
493
|
-
(0,
|
|
157
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
|
|
158
|
+
(0,core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
|
|
494
159
|
], MarbleProceduralTexture.prototype, "numberOfTilesHeight", null);
|
|
495
|
-
(0,
|
|
496
|
-
(0,
|
|
160
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
|
|
161
|
+
(0,core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
|
|
497
162
|
], MarbleProceduralTexture.prototype, "amplitude", null);
|
|
498
|
-
(0,
|
|
499
|
-
(0,
|
|
163
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
|
|
164
|
+
(0,core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
|
|
500
165
|
], MarbleProceduralTexture.prototype, "numberOfTilesWidth", null);
|
|
501
|
-
(0,
|
|
502
|
-
(0,
|
|
166
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
|
|
167
|
+
(0,core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
|
|
503
168
|
], MarbleProceduralTexture.prototype, "jointColor", null);
|
|
504
169
|
return MarbleProceduralTexture;
|
|
505
|
-
}(
|
|
170
|
+
}(core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.ProceduralTexture));
|
|
506
171
|
|
|
507
|
-
(0,
|
|
172
|
+
(0,core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.RegisterClass)("BABYLON.MarbleProceduralTexture", MarbleProceduralTexture);
|
|
508
173
|
|
|
509
174
|
|
|
510
175
|
/***/ }),
|
|
@@ -517,6 +182,370 @@ var MarbleProceduralTexture = /** @class */ (function (_super) {
|
|
|
517
182
|
|
|
518
183
|
module.exports = __WEBPACK_EXTERNAL_MODULE_core_Misc_decorators__;
|
|
519
184
|
|
|
185
|
+
/***/ }),
|
|
186
|
+
|
|
187
|
+
/***/ "../../../../node_modules/tslib/tslib.es6.mjs":
|
|
188
|
+
/*!****************************************************!*\
|
|
189
|
+
!*** ../../../../node_modules/tslib/tslib.es6.mjs ***!
|
|
190
|
+
\****************************************************/
|
|
191
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
192
|
+
|
|
193
|
+
__webpack_require__.r(__webpack_exports__);
|
|
194
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
195
|
+
/* harmony export */ __assign: () => (/* binding */ __assign),
|
|
196
|
+
/* harmony export */ __asyncDelegator: () => (/* binding */ __asyncDelegator),
|
|
197
|
+
/* harmony export */ __asyncGenerator: () => (/* binding */ __asyncGenerator),
|
|
198
|
+
/* harmony export */ __asyncValues: () => (/* binding */ __asyncValues),
|
|
199
|
+
/* harmony export */ __await: () => (/* binding */ __await),
|
|
200
|
+
/* harmony export */ __awaiter: () => (/* binding */ __awaiter),
|
|
201
|
+
/* harmony export */ __classPrivateFieldGet: () => (/* binding */ __classPrivateFieldGet),
|
|
202
|
+
/* harmony export */ __classPrivateFieldIn: () => (/* binding */ __classPrivateFieldIn),
|
|
203
|
+
/* harmony export */ __classPrivateFieldSet: () => (/* binding */ __classPrivateFieldSet),
|
|
204
|
+
/* harmony export */ __createBinding: () => (/* binding */ __createBinding),
|
|
205
|
+
/* harmony export */ __decorate: () => (/* binding */ __decorate),
|
|
206
|
+
/* harmony export */ __esDecorate: () => (/* binding */ __esDecorate),
|
|
207
|
+
/* harmony export */ __exportStar: () => (/* binding */ __exportStar),
|
|
208
|
+
/* harmony export */ __extends: () => (/* binding */ __extends),
|
|
209
|
+
/* harmony export */ __generator: () => (/* binding */ __generator),
|
|
210
|
+
/* harmony export */ __importDefault: () => (/* binding */ __importDefault),
|
|
211
|
+
/* harmony export */ __importStar: () => (/* binding */ __importStar),
|
|
212
|
+
/* harmony export */ __makeTemplateObject: () => (/* binding */ __makeTemplateObject),
|
|
213
|
+
/* harmony export */ __metadata: () => (/* binding */ __metadata),
|
|
214
|
+
/* harmony export */ __param: () => (/* binding */ __param),
|
|
215
|
+
/* harmony export */ __propKey: () => (/* binding */ __propKey),
|
|
216
|
+
/* harmony export */ __read: () => (/* binding */ __read),
|
|
217
|
+
/* harmony export */ __rest: () => (/* binding */ __rest),
|
|
218
|
+
/* harmony export */ __runInitializers: () => (/* binding */ __runInitializers),
|
|
219
|
+
/* harmony export */ __setFunctionName: () => (/* binding */ __setFunctionName),
|
|
220
|
+
/* harmony export */ __spread: () => (/* binding */ __spread),
|
|
221
|
+
/* harmony export */ __spreadArray: () => (/* binding */ __spreadArray),
|
|
222
|
+
/* harmony export */ __spreadArrays: () => (/* binding */ __spreadArrays),
|
|
223
|
+
/* harmony export */ __values: () => (/* binding */ __values),
|
|
224
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
225
|
+
/* harmony export */ });
|
|
226
|
+
/******************************************************************************
|
|
227
|
+
Copyright (c) Microsoft Corporation.
|
|
228
|
+
|
|
229
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
230
|
+
purpose with or without fee is hereby granted.
|
|
231
|
+
|
|
232
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
233
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
234
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
235
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
236
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
237
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
238
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
239
|
+
***************************************************************************** */
|
|
240
|
+
/* global Reflect, Promise */
|
|
241
|
+
|
|
242
|
+
var extendStatics = function(d, b) {
|
|
243
|
+
extendStatics = Object.setPrototypeOf ||
|
|
244
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
245
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
246
|
+
return extendStatics(d, b);
|
|
247
|
+
};
|
|
248
|
+
|
|
249
|
+
function __extends(d, b) {
|
|
250
|
+
if (typeof b !== "function" && b !== null)
|
|
251
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
252
|
+
extendStatics(d, b);
|
|
253
|
+
function __() { this.constructor = d; }
|
|
254
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
var __assign = function() {
|
|
258
|
+
__assign = Object.assign || function __assign(t) {
|
|
259
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
260
|
+
s = arguments[i];
|
|
261
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
262
|
+
}
|
|
263
|
+
return t;
|
|
264
|
+
}
|
|
265
|
+
return __assign.apply(this, arguments);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
function __rest(s, e) {
|
|
269
|
+
var t = {};
|
|
270
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
271
|
+
t[p] = s[p];
|
|
272
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
273
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
274
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
275
|
+
t[p[i]] = s[p[i]];
|
|
276
|
+
}
|
|
277
|
+
return t;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
function __decorate(decorators, target, key, desc) {
|
|
281
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
282
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
283
|
+
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;
|
|
284
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
function __param(paramIndex, decorator) {
|
|
288
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
292
|
+
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
|
293
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
294
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
295
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
296
|
+
var _, done = false;
|
|
297
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
298
|
+
var context = {};
|
|
299
|
+
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
300
|
+
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
301
|
+
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
302
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
303
|
+
if (kind === "accessor") {
|
|
304
|
+
if (result === void 0) continue;
|
|
305
|
+
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
306
|
+
if (_ = accept(result.get)) descriptor.get = _;
|
|
307
|
+
if (_ = accept(result.set)) descriptor.set = _;
|
|
308
|
+
if (_ = accept(result.init)) initializers.unshift(_);
|
|
309
|
+
}
|
|
310
|
+
else if (_ = accept(result)) {
|
|
311
|
+
if (kind === "field") initializers.unshift(_);
|
|
312
|
+
else descriptor[key] = _;
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
316
|
+
done = true;
|
|
317
|
+
};
|
|
318
|
+
|
|
319
|
+
function __runInitializers(thisArg, initializers, value) {
|
|
320
|
+
var useValue = arguments.length > 2;
|
|
321
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
322
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
323
|
+
}
|
|
324
|
+
return useValue ? value : void 0;
|
|
325
|
+
};
|
|
326
|
+
|
|
327
|
+
function __propKey(x) {
|
|
328
|
+
return typeof x === "symbol" ? x : "".concat(x);
|
|
329
|
+
};
|
|
330
|
+
|
|
331
|
+
function __setFunctionName(f, name, prefix) {
|
|
332
|
+
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
|
333
|
+
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
334
|
+
};
|
|
335
|
+
|
|
336
|
+
function __metadata(metadataKey, metadataValue) {
|
|
337
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
341
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
342
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
343
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
344
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
345
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
346
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
347
|
+
});
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
function __generator(thisArg, body) {
|
|
351
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
352
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
353
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
354
|
+
function step(op) {
|
|
355
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
356
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
357
|
+
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;
|
|
358
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
359
|
+
switch (op[0]) {
|
|
360
|
+
case 0: case 1: t = op; break;
|
|
361
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
362
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
363
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
364
|
+
default:
|
|
365
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
366
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
367
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
368
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
369
|
+
if (t[2]) _.ops.pop();
|
|
370
|
+
_.trys.pop(); continue;
|
|
371
|
+
}
|
|
372
|
+
op = body.call(thisArg, _);
|
|
373
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
374
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
var __createBinding = Object.create ? (function(o, m, k, k2) {
|
|
379
|
+
if (k2 === undefined) k2 = k;
|
|
380
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
381
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
382
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
383
|
+
}
|
|
384
|
+
Object.defineProperty(o, k2, desc);
|
|
385
|
+
}) : (function(o, m, k, k2) {
|
|
386
|
+
if (k2 === undefined) k2 = k;
|
|
387
|
+
o[k2] = m[k];
|
|
388
|
+
});
|
|
389
|
+
|
|
390
|
+
function __exportStar(m, o) {
|
|
391
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
function __values(o) {
|
|
395
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
396
|
+
if (m) return m.call(o);
|
|
397
|
+
if (o && typeof o.length === "number") return {
|
|
398
|
+
next: function () {
|
|
399
|
+
if (o && i >= o.length) o = void 0;
|
|
400
|
+
return { value: o && o[i++], done: !o };
|
|
401
|
+
}
|
|
402
|
+
};
|
|
403
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
function __read(o, n) {
|
|
407
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
408
|
+
if (!m) return o;
|
|
409
|
+
var i = m.call(o), r, ar = [], e;
|
|
410
|
+
try {
|
|
411
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
412
|
+
}
|
|
413
|
+
catch (error) { e = { error: error }; }
|
|
414
|
+
finally {
|
|
415
|
+
try {
|
|
416
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
417
|
+
}
|
|
418
|
+
finally { if (e) throw e.error; }
|
|
419
|
+
}
|
|
420
|
+
return ar;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
/** @deprecated */
|
|
424
|
+
function __spread() {
|
|
425
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
426
|
+
ar = ar.concat(__read(arguments[i]));
|
|
427
|
+
return ar;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
/** @deprecated */
|
|
431
|
+
function __spreadArrays() {
|
|
432
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
433
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
434
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
435
|
+
r[k] = a[j];
|
|
436
|
+
return r;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
function __spreadArray(to, from, pack) {
|
|
440
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
441
|
+
if (ar || !(i in from)) {
|
|
442
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
443
|
+
ar[i] = from[i];
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
function __await(v) {
|
|
450
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
454
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
455
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
456
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
457
|
+
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); }); }; }
|
|
458
|
+
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
459
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
460
|
+
function fulfill(value) { resume("next", value); }
|
|
461
|
+
function reject(value) { resume("throw", value); }
|
|
462
|
+
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
function __asyncDelegator(o) {
|
|
466
|
+
var i, p;
|
|
467
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
468
|
+
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; }
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
function __asyncValues(o) {
|
|
472
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
473
|
+
var m = o[Symbol.asyncIterator], i;
|
|
474
|
+
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);
|
|
475
|
+
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); }); }; }
|
|
476
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
function __makeTemplateObject(cooked, raw) {
|
|
480
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
481
|
+
return cooked;
|
|
482
|
+
};
|
|
483
|
+
|
|
484
|
+
var __setModuleDefault = Object.create ? (function(o, v) {
|
|
485
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
486
|
+
}) : function(o, v) {
|
|
487
|
+
o["default"] = v;
|
|
488
|
+
};
|
|
489
|
+
|
|
490
|
+
function __importStar(mod) {
|
|
491
|
+
if (mod && mod.__esModule) return mod;
|
|
492
|
+
var result = {};
|
|
493
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
494
|
+
__setModuleDefault(result, mod);
|
|
495
|
+
return result;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
function __importDefault(mod) {
|
|
499
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
503
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
504
|
+
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");
|
|
505
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
509
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
510
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
511
|
+
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");
|
|
512
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
function __classPrivateFieldIn(state, receiver) {
|
|
516
|
+
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
|
|
517
|
+
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
521
|
+
__extends,
|
|
522
|
+
__assign,
|
|
523
|
+
__rest,
|
|
524
|
+
__decorate,
|
|
525
|
+
__param,
|
|
526
|
+
__metadata,
|
|
527
|
+
__awaiter,
|
|
528
|
+
__generator,
|
|
529
|
+
__createBinding,
|
|
530
|
+
__exportStar,
|
|
531
|
+
__values,
|
|
532
|
+
__read,
|
|
533
|
+
__spread,
|
|
534
|
+
__spreadArrays,
|
|
535
|
+
__spreadArray,
|
|
536
|
+
__await,
|
|
537
|
+
__asyncGenerator,
|
|
538
|
+
__asyncDelegator,
|
|
539
|
+
__asyncValues,
|
|
540
|
+
__makeTemplateObject,
|
|
541
|
+
__importStar,
|
|
542
|
+
__importDefault,
|
|
543
|
+
__classPrivateFieldGet,
|
|
544
|
+
__classPrivateFieldSet,
|
|
545
|
+
__classPrivateFieldIn,
|
|
546
|
+
});
|
|
547
|
+
|
|
548
|
+
|
|
520
549
|
/***/ })
|
|
521
550
|
|
|
522
551
|
/******/ });
|
|
@@ -607,7 +636,7 @@ var __webpack_exports__ = {};
|
|
|
607
636
|
\***********************/
|
|
608
637
|
__webpack_require__.r(__webpack_exports__);
|
|
609
638
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
610
|
-
/* harmony export */
|
|
639
|
+
/* harmony export */ MarbleProceduralTexture: () => (/* reexport safe */ procedural_textures_marble_index__WEBPACK_IMPORTED_MODULE_0__.MarbleProceduralTexture)
|
|
611
640
|
/* harmony export */ });
|
|
612
641
|
/* harmony import */ var procedural_textures_marble_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! procedural-textures/marble/index */ "../../../lts/proceduralTextures/dist/marble/index.js");
|
|
613
642
|
/* eslint-disable import/no-internal-modules */
|