babylonjs-procedural-textures 6.10.0 → 6.11.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.
Files changed (62) hide show
  1. package/babylon.brickProceduralTexture.js +128 -115
  2. package/babylon.brickProceduralTexture.js.map +1 -1
  3. package/babylon.brickProceduralTexture.min.js +1 -1
  4. package/babylon.brickProceduralTexture.min.js.map +1 -1
  5. package/babylon.cloudProceduralTexture.js +126 -115
  6. package/babylon.cloudProceduralTexture.js.map +1 -1
  7. package/babylon.cloudProceduralTexture.min.js +1 -1
  8. package/babylon.cloudProceduralTexture.min.js.map +1 -1
  9. package/babylon.fireProceduralTexture.js +146 -162
  10. package/babylon.fireProceduralTexture.js.map +1 -1
  11. package/babylon.fireProceduralTexture.min.js +1 -1
  12. package/babylon.fireProceduralTexture.min.js.map +1 -1
  13. package/babylon.grassProceduralTexture.js +103 -86
  14. package/babylon.grassProceduralTexture.js.map +1 -1
  15. package/babylon.grassProceduralTexture.min.js +1 -1
  16. package/babylon.grassProceduralTexture.min.js.map +1 -1
  17. package/babylon.marbleProceduralTexture.js +115 -115
  18. package/babylon.marbleProceduralTexture.js.map +1 -1
  19. package/babylon.marbleProceduralTexture.min.js +1 -1
  20. package/babylon.marbleProceduralTexture.min.js.map +1 -1
  21. package/babylon.normalMapProceduralTexture.js +94 -78
  22. package/babylon.normalMapProceduralTexture.js.map +1 -1
  23. package/babylon.normalMapProceduralTexture.min.js +1 -1
  24. package/babylon.normalMapProceduralTexture.min.js.map +1 -1
  25. package/babylon.perlinNoiseProceduralTexture.js +130 -76
  26. package/babylon.perlinNoiseProceduralTexture.js.map +1 -1
  27. package/babylon.perlinNoiseProceduralTexture.min.js +1 -1
  28. package/babylon.perlinNoiseProceduralTexture.min.js.map +1 -1
  29. package/babylon.roadProceduralTexture.js +92 -70
  30. package/babylon.roadProceduralTexture.js.map +1 -1
  31. package/babylon.roadProceduralTexture.min.js +1 -1
  32. package/babylon.roadProceduralTexture.min.js.map +1 -1
  33. package/babylon.starfieldProceduralTexture.js +212 -225
  34. package/babylon.starfieldProceduralTexture.js.map +1 -1
  35. package/babylon.starfieldProceduralTexture.min.js +1 -1
  36. package/babylon.starfieldProceduralTexture.min.js.map +1 -1
  37. package/babylon.woodProceduralTexture.js +102 -85
  38. package/babylon.woodProceduralTexture.js.map +1 -1
  39. package/babylon.woodProceduralTexture.min.js +1 -1
  40. package/babylon.woodProceduralTexture.min.js.map +1 -1
  41. package/babylonjs.proceduralTextures.d.ts +20 -20
  42. package/babylonjs.proceduralTextures.js +959 -1038
  43. package/babylonjs.proceduralTextures.js.map +1 -1
  44. package/babylonjs.proceduralTextures.min.js +1 -1
  45. package/babylonjs.proceduralTextures.min.js.map +1 -1
  46. package/babylonjs.proceduralTextures.module.d.ts +64 -64
  47. package/config.json +1 -1
  48. package/package.json +3 -3
  49. package/src/brick.ts +3 -14
  50. package/src/cloud.ts +3 -14
  51. package/src/fire.ts +3 -14
  52. package/src/grass.ts +3 -14
  53. package/src/index.ts +1 -1
  54. package/src/marble.ts +3 -14
  55. package/src/normalMap.ts +3 -14
  56. package/src/perlinNoise.ts +3 -14
  57. package/src/road.ts +3 -14
  58. package/src/starfield.ts +3 -14
  59. package/src/wood.ts +3 -14
  60. package/tsconfig.build.json +6 -3
  61. package/tsconfig.json +2 -1
  62. package/webpack.config.js +4 -0
