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