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.
- package/babylon.brickProceduralTexture.js +109 -102
- 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 +109 -100
- 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 +156 -120
- 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 +80 -77
- 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 +109 -89
- 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 +72 -68
- 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 +70 -104
- 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 +64 -66
- 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 +219 -186
- 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 +79 -76
- 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.js +1001 -922
- package/babylonjs.proceduralTextures.js.map +1 -1
- package/babylonjs.proceduralTextures.min.js +1 -1
- package/babylonjs.proceduralTextures.min.js.map +1 -1
- package/package.json +3 -3
- package/tsconfig.build.json +7 -4
- 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), (
|
|
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/
|
|
16
|
-
|
|
17
|
-
!*** ../../../dev/proceduralTextures/
|
|
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/
|
|
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/
|
|
32
|
-
|
|
33
|
-
!*** ../../../dev/proceduralTextures/
|
|
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
|
-
|
|
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
|
-
|
|
48
|
+
babylonjs_Engines_shaderStore__WEBPACK_IMPORTED_MODULE_0__.ShaderStore.ShadersStore[name] = shader;
|
|
64
49
|
/** @internal */
|
|
65
|
-
|
|
50
|
+
var starfieldProceduralTexturePixelShader = { name: name, shader: shader };
|
|
66
51
|
|
|
67
52
|
|
|
68
53
|
/***/ }),
|
|
69
54
|
|
|
70
|
-
/***/ "../../../dev/proceduralTextures/
|
|
71
|
-
|
|
72
|
-
!*** ../../../dev/proceduralTextures/
|
|
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
|
|
82
|
-
/* harmony import */ var
|
|
83
|
-
/* harmony import */ var _starfieldProceduralTexture_fragment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./starfieldProceduralTexture.fragment */ "../../../dev/proceduralTextures/
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
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
|
-
|
|
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
|
-
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
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
|
-
|
|
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
|
-
|
|
212
|
-
|
|
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,
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
(0,
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
(0,
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
(0,
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
(0,
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
(0,
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
(0,
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
(0,
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
(0,
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
(0,
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
(0,
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
(
|
|
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/
|
|
255
|
-
|
|
256
|
-
!*** ../../../lts/proceduralTextures/
|
|
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/
|
|
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
|
-
/***/ "
|
|
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 =
|
|
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/
|
|
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
|
|