@@ -7,55 +7,70 @@
7
7
  exports["babylonjs-procedural-textures"] = factory(require("babylonjs"));
8
8
  else
9
9
  root["PROCEDURALTEXTURES"] = factory(root["BABYLON"]);
10
- })((typeof self !== "undefined" ? self : typeof global !== "undefined" ? global : this), (__WEBPACK_EXTERNAL_MODULE_core_Misc_decorators__) => {
10
+ })((typeof self !== "undefined" ? self : typeof global !== "undefined" ? global : this), (__WEBPACK_EXTERNAL_MODULE_babylonjs_Misc_decorators__) => {
11
11
  return /******/ (() => { // webpackBootstrap
12
12
  /******/ "use strict";
13
13
  /******/ var __webpack_modules__ = ({
14
14
 
15
- /***/ "../../../lts/proceduralTextures/dist/starfield/index.js":
16
- /*!***************************************************************!*\
17
- !*** ../../../lts/proceduralTextures/dist/starfield/index.js ***!
18
- \***************************************************************/
15
+ /***/ "../../../dev/proceduralTextures/src/starfield/index.ts":
16
+ /*!**************************************************************!*\
17
+ !*** ../../../dev/proceduralTextures/src/starfield/index.ts ***!
18
+ \**************************************************************/
19
19
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
20
20
 
21
21
  __webpack_require__.r(__webpack_exports__);
22
22
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
23
23
  /* harmony export */ StarfieldProceduralTexture: () => (/* reexport safe */ _starfieldProceduralTexture__WEBPACK_IMPORTED_MODULE_0__.StarfieldProceduralTexture)
24
24
  /* harmony export */ });
25
- /* harmony import */ var _starfieldProceduralTexture__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./starfieldProceduralTexture */ "../../../lts/proceduralTextures/dist/starfield/starfieldProceduralTexture.js");
25
+ /* harmony import */ var _starfieldProceduralTexture__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./starfieldProceduralTexture */ "../../../dev/proceduralTextures/src/starfield/starfieldProceduralTexture.ts");
26
26
 
27
27
 
28
28
 
29
29
  /***/ }),
30
30
 
31
- /***/ "../../../lts/proceduralTextures/dist/starfield/starfieldProceduralTexture.fragment.js":
32
- /*!*********************************************************************************************!*\
33
- !*** ../../../lts/proceduralTextures/dist/starfield/starfieldProceduralTexture.fragment.js ***!
34
- \*********************************************************************************************/
31
+ /***/ "../../../dev/proceduralTextures/src/starfield/starfieldProceduralTexture.fragment.ts":
32
+ /*!********************************************************************************************!*\
33
+ !*** ../../../dev/proceduralTextures/src/starfield/starfieldProceduralTexture.fragment.ts ***!
34
+ \********************************************************************************************/
35
35
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
36
36
 
37
37
  __webpack_require__.r(__webpack_exports__);
38
38
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
39
39
  /* harmony export */ starfieldProceduralTexturePixelShader: () => (/* binding */ starfieldProceduralTexturePixelShader)
40
40
  /* harmony export */ });
41
- /* harmony import */ var core_Engines_shaderStore__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core/Engines/shaderStore */ "core/Misc/decorators");
42
- /* harmony import */ var core_Engines_shaderStore__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_Engines_shaderStore__WEBPACK_IMPORTED_MODULE_0__);
41
+ /* harmony import */ var babylonjs_Engines_shaderStore__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Engines/shaderStore */ "babylonjs/Misc/decorators");
42
+ /* harmony import */ var babylonjs_Engines_shaderStore__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Engines_shaderStore__WEBPACK_IMPORTED_MODULE_0__);
43
43
  // Do not edit.
