babylonjs-procedural-textures 6.11.0 → 6.11.2

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 (47) hide show
  1. package/babylon.brickProceduralTexture.js +109 -102
  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 +109 -100
  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 +156 -120
  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 +80 -77
  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 +109 -89
  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 +72 -68
  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 +70 -104
  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 +64 -66
  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 +219 -186
  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 +79 -76
  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.js +1001 -922
  42. package/babylonjs.proceduralTextures.js.map +1 -1
  43. package/babylonjs.proceduralTextures.min.js +1 -1
  44. package/babylonjs.proceduralTextures.min.js.map +1 -1
  45. package/package.json +3 -3
  46. package/tsconfig.build.json +7 -4
  47. package/webpack.config.js +2 -2
@@ -7,70 +7,55 @@
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
- /***/ "../../../dev/proceduralTextures/dist/starfield/index.js":
16
- /*!***************************************************************!*\
17
- !*** ../../../dev/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 */ "../../../dev/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
- /***/ "../../../dev/proceduralTextures/dist/starfield/starfieldProceduralTexture.fragment.js":
32
- /*!*********************************************************************************************!*\
33
- !*** ../../../dev/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
- 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.);}`;
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.);}";
62
47
  // Sideeffect
63
- core_Engines_shaderStore__WEBPACK_IMPORTED_MODULE_0__.ShaderStore.ShadersStore[name] = shader;
48
+ babylonjs_Engines_shaderStore__WEBPACK_IMPORTED_MODULE_0__.ShaderStore.ShadersStore[name] = shader;
64
49
  /** @internal */
65
- const starfieldProceduralTexturePixelShader = { name, shader };
50
+ var starfieldProceduralTexturePixelShader = { name: name, shader: shader };
66
51
 
67
52
 
68
53
  /***/ }),
69
54
 
70
- /***/ "../../../dev/proceduralTextures/dist/starfield/starfieldProceduralTexture.js":
71
- /*!************************************************************************************!*\
72
- !*** ../../../dev/proceduralTextures/dist/starfield/starfieldProceduralTexture.js ***!
73
- \************************************************************************************/
55
+ /***/ "../../../dev/proceduralTextures/src/starfield/starfieldProceduralTexture.ts":
56
+ /*!***********************************************************************************!*\
57
+ !*** ../../../dev/proceduralTextures/src/starfield/starfieldProceduralTexture.ts ***!
58
+ \***********************************************************************************/
74
59
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
75
60
 
76
61
  __webpack_require__.r(__webpack_exports__);
@@ -78,31 +63,34 @@ __webpack_require__.r(__webpack_exports__);
78
63
  /* harmony export */ StarfieldProceduralTexture: () => (/* binding */ StarfieldProceduralTexture)
79
64
  /* harmony export */ });
80
65
  /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ "../../../../node_modules/tslib/tslib.es6.mjs");
81
- /* harmony import */ var core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core/Misc/typeStore */ "core/Misc/decorators");
82
- /* harmony import */ var core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__);
83
- /* harmony import */ var _starfieldProceduralTexture_fragment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./starfieldProceduralTexture.fragment */ "../../../dev/proceduralTextures/dist/starfield/starfieldProceduralTexture.fragment.js");
84
-
85
-
86
-
87
-
88
-
89
- class StarfieldProceduralTexture extends core_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();
66
+ /* harmony import */ var babylonjs_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Misc/typeStore */ "babylonjs/Misc/decorators");
67
+ /* harmony import */ var babylonjs_Misc_decorators__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__);
68
+ /* harmony import */ var _starfieldProceduralTexture_fragment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./starfieldProceduralTexture.fragment */ "../../../dev/proceduralTextures/src/starfield/starfieldProceduralTexture.fragment.ts");
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;
104
92
  }
