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.
- package/babylon.brickProceduralTexture.js +128 -115
- package/babylon.brickProceduralTexture.js.map +1 -1
- package/babylon.brickProceduralTexture.min.js +1 -1
- package/babylon.brickProceduralTexture.min.js.map +1 -1
- package/babylon.cloudProceduralTexture.js +126 -115
- package/babylon.cloudProceduralTexture.js.map +1 -1
- package/babylon.cloudProceduralTexture.min.js +1 -1
- package/babylon.cloudProceduralTexture.min.js.map +1 -1
- package/babylon.fireProceduralTexture.js +146 -162
- package/babylon.fireProceduralTexture.js.map +1 -1
- package/babylon.fireProceduralTexture.min.js +1 -1
- package/babylon.fireProceduralTexture.min.js.map +1 -1
- package/babylon.grassProceduralTexture.js +103 -86
- package/babylon.grassProceduralTexture.js.map +1 -1
- package/babylon.grassProceduralTexture.min.js +1 -1
- package/babylon.grassProceduralTexture.min.js.map +1 -1
- package/babylon.marbleProceduralTexture.js +115 -115
- package/babylon.marbleProceduralTexture.js.map +1 -1
- package/babylon.marbleProceduralTexture.min.js +1 -1
- package/babylon.marbleProceduralTexture.min.js.map +1 -1
- package/babylon.normalMapProceduralTexture.js +94 -78
- package/babylon.normalMapProceduralTexture.js.map +1 -1
- package/babylon.normalMapProceduralTexture.min.js +1 -1
- package/babylon.normalMapProceduralTexture.min.js.map +1 -1
- package/babylon.perlinNoiseProceduralTexture.js +130 -76
- package/babylon.perlinNoiseProceduralTexture.js.map +1 -1
- package/babylon.perlinNoiseProceduralTexture.min.js +1 -1
- package/babylon.perlinNoiseProceduralTexture.min.js.map +1 -1
- package/babylon.roadProceduralTexture.js +92 -70
- package/babylon.roadProceduralTexture.js.map +1 -1
- package/babylon.roadProceduralTexture.min.js +1 -1
- package/babylon.roadProceduralTexture.min.js.map +1 -1
- package/babylon.starfieldProceduralTexture.js +212 -225
- package/babylon.starfieldProceduralTexture.js.map +1 -1
- package/babylon.starfieldProceduralTexture.min.js +1 -1
- package/babylon.starfieldProceduralTexture.min.js.map +1 -1
- package/babylon.woodProceduralTexture.js +102 -85
- package/babylon.woodProceduralTexture.js.map +1 -1
- package/babylon.woodProceduralTexture.min.js +1 -1
- package/babylon.woodProceduralTexture.min.js.map +1 -1
- package/babylonjs.proceduralTextures.d.ts +20 -20
- package/babylonjs.proceduralTextures.js +959 -1038
- package/babylonjs.proceduralTextures.js.map +1 -1
- package/babylonjs.proceduralTextures.min.js +1 -1
- package/babylonjs.proceduralTextures.min.js.map +1 -1
- package/babylonjs.proceduralTextures.module.d.ts +64 -64
- package/config.json +1 -1
- package/package.json +3 -3
- package/src/brick.ts +3 -14
- package/src/cloud.ts +3 -14
- package/src/fire.ts +3 -14
- package/src/grass.ts +3 -14
- package/src/index.ts +1 -1
- package/src/marble.ts +3 -14
- package/src/normalMap.ts +3 -14
- package/src/perlinNoise.ts +3 -14
- package/src/road.ts +3 -14
- package/src/starfield.ts +3 -14
- package/src/wood.ts +3 -14
- package/tsconfig.build.json +6 -3
- package/tsconfig.json +2 -1
- 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), (
|
|
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
|
-
/***/ "../../../
|
|
16
|
-
|
|
17
|
-
!*** ../../../
|
|
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 */ "../../../
|
|
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
|
-
/***/ "../../../
|
|
32
|
-
|
|
33
|
-
!*** ../../../
|
|
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
|
|
42
|
-
/* harmony import */ var
|
|
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
|
-
|
|
46
|
-
|
|
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
|
-
|
|
63
|
+
babylonjs_Engines_shaderStore__WEBPACK_IMPORTED_MODULE_0__.ShaderStore.ShadersStore[name] = shader;
|
|
49
64
|
/** @internal */
|
|
50
|
-
|
|
65
|
+
const starfieldProceduralTexturePixelShader = { name, shader };
|
|
51
66
|
|
|
52
67
|
|
|
53
68
|
/***/ }),
|
|
54
69
|
|
|
55
|
-
/***/ "../../../
|
|
56
|
-
|
|
57
|
-
!*** ../../../
|
|
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
|
|
67
|
-
/* harmony import */ var
|
|
68
|
-
/* harmony import */ var _starfieldProceduralTexture_fragment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./starfieldProceduralTexture.fragment */ "../../../
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
(
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
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
|
-
|
|
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
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
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
|
-
|
|
232
|
-
|
|
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
|
-
|
|
244
|
-
|
|
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
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
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
|
-
/***/ "
|
|
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 =
|
|
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 */
|
|
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
|
|
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
|
|