44
44
 
45
- var name = "starfieldProceduralTexturePixelShader";
46
- var shader = "precision highp float;\n#define volsteps 20\n#define iterations 15\nvarying vec2 vPosition;varying vec2 vUV;uniform float time;uniform float alpha;uniform float beta;uniform float zoom;uniform float formuparam;uniform float stepsize;uniform float tile;uniform float brightness;uniform float darkmatter;uniform float distfading;uniform float saturation;void main()\n{vec3 dir=vec3(vUV*zoom,1.);float localTime=time*0.0001;mat2 rot1=mat2(cos(alpha),sin(alpha),-sin(alpha),cos(alpha));mat2 rot2=mat2(cos(beta),sin(beta),-sin(beta),cos(beta));dir.xz*=rot1;dir.xy*=rot2;vec3 from_=vec3(1.,.5,0.5);from_+=vec3(-2.,localTime*2.,localTime);from_.xz*=rot1;from_.xy*=rot2;float s=0.1,fade=1.;vec3 v=vec3(0.);for (int r=0; r<volsteps; r++) {vec3 p=from_+s*dir*.5;p=abs(vec3(tile)-mod(p,vec3(tile*2.))); \nfloat pa,a=pa=0.;for (int i=0; i<iterations; i++) {p=abs(p)/dot(p,p)-formuparam; \na+=abs(length(p)-pa); \npa=length(p);}\nfloat dm=max(0.,darkmatter-a*a*.001); \na*=a*a; \nif (r>6) fade*=1.-dm; \nv+=fade;v+=vec3(s,s*s,s*s*s*s)*a*brightness*fade; \nfade*=distfading; \ns+=stepsize;}\nv=mix(vec3(length(v)),v,saturation); \ngl_FragColor=vec4(v*.01,1.);}";
45
+ const name = "starfieldProceduralTexturePixelShader";
46
+ const shader = `precision highp float;
47
+ #define volsteps 20
48
+ #define iterations 15
49
+ varying vec2 vPosition;varying vec2 vUV;uniform float time;uniform float alpha;uniform float beta;uniform float zoom;uniform float formuparam;uniform float stepsize;uniform float tile;uniform float brightness;uniform float darkmatter;uniform float distfading;uniform float saturation;void main()
50
+ {vec3 dir=vec3(vUV*zoom,1.);float localTime=time*0.0001;mat2 rot1=mat2(cos(alpha),sin(alpha),-sin(alpha),cos(alpha));mat2 rot2=mat2(cos(beta),sin(beta),-sin(beta),cos(beta));dir.xz*=rot1;dir.xy*=rot2;vec3 from_=vec3(1.,.5,0.5);from_+=vec3(-2.,localTime*2.,localTime);from_.xz*=rot1;from_.xy*=rot2;float s=0.1,fade=1.;vec3 v=vec3(0.);for (int r=0; r<volsteps; r++) {vec3 p=from_+s*dir*.5;p=abs(vec3(tile)-mod(p,vec3(tile*2.)));
51
+ float pa,a=pa=0.;for (int i=0; i<iterations; i++) {p=abs(p)/dot(p,p)-formuparam;
52
+ a+=abs(length(p)-pa);
53
+ pa=length(p);}
54
+ float dm=max(0.,darkmatter-a*a*.001);
55
+ a*=a*a;
56
+ if (r>6) fade*=1.-dm;
57
+ v+=fade;v+=vec3(s,s*s,s*s*s*s)*a*brightness*fade;
58
+ fade*=distfading;
59
+ s+=stepsize;}
60
+ v=mix(vec3(length(v)),v,saturation);
61
+ gl_FragColor=vec4(v*.01,1.);}`;
47
62
  // Sideeffect
