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