105
- updateShaderUniforms() {
93
+ StarfieldProceduralTexture.prototype.updateShaderUniforms = function () {
106
94
  this.setFloat("time", this._time);
107
95
  this.setFloat("alpha", this._alpha);
108
96
  this.setFloat("beta", this._beta);
@@ -114,93 +102,137 @@ class StarfieldProceduralTexture extends core_Misc_decorators__WEBPACK_IMPORTED_
114
102
  this.setFloat("darkmatter", this._darkmatter);
115
103
  this.setFloat("distfading", this._distfading);
116
104
  this.setFloat("saturation", this._saturation);
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
- }
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
+ });
195
227
  /**
196
228
  * Serializes this starfield procedural texture
197
229
  * @returns a serialized starfield procedural texture object
198
230
  */
199
- serialize() {
200
- const serializationObject = core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.SerializationHelper.Serialize(this, super.serialize());
231
+ StarfieldProceduralTexture.prototype.serialize = function () {
232
+ var serializationObject = babylonjs_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.SerializationHelper.Serialize(this, _super.prototype.serialize.call(this));
201
233
  serializationObject.customType = "BABYLON.StarfieldProceduralTexture";
202
234
  return serializationObject;
203
- }
235
+ };
204
236
  /**
205
237
  * Creates a Starfield Procedural Texture from parsed startfield procedural texture data
206
238
  * @param parsedTexture defines parsed texture data
@@ -208,60 +240,61 @@ class StarfieldProceduralTexture extends core_Misc_decorators__WEBPACK_IMPORTED_
208
240
  * @param rootUrl defines the root URL containing startfield procedural texture information
209
241
  * @returns a parsed Starfield Procedural Texture
210
242
  */
211
- static Parse(parsedTexture, scene, rootUrl) {
212
- const texture = core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.SerializationHelper.Parse(() => new StarfieldProceduralTexture(parsedTexture.name, parsedTexture._size, scene, undefined, parsedTexture._generateMipMaps), parsedTexture, scene, rootUrl);
243
+ StarfieldProceduralTexture.Parse = function (parsedTexture, scene, rootUrl) {
244
+ var texture = babylonjs_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.SerializationHelper.Parse(function () { return new StarfieldProceduralTexture(parsedTexture.name, parsedTexture._size, scene, undefined, parsedTexture._generateMipMaps); }, parsedTexture, scene, rootUrl);
213
245
  return texture;
214
- }
215
- }
216
- (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
217
- (0,core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
218
- ], StarfieldProceduralTexture.prototype, "time", null);
219
- (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
220
- (0,core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
221
- ], StarfieldProceduralTexture.prototype, "alpha", null);
222
- (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
223
- (0,core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
224
- ], StarfieldProceduralTexture.prototype, "beta", null);
225
- (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
226
- (0,core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
227
- ], StarfieldProceduralTexture.prototype, "formuparam", null);
228
- (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
229
- (0,core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
230
- ], StarfieldProceduralTexture.prototype, "stepsize", null);
231
- (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
232
- (0,core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
233
- ], StarfieldProceduralTexture.prototype, "zoom", null);
234
- (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
235
- (0,core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
236
- ], StarfieldProceduralTexture.prototype, "tile", null);
237
- (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
238
- (0,core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
239
- ], StarfieldProceduralTexture.prototype, "brightness", null);
240
- (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
241
- (0,core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
242
- ], StarfieldProceduralTexture.prototype, "darkmatter", null);
243
- (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
244
- (0,core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
245
- ], StarfieldProceduralTexture.prototype, "distfading", null);
246
- (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
247
- (0,core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
248
- ], StarfieldProceduralTexture.prototype, "saturation", null);
249
- (0,core_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.RegisterClass)("BABYLON.StarfieldProceduralTexture", StarfieldProceduralTexture);
246
+ };
247
+ (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
248
+ (0,babylonjs_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
249
+ ], StarfieldProceduralTexture.prototype, "time", null);
250
+ (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
251
+ (0,babylonjs_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
252
+ ], StarfieldProceduralTexture.prototype, "alpha", null);
253
+ (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
254
+ (0,babylonjs_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
255
+ ], StarfieldProceduralTexture.prototype, "beta", null);
256
+ (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
257
+ (0,babylonjs_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
258
+ ], StarfieldProceduralTexture.prototype, "formuparam", null);
259
+ (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
260
+ (0,babylonjs_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
261
+ ], StarfieldProceduralTexture.prototype, "stepsize", null);
262
+ (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
263
+ (0,babylonjs_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
264
+ ], StarfieldProceduralTexture.prototype, "zoom", null);
265
+ (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
266
+ (0,babylonjs_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
267
+ ], StarfieldProceduralTexture.prototype, "tile", null);
268
+ (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
269
+ (0,babylonjs_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
270
+ ], StarfieldProceduralTexture.prototype, "brightness", null);
271
+ (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
272
+ (0,babylonjs_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
273
+ ], StarfieldProceduralTexture.prototype, "darkmatter", null);
274
+ (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
275
+ (0,babylonjs_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
276
+ ], StarfieldProceduralTexture.prototype, "distfading", null);
277
+ (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
278
+ (0,babylonjs_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.serialize)()
279
+ ], StarfieldProceduralTexture.prototype, "saturation", null);
280
+ return StarfieldProceduralTexture;
281
+ }(babylonjs_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.ProceduralTexture));
282
+ (0,babylonjs_Misc_decorators__WEBPACK_IMPORTED_MODULE_0__.RegisterClass)("BABYLON.StarfieldProceduralTexture", StarfieldProceduralTexture);
250
283
 