48
- core_Engines_shaderStore__WEBPACK_IMPORTED_MODULE_0__.ShaderStore.ShadersStore[name] = shader;
63
+ babylonjs_Engines_shaderStore__WEBPACK_IMPORTED_MODULE_0__.ShaderStore.ShadersStore[name] = shader;
49
64
  /** @internal */
50
- var starfieldProceduralTexturePixelShader = { name: name, shader: shader };
65
+ const starfieldProceduralTexturePixelShader = { name, shader };
51
66
 
52
67
 
53
68
  /***/ }),
54
69
 
55
- /***/ "../../../lts/proceduralTextures/dist/starfield/starfieldProceduralTexture.js":
56
- /*!************************************************************************************!*\
57
- !*** ../../../lts/proceduralTextures/dist/starfield/starfieldProceduralTexture.js ***!
58
- \************************************************************************************/
70
+ /***/ "../../../dev/proceduralTextures/src/starfield/starfieldProceduralTexture.ts":
71
+ /*!***********************************************************************************!*\
72
+ !*** ../../../dev/proceduralTextures/src/starfield/starfieldProceduralTexture.ts ***!
73
+ \***********************************************************************************/
59
74
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
60
75
 
61
76
  __webpack_require__.r(__webpack_exports__);
@@ -63,34 +78,31 @@ __webpack_require__.r(__webpack_exports__);
63
78
  /* harmony export */ StarfieldProceduralTexture: () => (/* binding */ StarfieldProceduralTexture)
64
79
  /* harmony export */ });
65
80
  /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ "../../../../node_modules/tslib/tslib.es6.mjs");
66
- /* harmony import */ var core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core/Misc/typeStore */ "core/Misc/decorators");
67
- /* harmony import */ var core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__);
68
- /* harmony import */ var _starfieldProceduralTexture_fragment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./starfieldProceduralTexture.fragment */ "../../../lts/proceduralTextures/dist/starfield/starfieldProceduralTexture.fragment.js");
69
-
70
-
71
-
72
-
73
-
74
- var StarfieldProceduralTexture = /** @class */ (function (_super) {
75
- (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__extends)(StarfieldProceduralTexture, _super);
76
- function StarfieldProceduralTexture(name, size, scene, fallbackTexture, generateMipMaps) {
77
- if (scene === void 0) { scene = null; }
78
- var _this = _super.call(this, name, size, "starfieldProceduralTexture", scene, fallbackTexture, generateMipMaps) || this;
79
- _this._time = 1;
80
- _this._alpha = 0.5;
81
- _this._beta = 0.8;
82
- _this._zoom = 0.8;
83
- _this._formuparam = 0.53;
84
- _this._stepsize = 0.1;
85
- _this._tile = 0.85;
86
- _this._brightness = 0.0015;
87
- _this._darkmatter = 0.4;
88
- _this._distfading = 0.73;
89
- _this._saturation = 0.85;
90
- _this.updateShaderUniforms();
91
- return _this;
81
+ /* harmony import */ var babylonjs_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Misc/typeStore */ "babylonjs/Misc/decorators");
82
+ /* harmony import */ var babylonjs_Misc_decorators__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__);
83
+ /* harmony import */ var _starfieldProceduralTexture_fragment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./starfieldProceduralTexture.fragment */ "../../../dev/proceduralTextures/src/starfield/starfieldProceduralTexture.fragment.ts");
84
+
85
+
86
+
87
+
88
+
89
+ class StarfieldProceduralTexture extends babylonjs_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.ProceduralTexture {
90
+ constructor(name, size, scene = null, fallbackTexture, generateMipMaps) {
91
+ super(name, size, "starfieldProceduralTexture", scene, fallbackTexture, generateMipMaps);
92
+ this._time = 1;
93
+ this._alpha = 0.5;
94
+ this._beta = 0.8;
95
+ this._zoom = 0.8;
96
+ this._formuparam = 0.53;
97
+ this._stepsize = 0.1;
98
+ this._tile = 0.85;
99
+ this._brightness = 0.0015;
100
+ this._darkmatter = 0.4;
101
+ this._distfading = 0.73;
102
+ this._saturation = 0.85;
103
+ this.updateShaderUniforms();
92
104
  }
93
- StarfieldProceduralTexture.prototype.updateShaderUniforms = function () {
105
+ updateShaderUniforms() {
94
106
  this.setFloat("time", this._time);
95
107
  this.setFloat("alpha", this._alpha);
96
108
  this.setFloat("beta", this._beta);
@@ -102,137 +114,93 @@ var StarfieldProceduralTexture = /** @class */ (function (_super) {
102
114
  this.setFloat("darkmatter", this._darkmatter);
103
115
  this.setFloat("distfading", this._distfading);
104
116
  this.setFloat("saturation", this._saturation);
105
- };
106
- Object.defineProperty(StarfieldProceduralTexture.prototype, "time", {
107
- get: function () {
108
- return this._time;
109
- },
110
- set: function (value) {
111
- this._time = value;
112
- this.updateShaderUniforms();
113
- },
114
- enumerable: false,
115
- configurable: true
116
- });
117
- Object.defineProperty(StarfieldProceduralTexture.prototype, "alpha", {
118
- get: function () {
119
- return this._alpha;
120
- },
121
- set: function (value) {
122
- this._alpha = value;
123
- this.updateShaderUniforms();
124
- },
125
- enumerable: false,
126
- configurable: true
127
- });
128
- Object.defineProperty(StarfieldProceduralTexture.prototype, "beta", {
129
- get: function () {
130
- return this._beta;
131
- },
132
- set: function (value) {
133
- this._beta = value;
134
- this.updateShaderUniforms();
135
- },
136
- enumerable: false,
137
- configurable: true
138
- });
139
- Object.defineProperty(StarfieldProceduralTexture.prototype, "formuparam", {
140
- get: function () {
141
- return this._formuparam;
142
- },
143
- set: function (value) {
144
- this._formuparam = value;
145
- this.updateShaderUniforms();
146
- },
147
- enumerable: false,
148
- configurable: true
149
- });
150
- Object.defineProperty(StarfieldProceduralTexture.prototype, "stepsize", {
151
- get: function () {
152
- return this._stepsize;
153
- },
154
- set: function (value) {
155
- this._stepsize = value;
156
- this.updateShaderUniforms();
157
- },
158
- enumerable: false,
159
- configurable: true
160
- });
161
- Object.defineProperty(StarfieldProceduralTexture.prototype, "zoom", {
162
- get: function () {
163
- return this._zoom;
164
- },
165
- set: function (value) {
166
- this._zoom = value;
167
- this.updateShaderUniforms();
168
- },
169
- enumerable: false,
170
- configurable: true
171
- });
172
- Object.defineProperty(StarfieldProceduralTexture.prototype, "tile", {
173
- get: function () {
174
- return this._tile;
175
- },
176
- set: function (value) {
177
- this._tile = value;
178
- this.updateShaderUniforms();
179
- },
180
- enumerable: false,
181
- configurable: true
182
- });
183
- Object.defineProperty(StarfieldProceduralTexture.prototype, "brightness", {
184
- get: function () {
185
- return this._brightness;
186
- },
187
- set: function (value) {
188
- this._brightness = value;
189
- this.updateShaderUniforms();
190
- },
191
- enumerable: false,
192
- configurable: true
193
- });
194
- Object.defineProperty(StarfieldProceduralTexture.prototype, "darkmatter", {
195
- get: function () {
196
- return this._darkmatter;
197
- },
198
- set: function (value) {
199
- this._darkmatter = value;
200
- this.updateShaderUniforms();
201
- },
202
- enumerable: false,
203
- configurable: true
204
- });
205
- Object.defineProperty(StarfieldProceduralTexture.prototype, "distfading", {
206
- get: function () {
207
- return this._distfading;
208
- },
209
- set: function (value) {
210
- this._distfading = value;
211
- this.updateShaderUniforms();
212
- },
213
- enumerable: false,
214
- configurable: true
215
- });
216
- Object.defineProperty(StarfieldProceduralTexture.prototype, "saturation", {
217
- get: function () {
218
- return this._saturation;
219
- },
220
- set: function (value) {
221
- this._saturation = value;
222
- this.updateShaderUniforms();
223
- },
224
- enumerable: false,
225
- configurable: true
226
- });
117
+ }
118
+ get time() {
119
+ return this._time;
120
+ }
121
+ set time(value) {
122
+ this._time = value;
123
+ this.updateShaderUniforms();
124
+ }
125
+ get alpha() {
126
+ return this._alpha;
127
+ }
128
+ set alpha(value) {
129
+ this._alpha = value;
130
+ this.updateShaderUniforms();
131
+ }
132
+ get beta() {
133
+ return this._beta;
134
+ }
135
+ set beta(value) {
136
+ this._beta = value;
137
+ this.updateShaderUniforms();
138
+ }
139
+ get formuparam() {
140
+ return this._formuparam;
141
+ }
142
+ set formuparam(value) {
143
+ this._formuparam = value;
144
+ this.updateShaderUniforms();
145
+ }
146
+ get stepsize() {
147
+ return this._stepsize;
148
+ }
149
+ set stepsize(value) {
150
+ this._stepsize = value;
151
+ this.updateShaderUniforms();
152
+ }
153
+ get zoom() {
154
+ return this._zoom;
155
+ }
156
+ set zoom(value) {
157
+ this._zoom = value;
158
+ this.updateShaderUniforms();
159
+ }
160
+ get tile() {
161
+ return this._tile;
162
+ }
163
+ set tile(value) {
164
+ this._tile = value;
165
+ this.updateShaderUniforms();
166
+ }
167
+ get brightness() {
168
+ return this._brightness;
169
+ }
170
+ set brightness(value) {
171
+ this._brightness = value;
172
+ this.updateShaderUniforms();
173
+ }
174
+ get darkmatter() {
175
+ return this._darkmatter;
176
+ }
177
+ set darkmatter(value) {
178
+ this._darkmatter = value;
179
+ this.updateShaderUniforms();
180
+ }
181
+ get distfading() {
182
+ return this._distfading;
183
+ }
184
+ set distfading(value) {
185
+ this._distfading = value;
186
+ this.updateShaderUniforms();
187
+ }
188
+ get saturation() {
189
+ return this._saturation;
190
+ }
191
+ set saturation(value) {
192
+ this._saturation = value;
193
+ this.updateShaderUniforms();
194
+ }
227
195
  /**
228
196
  * Serializes this starfield procedural texture
229
197
  * @returns a serialized starfield procedural texture object
230
198
  */
231
- StarfieldProceduralTexture.prototype.serialize = function () {
232
- var serializationObject = core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.SerializationHelper.Serialize(this, _super.prototype.serialize.call(this));
199
+ serialize() {
200
+ const serializationObject = babylonjs_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.SerializationHelper.Serialize(this, super.serialize());
233
201
  serializationObject.customType = "BABYLON.StarfieldProceduralTexture";
234
202
  return serializationObject;
235
- };
203
+ }
236
204
  /**
237
205
  * Creates a Starfield Procedural Texture from parsed startfield procedural texture data
238
206
  * @param parsedTexture defines parsed texture data
@@ -240,57 +208,84 @@ var StarfieldProceduralTexture = /** @class */ (function (_super) {
240
208
  * @param rootUrl defines the root URL containing startfield procedural texture information
241
209
  * @returns a parsed Starfield Procedural Texture
242
210
  */
243
- StarfieldProceduralTexture.Parse = function (parsedTexture, scene, rootUrl) {
244
- var texture = core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.SerializationHelper.Parse(function () { return new StarfieldProceduralTexture(parsedTexture.name, parsedTexture._size, scene, undefined, parsedTexture._generateMipMaps); }, parsedTexture, scene, rootUrl);
211
+ static Parse(parsedTexture, scene, rootUrl) {
212
+ const texture = babylonjs_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.SerializationHelper.Parse(() => new StarfieldProceduralTexture(parsedTexture.name, parsedTexture._size, scene, undefined, parsedTexture._generateMipMaps), parsedTexture, scene, rootUrl);
245
213
  return texture;
246
- };
247
- (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
248
- (0,core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
249
- ], StarfieldProceduralTexture.prototype, "time", null);
250
- (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
251
- (0,core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
252
- ], StarfieldProceduralTexture.prototype, "alpha", null);
253
- (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
254
- (0,core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
255
- ], StarfieldProceduralTexture.prototype, "beta", null);
256
- (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
257
- (0,core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
258
- ], StarfieldProceduralTexture.prototype, "formuparam", null);
259
- (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
260
- (0,core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
261
- ], StarfieldProceduralTexture.prototype, "stepsize", null);
262
- (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
263
- (0,core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
264
- ], StarfieldProceduralTexture.prototype, "zoom", null);
265
- (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
266
- (0,core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
267
- ], StarfieldProceduralTexture.prototype, "tile", null);
268
- (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
269
- (0,core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
270
- ], StarfieldProceduralTexture.prototype, "brightness", null);
271
- (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
272
- (0,core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
273
- ], StarfieldProceduralTexture.prototype, "darkmatter", null);
274
- (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
275
- (0,core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
276
- ], StarfieldProceduralTexture.prototype, "distfading", null);
277
- (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
278
- (0,core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
279
- ], StarfieldProceduralTexture.prototype, "saturation", null);
280
- return StarfieldProceduralTexture;
281
- }(core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.ProceduralTexture));
282
- (0,core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.RegisterClass)("BABYLON.StarfieldProceduralTexture", StarfieldProceduralTexture);
214
+ }
215
+ }
216
+ (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
217
+ (0,babylonjs_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
218
+ ], StarfieldProceduralTexture.prototype, "time", null);
219
+ (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
220
+ (0,babylonjs_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
221
+ ], StarfieldProceduralTexture.prototype, "alpha", null);
222
+ (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
223
+ (0,babylonjs_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
224
+ ], StarfieldProceduralTexture.prototype, "beta", null);
225
+ (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
226
+ (0,babylonjs_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
227
+ ], StarfieldProceduralTexture.prototype, "formuparam", null);
228
+ (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
229
+ (0,babylonjs_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
230
+ ], StarfieldProceduralTexture.prototype, "stepsize", null);
231
+ (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
232
+ (0,babylonjs_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
233
+ ], StarfieldProceduralTexture.prototype, "zoom", null);
234
+ (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
235
+ (0,babylonjs_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
236
+ ], StarfieldProceduralTexture.prototype, "tile", null);
237
+ (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
238
+ (0,babylonjs_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
239
+ ], StarfieldProceduralTexture.prototype, "brightness", null);
240
+ (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
241
+ (0,babylonjs_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
242
+ ], StarfieldProceduralTexture.prototype, "darkmatter", null);
243
+ (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
244
+ (0,babylonjs_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
245
+ ], StarfieldProceduralTexture.prototype, "distfading", null);
246
+ (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
247
+ (0,babylonjs_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
248
+ ], StarfieldProceduralTexture.prototype, "saturation", null);
249
+ (0,babylonjs_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.RegisterClass)("BABYLON.StarfieldProceduralTexture", StarfieldProceduralTexture);
283
250
 
284
251
 
285
252
  /***/ }),