251
284
 
252
285
  /***/ }),
253
286
 
254
- /***/ "../../../lts/proceduralTextures/dist/legacy/legacy-starfield.js":
255
- /*!***********************************************************************!*\
256
- !*** ../../../lts/proceduralTextures/dist/legacy/legacy-starfield.js ***!
257
- \***********************************************************************/
287
+ /***/ "../../../lts/proceduralTextures/src/legacy/legacy-starfield.ts":
288
+ /*!**********************************************************************!*\
289
+ !*** ../../../lts/proceduralTextures/src/legacy/legacy-starfield.ts ***!
290
+ \**********************************************************************/
258
291
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
259
292
 
260
293
  __webpack_require__.r(__webpack_exports__);
261
294
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
262
295
  /* harmony export */ StarfieldProceduralTexture: () => (/* reexport safe */ procedural_textures_starfield_index__WEBPACK_IMPORTED_MODULE_0__.StarfieldProceduralTexture)
263
296
  /* harmony export */ });
264
- /* harmony import */ var procedural_textures_starfield_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! procedural-textures/starfield/index */ "../../../dev/proceduralTextures/dist/starfield/index.js");
297
+ /* harmony import */ var procedural_textures_starfield_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! procedural-textures/starfield/index */ "../../../dev/proceduralTextures/src/starfield/index.ts");
265
298
  /* eslint-disable import/no-internal-modules */
266
299
 
267
300
  /**
@@ -279,13 +312,13 @@ if (typeof globalObject !== "undefined") {
279
312
 
280
313
  /***/ }),
281
314
 
282
- /***/ "core/Misc/decorators":
315
+ /***/ "babylonjs/Misc/decorators":
283
316
  /*!****************************************************************************************************!*\
284
317
  !*** external {"root":"BABYLON","commonjs":"babylonjs","commonjs2":"babylonjs","amd":"babylonjs"} ***!
285
318
  \****************************************************************************************************/
286
319
  /***/ ((module) => {
287
320
 
288
- module.exports = __WEBPACK_EXTERNAL_MODULE_core_Misc_decorators__;
321
+ module.exports = __WEBPACK_EXTERNAL_MODULE_babylonjs_Misc_decorators__;
289
322
 
290
323
  /***/ }),
291
324
 
@@ -744,7 +777,7 @@ __webpack_require__.r(__webpack_exports__);
744
777
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
745
778
  /* harmony export */ proceduralTexture: () => (/* reexport module object */ _lts_procedural_textures_legacy_legacy_starfield__WEBPACK_IMPORTED_MODULE_0__)
746
779
  /* harmony export */ });
747
- /* harmony import */ var _lts_procedural_textures_legacy_legacy_starfield__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @lts/procedural-textures/legacy/legacy-starfield */ "../../../lts/proceduralTextures/dist/legacy/legacy-starfield.js");
780
+ /* 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");
748
781
  /* eslint-disable import/no-internal-modules */
749
782
 
750
783