286
253
 
287
- /***/ "core/Misc/decorators":
254
+ /***/ "../../../lts/proceduralTextures/src/legacy/legacy-starfield.ts":
255
+ /*!**********************************************************************!*\
256
+ !*** ../../../lts/proceduralTextures/src/legacy/legacy-starfield.ts ***!
257
+ \**********************************************************************/
258
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
259
+
260
+ __webpack_require__.r(__webpack_exports__);
261
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
262
+ /* harmony export */ StarfieldProceduralTexture: () => (/* reexport safe */ procedural_textures_starfield_index__WEBPACK_IMPORTED_MODULE_0__.StarfieldProceduralTexture)
263
+ /* harmony export */ });
264
+ /* harmony import */ var procedural_textures_starfield_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! procedural-textures/starfield/index */ "../../../dev/proceduralTextures/src/starfield/index.ts");
265
+ /* eslint-disable import/no-internal-modules */
266
+
267
+ /**
268
+ * This is the entry point for the UMD module.
269
+ * The entry point for a future ESM package should be index.ts
270
+ */
271
+ const globalObject = typeof __webpack_require__.g !== "undefined" ? __webpack_require__.g : typeof window !== "undefined" ? window : undefined;
272
+ if (typeof globalObject !== "undefined") {
273
+ for (const key in procedural_textures_starfield_index__WEBPACK_IMPORTED_MODULE_0__) {
274
+ globalObject.BABYLON[key] = procedural_textures_starfield_index__WEBPACK_IMPORTED_MODULE_0__[key];
275
+ }
276
+ }
277
+
278
+
279
+
280
+ /***/ }),
281
+
282
+ /***/ "babylonjs/Misc/decorators":
288
283
  /*!****************************************************************************************************!*\
289
284
  !*** external {"root":"BABYLON","commonjs":"babylonjs","commonjs2":"babylonjs","amd":"babylonjs"} ***!
290
285
  \****************************************************************************************************/
291
286
  /***/ ((module) => {
292
287
 
293
- module.exports = __WEBPACK_EXTERNAL_MODULE_core_Misc_decorators__;
288
+ module.exports = __WEBPACK_EXTERNAL_MODULE_babylonjs_Misc_decorators__;
294
289
 
295
290
  /***/ }),
296
291
 
@@ -746,22 +741,14 @@ var __webpack_exports__ = {};
746
741
  \**************************/
747
742
  __webpack_require__.r(__webpack_exports__);
748
743
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
749
- /* harmony export */ StarfieldProceduralTexture: () => (/* reexport safe */ procedural_textures_starfield_index__WEBPACK_IMPORTED_MODULE_0__.StarfieldProceduralTexture)
744
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
745
+ /* harmony export */ proceduralTexture: () => (/* reexport module object */ _lts_procedural_textures_legacy_legacy_starfield__WEBPACK_IMPORTED_MODULE_0__)
750
746
  /* harmony export */ });
751
- /* harmony import */ var procedural_textures_starfield_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! procedural-textures/starfield/index */ "../../../lts/proceduralTextures/dist/starfield/index.js");
747
+ /* harmony import */ var _lts_procedural_textures_legacy_legacy_starfield__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @lts/procedural-textures/legacy/legacy-starfield */ "../../../lts/proceduralTextures/src/legacy/legacy-starfield.ts");
752
748
  /* eslint-disable import/no-internal-modules */
753
749
 
754
- /**
755
- * This is the entry point for the UMD module.
756
- * The entry point for a future ESM package should be index.ts
757
- */
758
- const globalObject = typeof __webpack_require__.g !== "undefined" ? __webpack_require__.g : typeof window !== "undefined" ? window : undefined;
759
- if (typeof globalObject !== "undefined") {
760
- for (const key in procedural_textures_starfield_index__WEBPACK_IMPORTED_MODULE_0__) {
761
- globalObject.BABYLON[key] = procedural_textures_starfield_index__WEBPACK_IMPORTED_MODULE_0__[key];
762
- }
763
- }
764
750
 
751
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_lts_procedural_textures_legacy_legacy_starfield__WEBPACK_IMPORTED_MODULE_0__);
765
752
 
766
753
  })();
767
754