@babylonjs/gui 9.15.0 → 9.16.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 (64) hide show
  1. package/2D/controls/checkbox.pure.js +164 -153
  2. package/2D/controls/checkbox.pure.js.map +1 -1
  3. package/2D/controls/colorpicker.pure.js +1300 -1289
  4. package/2D/controls/colorpicker.pure.js.map +1 -1
  5. package/2D/controls/container.pure.js +597 -582
  6. package/2D/controls/container.pure.js.map +1 -1
  7. package/2D/controls/control.pure.js +2474 -2434
  8. package/2D/controls/control.pure.js.map +1 -1
  9. package/2D/controls/displayGrid.pure.js +201 -190
  10. package/2D/controls/displayGrid.pure.js.map +1 -1
  11. package/2D/controls/ellipse.pure.js +96 -85
  12. package/2D/controls/ellipse.pure.js.map +1 -1
  13. package/2D/controls/grid.pure.js +511 -500
  14. package/2D/controls/grid.pure.js.map +1 -1
  15. package/2D/controls/image.pure.js +888 -877
  16. package/2D/controls/image.pure.js.map +1 -1
  17. package/2D/controls/inputText.pure.js +988 -973
  18. package/2D/controls/inputText.pure.js.map +1 -1
  19. package/2D/controls/inputTextArea.pure.js +955 -944
  20. package/2D/controls/inputTextArea.pure.js.map +1 -1
  21. package/2D/controls/line.pure.js +237 -226
  22. package/2D/controls/line.pure.js.map +1 -1
  23. package/2D/controls/multiLine.pure.js +233 -222
  24. package/2D/controls/multiLine.pure.js.map +1 -1
  25. package/2D/controls/radioButton.pure.js +182 -169
  26. package/2D/controls/radioButton.pure.js.map +1 -1
  27. package/2D/controls/rectangle.pure.js +211 -200
  28. package/2D/controls/rectangle.pure.js.map +1 -1
  29. package/2D/controls/scrollViewers/scrollViewer.pure.js +579 -567
  30. package/2D/controls/scrollViewers/scrollViewer.pure.js.map +1 -1
  31. package/2D/controls/sliders/baseSlider.js +291 -280
  32. package/2D/controls/sliders/baseSlider.js.map +1 -1
  33. package/2D/controls/sliders/imageBasedSlider.pure.js +158 -147
  34. package/2D/controls/sliders/imageBasedSlider.pure.js.map +1 -1
  35. package/2D/controls/sliders/imageScrollBar.js +237 -223
  36. package/2D/controls/sliders/imageScrollBar.js.map +1 -1
  37. package/2D/controls/sliders/scrollBar.pure.js +169 -158
  38. package/2D/controls/sliders/scrollBar.pure.js.map +1 -1
  39. package/2D/controls/sliders/slider.pure.js +251 -240
  40. package/2D/controls/sliders/slider.pure.js.map +1 -1
  41. package/2D/controls/stackPanel.pure.js +236 -221
  42. package/2D/controls/stackPanel.pure.js.map +1 -1
  43. package/2D/controls/textBlock.pure.js +637 -626
  44. package/2D/controls/textBlock.pure.js.map +1 -1
  45. package/3D/materials/fluent/fluentMaterial.pure.d.ts +4 -4
  46. package/3D/materials/fluent/fluentMaterial.pure.js +322 -273
  47. package/3D/materials/fluent/fluentMaterial.pure.js.map +1 -1
  48. package/3D/materials/fluentBackplate/fluentBackplateMaterial.pure.js +510 -454
  49. package/3D/materials/fluentBackplate/fluentBackplateMaterial.pure.js.map +1 -1
  50. package/3D/materials/fluentButton/fluentButtonMaterial.pure.js +612 -529
  51. package/3D/materials/fluentButton/fluentButtonMaterial.pure.js.map +1 -1
  52. package/3D/materials/mrdl/mrdlBackglowMaterial.pure.js +313 -274
  53. package/3D/materials/mrdl/mrdlBackglowMaterial.pure.js.map +1 -1
  54. package/3D/materials/mrdl/mrdlBackplateMaterial.pure.js +462 -405
  55. package/3D/materials/mrdl/mrdlBackplateMaterial.pure.js.map +1 -1
  56. package/3D/materials/mrdl/mrdlFrontplateMaterial.pure.js +583 -501
  57. package/3D/materials/mrdl/mrdlFrontplateMaterial.pure.js.map +1 -1
  58. package/3D/materials/mrdl/mrdlInnerquadMaterial.pure.js +226 -203
  59. package/3D/materials/mrdl/mrdlInnerquadMaterial.pure.js.map +1 -1
  60. package/3D/materials/mrdl/mrdlSliderBarMaterial.pure.js +961 -825
  61. package/3D/materials/mrdl/mrdlSliderBarMaterial.pure.js.map +1 -1
  62. package/3D/materials/mrdl/mrdlSliderThumbMaterial.pure.js +961 -825
  63. package/3D/materials/mrdl/mrdlSliderThumbMaterial.pure.js.map +1 -1
  64. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import { __decorate } from "@babylonjs/core/tslib.es6.js";
1
+ import { __esDecorate, __runInitializers } from "@babylonjs/core/tslib.es6.js";
2
2
  import { serialize } from "@babylonjs/core/Misc/decorators.js";
3
3
  import { SerializationHelper } from "@babylonjs/core/Misc/decorators.serialization.js";
4
4
  import { Vector2, Vector3, Vector4 } from "@babylonjs/core/Maths/math.vector.pure.js";
@@ -30,838 +30,974 @@ class MRDLSliderBarMaterialDefines extends MaterialDefines {
30
30
  /**
31
31
  * Class used to render Slider Bar material with MRDL
32
32
  */
33
- export class MRDLSliderBarMaterial extends PushMaterial {
34
- constructor(name, scene) {
35
- super(name, scene);
36
- /**
37
- * Gets or sets the corner Radius on the slider bar.
38
- */
39
- this.radius = 0.6;
40
- /**
41
- * Gets or sets the Bevel Front on the slider bar.
42
- */
43
- this.bevelFront = 0.6;
44
- /**
45
- * Gets or sets the Bevel Front Stretch on the slider bar.
46
- */
47
- this.bevelFrontStretch = 0.077;
48
- /**
49
- * Gets or sets the Bevel Back on the slider bar.
50
- */
51
- this.bevelBack = 0;
52
- /**
53
- * Gets or sets the Bevel Back Stretch on the slider bar.
54
- */
55
- this.bevelBackStretch = 0;
56
- /**
57
- * Gets or sets the top left Radii Multiplier.
58
- */
59
- this.radiusTopLeft = 1.0;
60
- /**
61
- * Gets or sets the top left Radii Multiplier.
62
- */
63
- this.radiusTopRight = 1.0;
64
- /**
65
- * Gets or sets the top left Radii Multiplier.
66
- */
67
- this.radiusBottomLeft = 1.0;
68
- /**
69
- * Gets or sets the top left Radii Multiplier.
70
- */
71
- this.radiusBottomRight = 1.0;
72
- /**
73
- * Gets or sets whether Bulge is enabled.
74
- * Default is false.
75
- */
76
- this.bulgeEnabled = false;
77
- /**
78
- * Gets or sets the Bulge Height.
79
- */
80
- this.bulgeHeight = -0.323;
81
- /**
82
- * Gets or sets the Bulge Radius.
83
- */
84
- this.bulgeRadius = 0.73;
85
- /**
86
- * Gets or sets the Sun Intensity.
87
- */
88
- this.sunIntensity = 1.102;
89
- /**
90
- * Gets or sets the Sun Theta.
91
- */
92
- this.sunTheta = 0.76;
93
- /**
94
- * Gets or sets the Sun Phi.
95
- */
96
- this.sunPhi = 0.526;
97
- /**
98
- * Gets or sets the Indirect Diffuse.
99
- */
100
- this.indirectDiffuse = 0.658;
101
- /**
102
- * Gets or sets the base albedo.
103
- */
104
- this.albedo = new Color4(0.0117647, 0.505882, 0.996078, 1);
105
- /**
106
- * Gets or sets the Specular value.
107
- */
108
- this.specular = 0;
109
- /**
110
- * Gets or sets the Shininess value.
111
- */
112
- this.shininess = 10;
113
- /**
114
- * Gets or sets the Sharpness value.
115
- */
116
- this.sharpness = 0;
117
- /**
118
- * Gets or sets the Subsurface value.
119
- */
120
- this.subsurface = 0;
121
- /**
122
- * Gets or sets the left gradient color.
123
- */
124
- this.leftGradientColor = new Color4(0.0117647, 0.505882, 0.996078, 1);
125
- /**
126
- * Gets or sets the right gradient color.
127
- */
128
- this.rightGradientColor = new Color4(0.0117647, 0.505882, 0.996078, 1);
129
- /**
130
- * Gets or sets the reflection value.
131
- */
132
- this.reflection = 0.749;
133
- /**
134
- * Gets or sets the front reflect value.
135
- */
136
- this.frontReflect = 0;
137
- /**
138
- * Gets or sets the edge reflect value.
139
- */
140
- this.edgeReflect = 0.09;
141
- /**
142
- * Gets or sets the power value.
143
- */
144
- this.power = 8.13;
145
- /**
146
- * Gets or sets the sky color.
147
- */
148
- this.skyColor = new Color4(0.0117647, 0.964706, 0.996078, 1);
149
- /**
150
- * Gets or sets the horizon color.
151
- */
152
- this.horizonColor = new Color4(0.0117647, 0.333333, 0.996078, 1);
153
- /**
154
- * Gets or sets the ground color.
155
- */
156
- this.groundColor = new Color4(0, 0.254902, 0.996078, 1);
157
- /**
158
- * Gets or sets the horizon power value.
159
- */
160
- this.horizonPower = 1;
161
- /**
162
- * Gets or sets the finger occlusion width value.
163
- */
164
- this.width = 0.02;
165
- /**
166
- * Gets or sets the finger occlusion fuzz value.
167
- */
168
- this.fuzz = 0.5;
169
- /**
170
- * Gets or sets the minimum finger occlusion fuzz value.
171
- */
172
- this.minFuzz = 0.001;
173
- /**
174
- * Gets or sets the finger occlusion clip fade value.
175
- */
176
- this.clipFade = 0.01;
177
- /**
178
- * Gets or sets the hue shift value.
179
- */
180
- this.hueShift = 0;
181
- /**
182
- * Gets or sets the saturation shift value.
183
- */
184
- this.saturationShift = 0;
185
- /**
186
- * Gets or sets the value shift.
187
- */
188
- this.valueShift = 0;
189
- /**
190
- * Gets or sets the position of the hover glow effect.
191
- */
192
- this.blobPosition = new Vector3(0, 0, 0.1);
193
- /**
194
- * Gets or sets the intensity of the hover glow effect.
195
- */
196
- this.blobIntensity = 0.5;
197
- /**
198
- * Gets or sets the near size of the hover glow effect.
199
- */
200
- this.blobNearSize = 0.01;
201
- /**
202
- * Gets or sets the far size of the hover glow effect.
203
- */
204
- this.blobFarSize = 0.03;
205
- /**
206
- * Gets or sets the distance considered "near" to the mesh, which controls the size of the hover glow effect (see blobNearSize).
207
- */
208
- this.blobNearDistance = 0;
209
- /**
210
- * Gets or sets the distance considered "far" from the mesh, which controls the size of the hover glow effect (see blobFarSize).
211
- */
212
- this.blobFarDistance = 0.08;
213
- /**
214
- * Gets or sets the length of the hover glow effect fade.
215
- */
216
- this.blobFadeLength = 0.576;
217
- /**
218
- * Gets or sets the progress of the hover glow effect selection animation corresponding to the left pointer (0.0 - 1.0).
219
- */
220
- this.blobPulse = 0;
221
- /**
222
- * Gets or sets the opacity of the hover glow effect corresponding to the left pointer (0.0 - 1.0). Default is 0.
223
- */
224
- this.blobFade = 1;
225
- /**
226
- * Gets or sets the position of the hover glow effect.
227
- */
228
- this.blobPosition2 = new Vector3(0.2, 0, 0.1);
229
- /**
230
- * Gets or sets the size of the hover glow effect when the right pointer is considered "near" to the mesh (see blobNearDistance).
231
- */
232
- this.blobNearSize2 = 0.01;
233
- /**
234
- * Gets or sets the progress of the hover glow effect selection animation corresponding to the right pointer (0.0 - 1.0).
235
- */
236
- this.blobPulse2 = 0;
237
- /**
238
- * Gets or sets the opacity of the hover glow effect corresponding to the right pointer (0.0 - 1.0). Default is 1.
239
- */
240
- this.blobFade2 = 1;
241
- /**
242
- * Gets or sets the texture of the hover glow effect.
243
- */
244
- this.blobTexture = new Texture("", this.getScene());
245
- /**
246
- * Gets or sets the finger position for left index.
247
- */
248
- this.leftIndexPosition = new Vector3(0, 0, 1);
249
- /**
250
- * Gets or sets the finger position for right index.
251
- */
252
- this.rightIndexPosition = new Vector3(-1, -1, -1);
253
- /**
254
- * Gets or sets the finger position for left index middle position.
255
- */
256
- this.leftIndexMiddlePosition = new Vector3(0, 0, 0);
257
- /**
258
- * Gets or sets the finger position for right index middle position.
259
- */
260
- this.rightIndexMiddlePosition = new Vector3(0, 0, 0);
261
- /**
262
- * Gets or sets the Decal Scle for XY.
263
- */
264
- this.decalScaleXY = new Vector2(1.5, 1.5);
265
- /**
266
- * Gets or sets decalFrontOnly
267
- * Default is true
268
- */
269
- this.decalFrontOnly = true;
270
- /**
271
- * Gets or sets the Rim Light intensity.
272
- */
273
- this.rimIntensity = 0.287;
274
- /**
275
- * Gets or sets the Rim Light hue shift value.
276
- */
277
- this.rimHueShift = 0;
278
- /**
279
- * Gets or sets the Rim Light saturation shift value.
280
- */
281
- this.rimSaturationShift = 0;
282
- /**
283
- * Gets or sets the Rim Light value shift.
284
- */
285
- this.rimValueShift = -1;
286
- /**
287
- * Gets or sets the intensity of the iridescence effect.
288
- */
289
- this.iridescenceIntensity = 0;
290
- /**
291
- * @internal
292
- */
293
- this.useGlobalLeftIndex = 1.0;
294
- /**
295
- * @internal
296
- */
297
- this.useGlobalRightIndex = 1.0;
298
- /**
299
- * @internal
300
- */
301
- this.globalLeftIndexTipProximity = 0.0;
302
- /**
303
- * @internal
304
- */
305
- this.globalRightIndexTipProximity = 0.0;
306
- /**
307
- * @internal
308
- */
309
- this.globalLeftIndexTipPosition = new Vector4(0.5, 0.0, -0.55, 1.0);
310
- /**
311
- * @internal
312
- */
313
- this.globaRightIndexTipPosition = new Vector4(0.0, 0.0, 0.0, 1.0);
314
- /**
315
- * @internal
316
- */
317
- this.globalLeftThumbTipPosition = new Vector4(0.5, 0.0, -0.55, 1.0);
318
- /**
319
- * @internal
320
- */
321
- this.globalRightThumbTipPosition = new Vector4(0.0, 0.0, 0.0, 1.0);
322
- /**
323
- * @internal
324
- */
325
- this.globalLeftIndexMiddlePosition = new Vector4(0.5, 0.0, -0.55, 1.0);
326
- /**
327
- * @internal
328
- */
329
- this.globalRightIndexMiddlePosition = new Vector4(0.0, 0.0, 0.0, 1.0);
330
- this.alphaMode = Constants.ALPHA_DISABLE;
331
- this.backFaceCulling = false;
332
- const textureUrl = Tools.GetAssetUrl(MRDLSliderBarMaterial.BLUE_GRADIENT_TEXTURE_URL);
333
- this._blueGradientTexture = new Texture(textureUrl, this.getScene(), true, false, Texture.NEAREST_SAMPLINGMODE);
334
- this._decalTexture = new Texture("", this.getScene());
335
- this._reflectionMapTexture = new Texture("", this.getScene());
336
- this._indirectEnvTexture = new Texture("", this.getScene());
337
- }
338
- needAlphaBlending() {
339
- return false;
340
- }
341
- needAlphaTesting() {
342
- return false;
343
- }
344
- getAlphaTestTexture() {
345
- return null;
346
- }
347
- // Methods
348
- isReadyForSubMesh(mesh, subMesh) {
349
- const drawWrapper = subMesh._drawWrapper;
350
- if (this.isFrozen) {
351
- if (drawWrapper.effect && drawWrapper._wasPreviouslyReady) {
33
+ let MRDLSliderBarMaterial = (() => {
34
+ var _a;
35
+ let _classSuper = PushMaterial;
36
+ let _radius_decorators;
37
+ let _radius_initializers = [];
38
+ let _radius_extraInitializers = [];
39
+ let _bevelFront_decorators;
40
+ let _bevelFront_initializers = [];
41
+ let _bevelFront_extraInitializers = [];
42
+ let _bevelFrontStretch_decorators;
43
+ let _bevelFrontStretch_initializers = [];
44
+ let _bevelFrontStretch_extraInitializers = [];
45
+ let _bevelBack_decorators;
46
+ let _bevelBack_initializers = [];
47
+ let _bevelBack_extraInitializers = [];
48
+ let _bevelBackStretch_decorators;
49
+ let _bevelBackStretch_initializers = [];
50
+ let _bevelBackStretch_extraInitializers = [];
51
+ let _radiusTopLeft_decorators;
52
+ let _radiusTopLeft_initializers = [];
53
+ let _radiusTopLeft_extraInitializers = [];
54
+ let _radiusTopRight_decorators;
55
+ let _radiusTopRight_initializers = [];
56
+ let _radiusTopRight_extraInitializers = [];
57
+ let _radiusBottomLeft_decorators;
58
+ let _radiusBottomLeft_initializers = [];
59
+ let _radiusBottomLeft_extraInitializers = [];
60
+ let _radiusBottomRight_decorators;
61
+ let _radiusBottomRight_initializers = [];
62
+ let _radiusBottomRight_extraInitializers = [];
63
+ let _bulgeEnabled_decorators;
64
+ let _bulgeEnabled_initializers = [];
65
+ let _bulgeEnabled_extraInitializers = [];
66
+ let _bulgeHeight_decorators;
67
+ let _bulgeHeight_initializers = [];
68
+ let _bulgeHeight_extraInitializers = [];
69
+ let _bulgeRadius_decorators;
70
+ let _bulgeRadius_initializers = [];
71
+ let _bulgeRadius_extraInitializers = [];
72
+ let _sunIntensity_decorators;
73
+ let _sunIntensity_initializers = [];
74
+ let _sunIntensity_extraInitializers = [];
75
+ let _sunTheta_decorators;
76
+ let _sunTheta_initializers = [];
77
+ let _sunTheta_extraInitializers = [];
78
+ let _sunPhi_decorators;
79
+ let _sunPhi_initializers = [];
80
+ let _sunPhi_extraInitializers = [];
81
+ let _indirectDiffuse_decorators;
82
+ let _indirectDiffuse_initializers = [];
83
+ let _indirectDiffuse_extraInitializers = [];
84
+ let _albedo_decorators;
85
+ let _albedo_initializers = [];
86
+ let _albedo_extraInitializers = [];
87
+ let _specular_decorators;
88
+ let _specular_initializers = [];
89
+ let _specular_extraInitializers = [];
90
+ let _shininess_decorators;
91
+ let _shininess_initializers = [];
92
+ let _shininess_extraInitializers = [];
93
+ let _sharpness_decorators;
94
+ let _sharpness_initializers = [];
95
+ let _sharpness_extraInitializers = [];
96
+ let _subsurface_decorators;
97
+ let _subsurface_initializers = [];
98
+ let _subsurface_extraInitializers = [];
99
+ let _leftGradientColor_decorators;
100
+ let _leftGradientColor_initializers = [];
101
+ let _leftGradientColor_extraInitializers = [];
102
+ let _rightGradientColor_decorators;
103
+ let _rightGradientColor_initializers = [];
104
+ let _rightGradientColor_extraInitializers = [];
105
+ let _reflection_decorators;
106
+ let _reflection_initializers = [];
107
+ let _reflection_extraInitializers = [];
108
+ let _frontReflect_decorators;
109
+ let _frontReflect_initializers = [];
110
+ let _frontReflect_extraInitializers = [];
111
+ let _edgeReflect_decorators;
112
+ let _edgeReflect_initializers = [];
113
+ let _edgeReflect_extraInitializers = [];
114
+ let _power_decorators;
115
+ let _power_initializers = [];
116
+ let _power_extraInitializers = [];
117
+ let _skyColor_decorators;
118
+ let _skyColor_initializers = [];
119
+ let _skyColor_extraInitializers = [];
120
+ let _horizonColor_decorators;
121
+ let _horizonColor_initializers = [];
122
+ let _horizonColor_extraInitializers = [];
123
+ let _groundColor_decorators;
124
+ let _groundColor_initializers = [];
125
+ let _groundColor_extraInitializers = [];
126
+ let _horizonPower_decorators;
127
+ let _horizonPower_initializers = [];
128
+ let _horizonPower_extraInitializers = [];
129
+ let _width_decorators;
130
+ let _width_initializers = [];
131
+ let _width_extraInitializers = [];
132
+ let _fuzz_decorators;
133
+ let _fuzz_initializers = [];
134
+ let _fuzz_extraInitializers = [];
135
+ let _minFuzz_decorators;
136
+ let _minFuzz_initializers = [];
137
+ let _minFuzz_extraInitializers = [];
138
+ let _clipFade_decorators;
139
+ let _clipFade_initializers = [];
140
+ let _clipFade_extraInitializers = [];
141
+ let _hueShift_decorators;
142
+ let _hueShift_initializers = [];
143
+ let _hueShift_extraInitializers = [];
144
+ let _saturationShift_decorators;
145
+ let _saturationShift_initializers = [];
146
+ let _saturationShift_extraInitializers = [];
147
+ let _valueShift_decorators;
148
+ let _valueShift_initializers = [];
149
+ let _valueShift_extraInitializers = [];
150
+ let _blobPosition_decorators;
151
+ let _blobPosition_initializers = [];
152
+ let _blobPosition_extraInitializers = [];
153
+ let _blobIntensity_decorators;
154
+ let _blobIntensity_initializers = [];
155
+ let _blobIntensity_extraInitializers = [];
156
+ let _blobNearSize_decorators;
157
+ let _blobNearSize_initializers = [];
158
+ let _blobNearSize_extraInitializers = [];
159
+ let _blobFarSize_decorators;
160
+ let _blobFarSize_initializers = [];
161
+ let _blobFarSize_extraInitializers = [];
162
+ let _blobNearDistance_decorators;
163
+ let _blobNearDistance_initializers = [];
164
+ let _blobNearDistance_extraInitializers = [];
165
+ let _blobFarDistance_decorators;
166
+ let _blobFarDistance_initializers = [];
167
+ let _blobFarDistance_extraInitializers = [];
168
+ let _blobFadeLength_decorators;
169
+ let _blobFadeLength_initializers = [];
170
+ let _blobFadeLength_extraInitializers = [];
171
+ let _blobPulse_decorators;
172
+ let _blobPulse_initializers = [];
173
+ let _blobPulse_extraInitializers = [];
174
+ let _blobFade_decorators;
175
+ let _blobFade_initializers = [];
176
+ let _blobFade_extraInitializers = [];
177
+ let _blobPosition2_decorators;
178
+ let _blobPosition2_initializers = [];
179
+ let _blobPosition2_extraInitializers = [];
180
+ let _blobNearSize2_decorators;
181
+ let _blobNearSize2_initializers = [];
182
+ let _blobNearSize2_extraInitializers = [];
183
+ let _blobPulse2_decorators;
184
+ let _blobPulse2_initializers = [];
185
+ let _blobPulse2_extraInitializers = [];
186
+ let _blobFade2_decorators;
187
+ let _blobFade2_initializers = [];
188
+ let _blobFade2_extraInitializers = [];
189
+ let _blobTexture_decorators;
190
+ let _blobTexture_initializers = [];
191
+ let _blobTexture_extraInitializers = [];
192
+ let _leftIndexPosition_decorators;
193
+ let _leftIndexPosition_initializers = [];
194
+ let _leftIndexPosition_extraInitializers = [];
195
+ let _rightIndexPosition_decorators;
196
+ let _rightIndexPosition_initializers = [];
197
+ let _rightIndexPosition_extraInitializers = [];
198
+ let _leftIndexMiddlePosition_decorators;
199
+ let _leftIndexMiddlePosition_initializers = [];
200
+ let _leftIndexMiddlePosition_extraInitializers = [];
201
+ let _rightIndexMiddlePosition_decorators;
202
+ let _rightIndexMiddlePosition_initializers = [];
203
+ let _rightIndexMiddlePosition_extraInitializers = [];
204
+ let _decalScaleXY_decorators;
205
+ let _decalScaleXY_initializers = [];
206
+ let _decalScaleXY_extraInitializers = [];
207
+ let _decalFrontOnly_decorators;
208
+ let _decalFrontOnly_initializers = [];
209
+ let _decalFrontOnly_extraInitializers = [];
210
+ let _rimIntensity_decorators;
211
+ let _rimIntensity_initializers = [];
212
+ let _rimIntensity_extraInitializers = [];
213
+ let _rimHueShift_decorators;
214
+ let _rimHueShift_initializers = [];
215
+ let _rimHueShift_extraInitializers = [];
216
+ let _rimSaturationShift_decorators;
217
+ let _rimSaturationShift_initializers = [];
218
+ let _rimSaturationShift_extraInitializers = [];
219
+ let _rimValueShift_decorators;
220
+ let _rimValueShift_initializers = [];
221
+ let _rimValueShift_extraInitializers = [];
222
+ let _iridescenceIntensity_decorators;
223
+ let _iridescenceIntensity_initializers = [];
224
+ let _iridescenceIntensity_extraInitializers = [];
225
+ return _a = class MRDLSliderBarMaterial extends _classSuper {
226
+ constructor(name, scene) {
227
+ super(name, scene);
228
+ /**
229
+ * Gets or sets the corner Radius on the slider bar.
230
+ */
231
+ this.radius = __runInitializers(this, _radius_initializers, 0.6);
232
+ /**
233
+ * Gets or sets the Bevel Front on the slider bar.
234
+ */
235
+ this.bevelFront = (__runInitializers(this, _radius_extraInitializers), __runInitializers(this, _bevelFront_initializers, 0.6));
236
+ /**
237
+ * Gets or sets the Bevel Front Stretch on the slider bar.
238
+ */
239
+ this.bevelFrontStretch = (__runInitializers(this, _bevelFront_extraInitializers), __runInitializers(this, _bevelFrontStretch_initializers, 0.077));
240
+ /**
241
+ * Gets or sets the Bevel Back on the slider bar.
242
+ */
243
+ this.bevelBack = (__runInitializers(this, _bevelFrontStretch_extraInitializers), __runInitializers(this, _bevelBack_initializers, 0));
244
+ /**
245
+ * Gets or sets the Bevel Back Stretch on the slider bar.
246
+ */
247
+ this.bevelBackStretch = (__runInitializers(this, _bevelBack_extraInitializers), __runInitializers(this, _bevelBackStretch_initializers, 0));
248
+ /**
249
+ * Gets or sets the top left Radii Multiplier.
250
+ */
251
+ this.radiusTopLeft = (__runInitializers(this, _bevelBackStretch_extraInitializers), __runInitializers(this, _radiusTopLeft_initializers, 1.0));
252
+ /**
253
+ * Gets or sets the top left Radii Multiplier.
254
+ */
255
+ this.radiusTopRight = (__runInitializers(this, _radiusTopLeft_extraInitializers), __runInitializers(this, _radiusTopRight_initializers, 1.0));
256
+ /**
257
+ * Gets or sets the top left Radii Multiplier.
258
+ */
259
+ this.radiusBottomLeft = (__runInitializers(this, _radiusTopRight_extraInitializers), __runInitializers(this, _radiusBottomLeft_initializers, 1.0));
260
+ /**
261
+ * Gets or sets the top left Radii Multiplier.
262
+ */
263
+ this.radiusBottomRight = (__runInitializers(this, _radiusBottomLeft_extraInitializers), __runInitializers(this, _radiusBottomRight_initializers, 1.0));
264
+ /**
265
+ * Gets or sets whether Bulge is enabled.
266
+ * Default is false.
267
+ */
268
+ this.bulgeEnabled = (__runInitializers(this, _radiusBottomRight_extraInitializers), __runInitializers(this, _bulgeEnabled_initializers, false));
269
+ /**
270
+ * Gets or sets the Bulge Height.
271
+ */
272
+ this.bulgeHeight = (__runInitializers(this, _bulgeEnabled_extraInitializers), __runInitializers(this, _bulgeHeight_initializers, -0.323));
273
+ /**
274
+ * Gets or sets the Bulge Radius.
275
+ */
276
+ this.bulgeRadius = (__runInitializers(this, _bulgeHeight_extraInitializers), __runInitializers(this, _bulgeRadius_initializers, 0.73));
277
+ /**
278
+ * Gets or sets the Sun Intensity.
279
+ */
280
+ this.sunIntensity = (__runInitializers(this, _bulgeRadius_extraInitializers), __runInitializers(this, _sunIntensity_initializers, 1.102));
281
+ /**
282
+ * Gets or sets the Sun Theta.
283
+ */
284
+ this.sunTheta = (__runInitializers(this, _sunIntensity_extraInitializers), __runInitializers(this, _sunTheta_initializers, 0.76));
285
+ /**
286
+ * Gets or sets the Sun Phi.
287
+ */
288
+ this.sunPhi = (__runInitializers(this, _sunTheta_extraInitializers), __runInitializers(this, _sunPhi_initializers, 0.526));
289
+ /**
290
+ * Gets or sets the Indirect Diffuse.
291
+ */
292
+ this.indirectDiffuse = (__runInitializers(this, _sunPhi_extraInitializers), __runInitializers(this, _indirectDiffuse_initializers, 0.658));
293
+ /**
294
+ * Gets or sets the base albedo.
295
+ */
296
+ this.albedo = (__runInitializers(this, _indirectDiffuse_extraInitializers), __runInitializers(this, _albedo_initializers, new Color4(0.0117647, 0.505882, 0.996078, 1)));
297
+ /**
298
+ * Gets or sets the Specular value.
299
+ */
300
+ this.specular = (__runInitializers(this, _albedo_extraInitializers), __runInitializers(this, _specular_initializers, 0));
301
+ /**
302
+ * Gets or sets the Shininess value.
303
+ */
304
+ this.shininess = (__runInitializers(this, _specular_extraInitializers), __runInitializers(this, _shininess_initializers, 10));
305
+ /**
306
+ * Gets or sets the Sharpness value.
307
+ */
308
+ this.sharpness = (__runInitializers(this, _shininess_extraInitializers), __runInitializers(this, _sharpness_initializers, 0));
309
+ /**
310
+ * Gets or sets the Subsurface value.
311
+ */
312
+ this.subsurface = (__runInitializers(this, _sharpness_extraInitializers), __runInitializers(this, _subsurface_initializers, 0));
313
+ /**
314
+ * Gets or sets the left gradient color.
315
+ */
316
+ this.leftGradientColor = (__runInitializers(this, _subsurface_extraInitializers), __runInitializers(this, _leftGradientColor_initializers, new Color4(0.0117647, 0.505882, 0.996078, 1)));
317
+ /**
318
+ * Gets or sets the right gradient color.
319
+ */
320
+ this.rightGradientColor = (__runInitializers(this, _leftGradientColor_extraInitializers), __runInitializers(this, _rightGradientColor_initializers, new Color4(0.0117647, 0.505882, 0.996078, 1)));
321
+ /**
322
+ * Gets or sets the reflection value.
323
+ */
324
+ this.reflection = (__runInitializers(this, _rightGradientColor_extraInitializers), __runInitializers(this, _reflection_initializers, 0.749));
325
+ /**
326
+ * Gets or sets the front reflect value.
327
+ */
328
+ this.frontReflect = (__runInitializers(this, _reflection_extraInitializers), __runInitializers(this, _frontReflect_initializers, 0));
329
+ /**
330
+ * Gets or sets the edge reflect value.
331
+ */
332
+ this.edgeReflect = (__runInitializers(this, _frontReflect_extraInitializers), __runInitializers(this, _edgeReflect_initializers, 0.09));
333
+ /**
334
+ * Gets or sets the power value.
335
+ */
336
+ this.power = (__runInitializers(this, _edgeReflect_extraInitializers), __runInitializers(this, _power_initializers, 8.13));
337
+ /**
338
+ * Gets or sets the sky color.
339
+ */
340
+ this.skyColor = (__runInitializers(this, _power_extraInitializers), __runInitializers(this, _skyColor_initializers, new Color4(0.0117647, 0.964706, 0.996078, 1)));
341
+ /**
342
+ * Gets or sets the horizon color.
343
+ */
344
+ this.horizonColor = (__runInitializers(this, _skyColor_extraInitializers), __runInitializers(this, _horizonColor_initializers, new Color4(0.0117647, 0.333333, 0.996078, 1)));
345
+ /**
346
+ * Gets or sets the ground color.
347
+ */
348
+ this.groundColor = (__runInitializers(this, _horizonColor_extraInitializers), __runInitializers(this, _groundColor_initializers, new Color4(0, 0.254902, 0.996078, 1)));
349
+ /**
350
+ * Gets or sets the horizon power value.
351
+ */
352
+ this.horizonPower = (__runInitializers(this, _groundColor_extraInitializers), __runInitializers(this, _horizonPower_initializers, 1));
353
+ /**
354
+ * Gets or sets the finger occlusion width value.
355
+ */
356
+ this.width = (__runInitializers(this, _horizonPower_extraInitializers), __runInitializers(this, _width_initializers, 0.02));
357
+ /**
358
+ * Gets or sets the finger occlusion fuzz value.
359
+ */
360
+ this.fuzz = (__runInitializers(this, _width_extraInitializers), __runInitializers(this, _fuzz_initializers, 0.5));
361
+ /**
362
+ * Gets or sets the minimum finger occlusion fuzz value.
363
+ */
364
+ this.minFuzz = (__runInitializers(this, _fuzz_extraInitializers), __runInitializers(this, _minFuzz_initializers, 0.001));
365
+ /**
366
+ * Gets or sets the finger occlusion clip fade value.
367
+ */
368
+ this.clipFade = (__runInitializers(this, _minFuzz_extraInitializers), __runInitializers(this, _clipFade_initializers, 0.01));
369
+ /**
370
+ * Gets or sets the hue shift value.
371
+ */
372
+ this.hueShift = (__runInitializers(this, _clipFade_extraInitializers), __runInitializers(this, _hueShift_initializers, 0));
373
+ /**
374
+ * Gets or sets the saturation shift value.
375
+ */
376
+ this.saturationShift = (__runInitializers(this, _hueShift_extraInitializers), __runInitializers(this, _saturationShift_initializers, 0));
377
+ /**
378
+ * Gets or sets the value shift.
379
+ */
380
+ this.valueShift = (__runInitializers(this, _saturationShift_extraInitializers), __runInitializers(this, _valueShift_initializers, 0));
381
+ /**
382
+ * Gets or sets the position of the hover glow effect.
383
+ */
384
+ this.blobPosition = (__runInitializers(this, _valueShift_extraInitializers), __runInitializers(this, _blobPosition_initializers, new Vector3(0, 0, 0.1)));
385
+ /**
386
+ * Gets or sets the intensity of the hover glow effect.
387
+ */
388
+ this.blobIntensity = (__runInitializers(this, _blobPosition_extraInitializers), __runInitializers(this, _blobIntensity_initializers, 0.5));
389
+ /**
390
+ * Gets or sets the near size of the hover glow effect.
391
+ */
392
+ this.blobNearSize = (__runInitializers(this, _blobIntensity_extraInitializers), __runInitializers(this, _blobNearSize_initializers, 0.01));
393
+ /**
394
+ * Gets or sets the far size of the hover glow effect.
395
+ */
396
+ this.blobFarSize = (__runInitializers(this, _blobNearSize_extraInitializers), __runInitializers(this, _blobFarSize_initializers, 0.03));
397
+ /**
398
+ * Gets or sets the distance considered "near" to the mesh, which controls the size of the hover glow effect (see blobNearSize).
399
+ */
400
+ this.blobNearDistance = (__runInitializers(this, _blobFarSize_extraInitializers), __runInitializers(this, _blobNearDistance_initializers, 0));
401
+ /**
402
+ * Gets or sets the distance considered "far" from the mesh, which controls the size of the hover glow effect (see blobFarSize).
403
+ */
404
+ this.blobFarDistance = (__runInitializers(this, _blobNearDistance_extraInitializers), __runInitializers(this, _blobFarDistance_initializers, 0.08));
405
+ /**
406
+ * Gets or sets the length of the hover glow effect fade.
407
+ */
408
+ this.blobFadeLength = (__runInitializers(this, _blobFarDistance_extraInitializers), __runInitializers(this, _blobFadeLength_initializers, 0.576));
409
+ /**
410
+ * Gets or sets the progress of the hover glow effect selection animation corresponding to the left pointer (0.0 - 1.0).
411
+ */
412
+ this.blobPulse = (__runInitializers(this, _blobFadeLength_extraInitializers), __runInitializers(this, _blobPulse_initializers, 0));
413
+ /**
414
+ * Gets or sets the opacity of the hover glow effect corresponding to the left pointer (0.0 - 1.0). Default is 0.
415
+ */
416
+ this.blobFade = (__runInitializers(this, _blobPulse_extraInitializers), __runInitializers(this, _blobFade_initializers, 1));
417
+ /**
418
+ * Gets or sets the position of the hover glow effect.
419
+ */
420
+ this.blobPosition2 = (__runInitializers(this, _blobFade_extraInitializers), __runInitializers(this, _blobPosition2_initializers, new Vector3(0.2, 0, 0.1)));
421
+ /**
422
+ * Gets or sets the size of the hover glow effect when the right pointer is considered "near" to the mesh (see blobNearDistance).
423
+ */
424
+ this.blobNearSize2 = (__runInitializers(this, _blobPosition2_extraInitializers), __runInitializers(this, _blobNearSize2_initializers, 0.01));
425
+ /**
426
+ * Gets or sets the progress of the hover glow effect selection animation corresponding to the right pointer (0.0 - 1.0).
427
+ */
428
+ this.blobPulse2 = (__runInitializers(this, _blobNearSize2_extraInitializers), __runInitializers(this, _blobPulse2_initializers, 0));
429
+ /**
430
+ * Gets or sets the opacity of the hover glow effect corresponding to the right pointer (0.0 - 1.0). Default is 1.
431
+ */
432
+ this.blobFade2 = (__runInitializers(this, _blobPulse2_extraInitializers), __runInitializers(this, _blobFade2_initializers, 1));
433
+ /**
434
+ * Gets or sets the texture of the hover glow effect.
435
+ */
436
+ this.blobTexture = (__runInitializers(this, _blobFade2_extraInitializers), __runInitializers(this, _blobTexture_initializers, new Texture("", this.getScene())));
437
+ /**
438
+ * Gets or sets the finger position for left index.
439
+ */
440
+ this.leftIndexPosition = (__runInitializers(this, _blobTexture_extraInitializers), __runInitializers(this, _leftIndexPosition_initializers, new Vector3(0, 0, 1)));
441
+ /**
442
+ * Gets or sets the finger position for right index.
443
+ */
444
+ this.rightIndexPosition = (__runInitializers(this, _leftIndexPosition_extraInitializers), __runInitializers(this, _rightIndexPosition_initializers, new Vector3(-1, -1, -1)));
445
+ /**
446
+ * Gets or sets the finger position for left index middle position.
447
+ */
448
+ this.leftIndexMiddlePosition = (__runInitializers(this, _rightIndexPosition_extraInitializers), __runInitializers(this, _leftIndexMiddlePosition_initializers, new Vector3(0, 0, 0)));
449
+ /**
450
+ * Gets or sets the finger position for right index middle position.
451
+ */
452
+ this.rightIndexMiddlePosition = (__runInitializers(this, _leftIndexMiddlePosition_extraInitializers), __runInitializers(this, _rightIndexMiddlePosition_initializers, new Vector3(0, 0, 0)));
453
+ /**
454
+ * Gets or sets the Decal Scle for XY.
455
+ */
456
+ this.decalScaleXY = (__runInitializers(this, _rightIndexMiddlePosition_extraInitializers), __runInitializers(this, _decalScaleXY_initializers, new Vector2(1.5, 1.5)));
457
+ /**
458
+ * Gets or sets decalFrontOnly
459
+ * Default is true
460
+ */
461
+ this.decalFrontOnly = (__runInitializers(this, _decalScaleXY_extraInitializers), __runInitializers(this, _decalFrontOnly_initializers, true));
462
+ /**
463
+ * Gets or sets the Rim Light intensity.
464
+ */
465
+ this.rimIntensity = (__runInitializers(this, _decalFrontOnly_extraInitializers), __runInitializers(this, _rimIntensity_initializers, 0.287));
466
+ /**
467
+ * Gets or sets the Rim Light hue shift value.
468
+ */
469
+ this.rimHueShift = (__runInitializers(this, _rimIntensity_extraInitializers), __runInitializers(this, _rimHueShift_initializers, 0));
470
+ /**
471
+ * Gets or sets the Rim Light saturation shift value.
472
+ */
473
+ this.rimSaturationShift = (__runInitializers(this, _rimHueShift_extraInitializers), __runInitializers(this, _rimSaturationShift_initializers, 0));
474
+ /**
475
+ * Gets or sets the Rim Light value shift.
476
+ */
477
+ this.rimValueShift = (__runInitializers(this, _rimSaturationShift_extraInitializers), __runInitializers(this, _rimValueShift_initializers, -1));
478
+ /**
479
+ * Gets or sets the intensity of the iridescence effect.
480
+ */
481
+ this.iridescenceIntensity = (__runInitializers(this, _rimValueShift_extraInitializers), __runInitializers(this, _iridescenceIntensity_initializers, 0));
482
+ /**
483
+ * @internal
484
+ */
485
+ this.useGlobalLeftIndex = (__runInitializers(this, _iridescenceIntensity_extraInitializers), 1.0);
486
+ /**
487
+ * @internal
488
+ */
489
+ this.useGlobalRightIndex = 1.0;
490
+ /**
491
+ * @internal
492
+ */
493
+ this.globalLeftIndexTipProximity = 0.0;
494
+ /**
495
+ * @internal
496
+ */
497
+ this.globalRightIndexTipProximity = 0.0;
498
+ /**
499
+ * @internal
500
+ */
501
+ this.globalLeftIndexTipPosition = new Vector4(0.5, 0.0, -0.55, 1.0);
502
+ /**
503
+ * @internal
504
+ */
505
+ this.globaRightIndexTipPosition = new Vector4(0.0, 0.0, 0.0, 1.0);
506
+ /**
507
+ * @internal
508
+ */
509
+ this.globalLeftThumbTipPosition = new Vector4(0.5, 0.0, -0.55, 1.0);
510
+ /**
511
+ * @internal
512
+ */
513
+ this.globalRightThumbTipPosition = new Vector4(0.0, 0.0, 0.0, 1.0);
514
+ /**
515
+ * @internal
516
+ */
517
+ this.globalLeftIndexMiddlePosition = new Vector4(0.5, 0.0, -0.55, 1.0);
518
+ /**
519
+ * @internal
520
+ */
521
+ this.globalRightIndexMiddlePosition = new Vector4(0.0, 0.0, 0.0, 1.0);
522
+ this.alphaMode = Constants.ALPHA_DISABLE;
523
+ this.backFaceCulling = false;
524
+ const textureUrl = Tools.GetAssetUrl(_a.BLUE_GRADIENT_TEXTURE_URL);
525
+ this._blueGradientTexture = new Texture(textureUrl, this.getScene(), true, false, Texture.NEAREST_SAMPLINGMODE);
526
+ this._decalTexture = new Texture("", this.getScene());
527
+ this._reflectionMapTexture = new Texture("", this.getScene());
528
+ this._indirectEnvTexture = new Texture("", this.getScene());
529
+ }
530
+ needAlphaBlending() {
531
+ return false;
532
+ }
533
+ needAlphaTesting() {
534
+ return false;
535
+ }
536
+ getAlphaTestTexture() {
537
+ return null;
538
+ }
539
+ // Methods
540
+ isReadyForSubMesh(mesh, subMesh) {
541
+ const drawWrapper = subMesh._drawWrapper;
542
+ if (this.isFrozen) {
543
+ if (drawWrapper.effect && drawWrapper._wasPreviouslyReady) {
544
+ return true;
545
+ }
546
+ }
547
+ if (!subMesh.materialDefines) {
548
+ subMesh.materialDefines = new MRDLSliderBarMaterialDefines();
549
+ }
550
+ const defines = subMesh.materialDefines;
551
+ const scene = this.getScene();
552
+ if (!this._blueGradientTexture.isReady()) {
553
+ return false;
554
+ }
555
+ if (this._isReadyForSubMesh(subMesh)) {
556
+ return true;
557
+ }
558
+ const engine = scene.getEngine();
559
+ // Attribs
560
+ PrepareDefinesForAttributes(mesh, defines, false, false);
561
+ // Get correct effect
562
+ if (defines.isDirty) {
563
+ defines.markAsProcessed();
564
+ scene.resetCachedMaterial();
565
+ // Fallbacks
566
+ const fallbacks = new EffectFallbacks();
567
+ if (defines.FOG) {
568
+ fallbacks.addFallback(1, "FOG");
569
+ }
570
+ HandleFallbacksForShadows(defines, fallbacks);
571
+ defines.IMAGEPROCESSINGPOSTPROCESS = scene.imageProcessingConfiguration.applyByPostProcess;
572
+ //Attributes
573
+ const attribs = [VertexBuffer.PositionKind];
574
+ if (defines.NORMAL) {
575
+ attribs.push(VertexBuffer.NormalKind);
576
+ }
577
+ if (defines.UV1) {
578
+ attribs.push(VertexBuffer.UVKind);
579
+ }
580
+ if (defines.UV2) {
581
+ attribs.push(VertexBuffer.UV2Kind);
582
+ }
583
+ if (defines.VERTEXCOLOR) {
584
+ attribs.push(VertexBuffer.ColorKind);
585
+ }
586
+ if (defines.TANGENT) {
587
+ attribs.push(VertexBuffer.TangentKind);
588
+ }
589
+ PrepareAttributesForInstances(attribs, defines);
590
+ // Legacy browser patch
591
+ const shaderName = "mrdlSliderBar";
592
+ const join = defines.toString();
593
+ const uniforms = [
594
+ "world",
595
+ "viewProjection",
596
+ "cameraPosition",
597
+ "_Radius_",
598
+ "_Bevel_Front_",
599
+ "_Bevel_Front_Stretch_",
600
+ "_Bevel_Back_",
601
+ "_Bevel_Back_Stretch_",
602
+ "_Radius_Top_Left_",
603
+ "_Radius_Top_Right_",
604
+ "_Radius_Bottom_Left_",
605
+ "_Radius_Bottom_Right_",
606
+ "_Bulge_Enabled_",
607
+ "_Bulge_Height_",
608
+ "_Bulge_Radius_",
609
+ "_Sun_Intensity_",
610
+ "_Sun_Theta_",
611
+ "_Sun_Phi_",
612
+ "_Indirect_Diffuse_",
613
+ "_Albedo_",
614
+ "_Specular_",
615
+ "_Shininess_",
616
+ "_Sharpness_",
617
+ "_Subsurface_",
618
+ "_Left_Color_",
619
+ "_Right_Color_",
620
+ "_Reflection_",
621
+ "_Front_Reflect_",
622
+ "_Edge_Reflect_",
623
+ "_Power_",
624
+ "_Sky_Color_",
625
+ "_Horizon_Color_",
626
+ "_Ground_Color_",
627
+ "_Horizon_Power_",
628
+ "_Reflection_Map_",
629
+ "_Indirect_Environment_",
630
+ "_Width_",
631
+ "_Fuzz_",
632
+ "_Min_Fuzz_",
633
+ "_Clip_Fade_",
634
+ "_Hue_Shift_",
635
+ "_Saturation_Shift_",
636
+ "_Value_Shift_",
637
+ "_Blob_Position_",
638
+ "_Blob_Intensity_",
639
+ "_Blob_Near_Size_",
640
+ "_Blob_Far_Size_",
641
+ "_Blob_Near_Distance_",
642
+ "_Blob_Far_Distance_",
643
+ "_Blob_Fade_Length_",
644
+ "_Blob_Pulse_",
645
+ "_Blob_Fade_",
646
+ "_Blob_Texture_",
647
+ "_Blob_Position_2_",
648
+ "_Blob_Near_Size_2_",
649
+ "_Blob_Pulse_2_",
650
+ "_Blob_Fade_2_",
651
+ "_Left_Index_Pos_",
652
+ "_Right_Index_Pos_",
653
+ "_Left_Index_Middle_Pos_",
654
+ "_Right_Index_Middle_Pos_",
655
+ "_Decal_",
656
+ "_Decal_Scale_XY_",
657
+ "_Decal_Front_Only_",
658
+ "_Rim_Intensity_",
659
+ "_Rim_Texture_",
660
+ "_Rim_Hue_Shift_",
661
+ "_Rim_Saturation_Shift_",
662
+ "_Rim_Value_Shift_",
663
+ "_Iridescence_Intensity_",
664
+ "_Iridescence_Texture_",
665
+ "Use_Global_Left_Index",
666
+ "Use_Global_Right_Index",
667
+ "Global_Left_Index_Tip_Position",
668
+ "Global_Right_Index_Tip_Position",
669
+ "Global_Left_Thumb_Tip_Position",
670
+ "Global_Right_Thumb_Tip_Position",
671
+ "Global_Left_Index_Middle_Position;",
672
+ "Global_Right_Index_Middle_Position",
673
+ "Global_Left_Index_Tip_Proximity",
674
+ "Global_Right_Index_Tip_Proximity",
675
+ ];
676
+ const samplers = ["_Rim_Texture_", "_Iridescence_Texture_"];
677
+ const uniformBuffers = [];
678
+ PrepareUniformsAndSamplersList({
679
+ uniformsNames: uniforms,
680
+ uniformBuffersNames: uniformBuffers,
681
+ samplers: samplers,
682
+ defines: defines,
683
+ maxSimultaneousLights: 4,
684
+ });
685
+ subMesh.setEffect(scene.getEngine().createEffect(shaderName, {
686
+ attributes: attribs,
687
+ uniformsNames: uniforms,
688
+ uniformBuffersNames: uniformBuffers,
689
+ samplers: samplers,
690
+ defines: join,
691
+ fallbacks: fallbacks,
692
+ onCompiled: this.onCompiled,
693
+ onError: this.onError,
694
+ indexParameters: { maxSimultaneousLights: 4 },
695
+ extraInitializationsAsync: async () => {
696
+ await Promise.all([import("./shaders/mrdlSliderBar.vertex.js"), import("./shaders/mrdlSliderBar.fragment.js")]);
697
+ },
698
+ }, engine), defines, this._materialContext);
699
+ }
700
+ if (!subMesh.effect || !subMesh.effect.isReady()) {
701
+ return false;
702
+ }
703
+ defines._renderId = scene.getRenderId();
704
+ drawWrapper._wasPreviouslyReady = true;
352
705
  return true;
353
706
  }
354
- }
355
- if (!subMesh.materialDefines) {
356
- subMesh.materialDefines = new MRDLSliderBarMaterialDefines();
357
- }
358
- const defines = subMesh.materialDefines;
359
- const scene = this.getScene();
360
- if (!this._blueGradientTexture.isReady()) {
361
- return false;
362
- }
363
- if (this._isReadyForSubMesh(subMesh)) {
364
- return true;
365
- }
366
- const engine = scene.getEngine();
367
- // Attribs
368
- PrepareDefinesForAttributes(mesh, defines, false, false);
369
- // Get correct effect
370
- if (defines.isDirty) {
371
- defines.markAsProcessed();
372
- scene.resetCachedMaterial();
373
- // Fallbacks
374
- const fallbacks = new EffectFallbacks();
375
- if (defines.FOG) {
376
- fallbacks.addFallback(1, "FOG");
707
+ bindForSubMesh(world, mesh, subMesh) {
708
+ const defines = subMesh.materialDefines;
709
+ if (!defines) {
710
+ return;
711
+ }
712
+ const effect = subMesh.effect;
713
+ if (!effect) {
714
+ return;
715
+ }
716
+ this._activeEffect = effect;
717
+ // Matrices
718
+ this.bindOnlyWorldMatrix(world);
719
+ this._activeEffect.setMatrix("viewProjection", this.getScene().getTransformMatrix());
720
+ this._activeEffect.setVector3("cameraPosition", this.getScene().activeCamera.position);
721
+ // "Round Rect"
722
+ this._activeEffect.setFloat("_Radius_", this.radius);
723
+ this._activeEffect.setFloat("_Bevel_Front_", this.bevelFront);
724
+ this._activeEffect.setFloat("_Bevel_Front_Stretch_", this.bevelFrontStretch);
725
+ this._activeEffect.setFloat("_Bevel_Back_", this.bevelBack);
726
+ this._activeEffect.setFloat("_Bevel_Back_Stretch_", this.bevelBackStretch);
727
+ // "Radii Multipliers"
728
+ this._activeEffect.setFloat("_Radius_Top_Left_", this.radiusTopLeft);
729
+ this._activeEffect.setFloat("_Radius_Top_Right_", this.radiusTopRight);
730
+ this._activeEffect.setFloat("_Radius_Bottom_Left_", this.radiusBottomLeft);
731
+ this._activeEffect.setFloat("_Radius_Bottom_Right_", this.radiusBottomRight);
732
+ // "Bulge"
733
+ this._activeEffect.setFloat("_Bulge_Enabled_", this.bulgeEnabled ? 1.0 : 0.0);
734
+ this._activeEffect.setFloat("_Bulge_Height_", this.bulgeHeight);
735
+ this._activeEffect.setFloat("_Bulge_Radius_", this.bulgeRadius);
736
+ // "Sun"
737
+ this._activeEffect.setFloat("_Sun_Intensity_", this.sunIntensity);
738
+ this._activeEffect.setFloat("_Sun_Theta_", this.sunTheta);
739
+ this._activeEffect.setFloat("_Sun_Phi_", this.sunPhi);
740
+ this._activeEffect.setFloat("_Indirect_Diffuse_", this.indirectDiffuse);
741
+ // "Diffuse And Specular"
742
+ this._activeEffect.setDirectColor4("_Albedo_", this.albedo);
743
+ this._activeEffect.setFloat("_Specular_", this.specular);
744
+ this._activeEffect.setFloat("_Shininess_", this.shininess);
745
+ this._activeEffect.setFloat("_Sharpness_", this.sharpness);
746
+ this._activeEffect.setFloat("_Subsurface_", this.subsurface);
747
+ // "Gradient"
748
+ this._activeEffect.setDirectColor4("_Left_Color_", this.leftGradientColor);
749
+ this._activeEffect.setDirectColor4("_Right_Color_", this.rightGradientColor);
750
+ // "Reflection"
751
+ this._activeEffect.setFloat("_Reflection_", this.reflection);
752
+ this._activeEffect.setFloat("_Front_Reflect_", this.frontReflect);
753
+ this._activeEffect.setFloat("_Edge_Reflect_", this.edgeReflect);
754
+ this._activeEffect.setFloat("_Power_", this.power);
755
+ // "Sky Environment"
756
+ //define SKY_ENABLED true;
757
+ this._activeEffect.setDirectColor4("_Sky_Color_", this.skyColor);
758
+ this._activeEffect.setDirectColor4("_Horizon_Color_", this.horizonColor);
759
+ this._activeEffect.setDirectColor4("_Ground_Color_", this.groundColor);
760
+ this._activeEffect.setFloat("_Horizon_Power_", this.horizonPower);
761
+ // "Mapped Environment"
762
+ //define ENV_ENABLE false;
763
+ this._activeEffect.setTexture("_Reflection_Map_", this._reflectionMapTexture);
764
+ this._activeEffect.setTexture("_Indirect_Environment_", this._indirectEnvTexture);
765
+ // "FingerOcclusion"
766
+ //define OCCLUSION_ENABLED false;
767
+ this._activeEffect.setFloat("_Width_", this.width);
768
+ this._activeEffect.setFloat("_Fuzz_", this.fuzz);
769
+ this._activeEffect.setFloat("_Min_Fuzz_", this.minFuzz);
770
+ this._activeEffect.setFloat("_Clip_Fade_", this.clipFade);
771
+ // "View Based Color Shift"
772
+ this._activeEffect.setFloat("_Hue_Shift_", this.hueShift);
773
+ this._activeEffect.setFloat("_Saturation_Shift_", this.saturationShift);
774
+ this._activeEffect.setFloat("_Value_Shift_", this.valueShift);
775
+ // "Blob"
776
+ //define BLOB_ENABLE false;
777
+ this._activeEffect.setVector3("_Blob_Position_", this.blobPosition);
778
+ this._activeEffect.setFloat("_Blob_Intensity_", this.blobIntensity);
779
+ this._activeEffect.setFloat("_Blob_Near_Size_", this.blobNearSize);
780
+ this._activeEffect.setFloat("_Blob_Far_Size_", this.blobFarSize);
781
+ this._activeEffect.setFloat("_Blob_Near_Distance_", this.blobNearDistance);
782
+ this._activeEffect.setFloat("_Blob_Far_Distance_", this.blobFarDistance);
783
+ this._activeEffect.setFloat("_Blob_Fade_Length_", this.blobFadeLength);
784
+ this._activeEffect.setFloat("_Blob_Pulse_", this.blobPulse);
785
+ this._activeEffect.setFloat("_Blob_Fade_", this.blobFade);
786
+ // "Blob Texture"
787
+ this._activeEffect.setTexture("_Blob_Texture_", this.blobTexture);
788
+ // "Blob 2"
789
+ //define BLOB_ENABLE_2 true;
790
+ this._activeEffect.setVector3("_Blob_Position_2_", this.blobPosition2);
791
+ this._activeEffect.setFloat("_Blob_Near_Size_2_", this.blobNearSize2);
792
+ this._activeEffect.setFloat("_Blob_Pulse_2_", this.blobPulse2);
793
+ this._activeEffect.setFloat("_Blob_Fade_2_", this.blobFade2);
794
+ // "Finger Positions"
795
+ this._activeEffect.setVector3("_Left_Index_Pos_", this.leftIndexPosition);
796
+ this._activeEffect.setVector3("_Right_Index_Pos_", this.rightIndexPosition);
797
+ this._activeEffect.setVector3("_Left_Index_Middle_Pos_", this.leftIndexMiddlePosition);
798
+ this._activeEffect.setVector3("_Right_Index_Middle_Pos_", this.rightIndexMiddlePosition);
799
+ // "Decal Texture"
800
+ //define DECAL_ENABLE false;
801
+ this._activeEffect.setTexture("_Decal_", this._decalTexture);
802
+ this._activeEffect.setVector2("_Decal_Scale_XY_", this.decalScaleXY);
803
+ this._activeEffect.setFloat("_Decal_Front_Only_", this.decalFrontOnly ? 1.0 : 0.0);
804
+ // "Rim Light"
805
+ this._activeEffect.setFloat("_Rim_Intensity_", this.rimIntensity);
806
+ this._activeEffect.setTexture("_Rim_Texture_", this._blueGradientTexture);
807
+ this._activeEffect.setFloat("_Rim_Hue_Shift_", this.rimHueShift);
808
+ this._activeEffect.setFloat("_Rim_Saturation_Shift_", this.rimSaturationShift);
809
+ this._activeEffect.setFloat("_Rim_Value_Shift_", this.rimValueShift);
810
+ // "Iridescence"
811
+ //define IRIDESCENCE_ENABLED true;
812
+ this._activeEffect.setFloat("_Iridescence_Intensity_", this.iridescenceIntensity);
813
+ this._activeEffect.setTexture("_Iridescence_Texture_", this._blueGradientTexture);
814
+ // Global inputs
815
+ this._activeEffect.setFloat("Use_Global_Left_Index", this.useGlobalLeftIndex);
816
+ this._activeEffect.setFloat("Use_Global_Right_Index", this.useGlobalRightIndex);
817
+ this._activeEffect.setVector4("Global_Left_Index_Tip_Position", this.globalLeftIndexTipPosition);
818
+ this._activeEffect.setVector4("Global_Right_Index_Tip_Position", this.globaRightIndexTipPosition);
819
+ this._activeEffect.setVector4("Global_Left_Thumb_Tip_Position", this.globalLeftThumbTipPosition);
820
+ this._activeEffect.setVector4("Global_Right_Thumb_Tip_Position", this.globalRightThumbTipPosition);
821
+ this._activeEffect.setVector4("Global_Left_Index_Middle_Position", this.globalLeftIndexMiddlePosition);
822
+ this._activeEffect.setVector4("Global_Right_Index_Middle_Position", this.globalRightIndexMiddlePosition);
823
+ this._activeEffect.setFloat("Global_Left_Index_Tip_Proximity", this.globalLeftIndexTipProximity);
824
+ this._activeEffect.setFloat("Global_Right_Index_Tip_Proximity", this.globalRightIndexTipProximity);
825
+ this._afterBind(mesh, this._activeEffect, subMesh);
377
826
  }
378
- HandleFallbacksForShadows(defines, fallbacks);
379
- defines.IMAGEPROCESSINGPOSTPROCESS = scene.imageProcessingConfiguration.applyByPostProcess;
380
- //Attributes
381
- const attribs = [VertexBuffer.PositionKind];
382
- if (defines.NORMAL) {
383
- attribs.push(VertexBuffer.NormalKind);
827
+ /**
828
+ * Get the list of animatables in the material.
829
+ * @returns the list of animatables object used in the material
830
+ */
831
+ getAnimatables() {
832
+ return [];
384
833
  }
385
- if (defines.UV1) {
386
- attribs.push(VertexBuffer.UVKind);
834
+ dispose(forceDisposeEffect) {
835
+ super.dispose(forceDisposeEffect);
836
+ this._reflectionMapTexture.dispose();
837
+ this._indirectEnvTexture.dispose();
838
+ this._blueGradientTexture.dispose();
839
+ this._decalTexture.dispose();
387
840
  }
388
- if (defines.UV2) {
389
- attribs.push(VertexBuffer.UV2Kind);
841
+ clone(name) {
842
+ return SerializationHelper.Clone(() => new _a(name, this.getScene()), this);
390
843
  }
391
- if (defines.VERTEXCOLOR) {
392
- attribs.push(VertexBuffer.ColorKind);
844
+ serialize() {
845
+ const serializationObject = super.serialize();
846
+ serializationObject.customType = "BABYLON.MRDLSliderBarMaterial";
847
+ return serializationObject;
393
848
  }
394
- if (defines.TANGENT) {
395
- attribs.push(VertexBuffer.TangentKind);
849
+ getClassName() {
850
+ return "MRDLSliderBarMaterial";
396
851
  }
397
- PrepareAttributesForInstances(attribs, defines);
398
- // Legacy browser patch
399
- const shaderName = "mrdlSliderBar";
400
- const join = defines.toString();
401
- const uniforms = [
402
- "world",
403
- "viewProjection",
404
- "cameraPosition",
405
- "_Radius_",
406
- "_Bevel_Front_",
407
- "_Bevel_Front_Stretch_",
408
- "_Bevel_Back_",
409
- "_Bevel_Back_Stretch_",
410
- "_Radius_Top_Left_",
411
- "_Radius_Top_Right_",
412
- "_Radius_Bottom_Left_",
413
- "_Radius_Bottom_Right_",
414
- "_Bulge_Enabled_",
415
- "_Bulge_Height_",
416
- "_Bulge_Radius_",
417
- "_Sun_Intensity_",
418
- "_Sun_Theta_",
419
- "_Sun_Phi_",
420
- "_Indirect_Diffuse_",
421
- "_Albedo_",
422
- "_Specular_",
423
- "_Shininess_",
424
- "_Sharpness_",
425
- "_Subsurface_",
426
- "_Left_Color_",
427
- "_Right_Color_",
428
- "_Reflection_",
429
- "_Front_Reflect_",
430
- "_Edge_Reflect_",
431
- "_Power_",
432
- "_Sky_Color_",
433
- "_Horizon_Color_",
434
- "_Ground_Color_",
435
- "_Horizon_Power_",
436
- "_Reflection_Map_",
437
- "_Indirect_Environment_",
438
- "_Width_",
439
- "_Fuzz_",
440
- "_Min_Fuzz_",
441
- "_Clip_Fade_",
442
- "_Hue_Shift_",
443
- "_Saturation_Shift_",
444
- "_Value_Shift_",
445
- "_Blob_Position_",
446
- "_Blob_Intensity_",
447
- "_Blob_Near_Size_",
448
- "_Blob_Far_Size_",
449
- "_Blob_Near_Distance_",
450
- "_Blob_Far_Distance_",
451
- "_Blob_Fade_Length_",
452
- "_Blob_Pulse_",
453
- "_Blob_Fade_",
454
- "_Blob_Texture_",
455
- "_Blob_Position_2_",
456
- "_Blob_Near_Size_2_",
457
- "_Blob_Pulse_2_",
458
- "_Blob_Fade_2_",
459
- "_Left_Index_Pos_",
460
- "_Right_Index_Pos_",
461
- "_Left_Index_Middle_Pos_",
462
- "_Right_Index_Middle_Pos_",
463
- "_Decal_",
464
- "_Decal_Scale_XY_",
465
- "_Decal_Front_Only_",
466
- "_Rim_Intensity_",
467
- "_Rim_Texture_",
468
- "_Rim_Hue_Shift_",
469
- "_Rim_Saturation_Shift_",
470
- "_Rim_Value_Shift_",
471
- "_Iridescence_Intensity_",
472
- "_Iridescence_Texture_",
473
- "Use_Global_Left_Index",
474
- "Use_Global_Right_Index",
475
- "Global_Left_Index_Tip_Position",
476
- "Global_Right_Index_Tip_Position",
477
- "Global_Left_Thumb_Tip_Position",
478
- "Global_Right_Thumb_Tip_Position",
479
- "Global_Left_Index_Middle_Position;",
480
- "Global_Right_Index_Middle_Position",
481
- "Global_Left_Index_Tip_Proximity",
482
- "Global_Right_Index_Tip_Proximity",
483
- ];
484
- const samplers = ["_Rim_Texture_", "_Iridescence_Texture_"];
485
- const uniformBuffers = [];
486
- PrepareUniformsAndSamplersList({
487
- uniformsNames: uniforms,
488
- uniformBuffersNames: uniformBuffers,
489
- samplers: samplers,
490
- defines: defines,
491
- maxSimultaneousLights: 4,
492
- });
493
- subMesh.setEffect(scene.getEngine().createEffect(shaderName, {
494
- attributes: attribs,
495
- uniformsNames: uniforms,
496
- uniformBuffersNames: uniformBuffers,
497
- samplers: samplers,
498
- defines: join,
499
- fallbacks: fallbacks,
500
- onCompiled: this.onCompiled,
501
- onError: this.onError,
502
- indexParameters: { maxSimultaneousLights: 4 },
503
- extraInitializationsAsync: async () => {
504
- await Promise.all([import("./shaders/mrdlSliderBar.vertex.js"), import("./shaders/mrdlSliderBar.fragment.js")]);
505
- },
506
- }, engine), defines, this._materialContext);
507
- }
508
- if (!subMesh.effect || !subMesh.effect.isReady()) {
509
- return false;
510
- }
511
- defines._renderId = scene.getRenderId();
512
- drawWrapper._wasPreviouslyReady = true;
513
- return true;
514
- }
515
- bindForSubMesh(world, mesh, subMesh) {
516
- const defines = subMesh.materialDefines;
517
- if (!defines) {
518
- return;
519
- }
520
- const effect = subMesh.effect;
521
- if (!effect) {
522
- return;
523
- }
524
- this._activeEffect = effect;
525
- // Matrices
526
- this.bindOnlyWorldMatrix(world);
527
- this._activeEffect.setMatrix("viewProjection", this.getScene().getTransformMatrix());
528
- this._activeEffect.setVector3("cameraPosition", this.getScene().activeCamera.position);
529
- // "Round Rect"
530
- this._activeEffect.setFloat("_Radius_", this.radius);
531
- this._activeEffect.setFloat("_Bevel_Front_", this.bevelFront);
532
- this._activeEffect.setFloat("_Bevel_Front_Stretch_", this.bevelFrontStretch);
533
- this._activeEffect.setFloat("_Bevel_Back_", this.bevelBack);
534
- this._activeEffect.setFloat("_Bevel_Back_Stretch_", this.bevelBackStretch);
535
- // "Radii Multipliers"
536
- this._activeEffect.setFloat("_Radius_Top_Left_", this.radiusTopLeft);
537
- this._activeEffect.setFloat("_Radius_Top_Right_", this.radiusTopRight);
538
- this._activeEffect.setFloat("_Radius_Bottom_Left_", this.radiusBottomLeft);
539
- this._activeEffect.setFloat("_Radius_Bottom_Right_", this.radiusBottomRight);
540
- // "Bulge"
541
- this._activeEffect.setFloat("_Bulge_Enabled_", this.bulgeEnabled ? 1.0 : 0.0);
542
- this._activeEffect.setFloat("_Bulge_Height_", this.bulgeHeight);
543
- this._activeEffect.setFloat("_Bulge_Radius_", this.bulgeRadius);
544
- // "Sun"
545
- this._activeEffect.setFloat("_Sun_Intensity_", this.sunIntensity);
546
- this._activeEffect.setFloat("_Sun_Theta_", this.sunTheta);
547
- this._activeEffect.setFloat("_Sun_Phi_", this.sunPhi);
548
- this._activeEffect.setFloat("_Indirect_Diffuse_", this.indirectDiffuse);
549
- // "Diffuse And Specular"
550
- this._activeEffect.setDirectColor4("_Albedo_", this.albedo);
551
- this._activeEffect.setFloat("_Specular_", this.specular);
552
- this._activeEffect.setFloat("_Shininess_", this.shininess);
553
- this._activeEffect.setFloat("_Sharpness_", this.sharpness);
554
- this._activeEffect.setFloat("_Subsurface_", this.subsurface);
555
- // "Gradient"
556
- this._activeEffect.setDirectColor4("_Left_Color_", this.leftGradientColor);
557
- this._activeEffect.setDirectColor4("_Right_Color_", this.rightGradientColor);
558
- // "Reflection"
559
- this._activeEffect.setFloat("_Reflection_", this.reflection);
560
- this._activeEffect.setFloat("_Front_Reflect_", this.frontReflect);
561
- this._activeEffect.setFloat("_Edge_Reflect_", this.edgeReflect);
562
- this._activeEffect.setFloat("_Power_", this.power);
563
- // "Sky Environment"
564
- //define SKY_ENABLED true;
565
- this._activeEffect.setDirectColor4("_Sky_Color_", this.skyColor);
566
- this._activeEffect.setDirectColor4("_Horizon_Color_", this.horizonColor);
567
- this._activeEffect.setDirectColor4("_Ground_Color_", this.groundColor);
568
- this._activeEffect.setFloat("_Horizon_Power_", this.horizonPower);
569
- // "Mapped Environment"
570
- //define ENV_ENABLE false;
571
- this._activeEffect.setTexture("_Reflection_Map_", this._reflectionMapTexture);
572
- this._activeEffect.setTexture("_Indirect_Environment_", this._indirectEnvTexture);
573
- // "FingerOcclusion"
574
- //define OCCLUSION_ENABLED false;
575
- this._activeEffect.setFloat("_Width_", this.width);
576
- this._activeEffect.setFloat("_Fuzz_", this.fuzz);
577
- this._activeEffect.setFloat("_Min_Fuzz_", this.minFuzz);
578
- this._activeEffect.setFloat("_Clip_Fade_", this.clipFade);
579
- // "View Based Color Shift"
580
- this._activeEffect.setFloat("_Hue_Shift_", this.hueShift);
581
- this._activeEffect.setFloat("_Saturation_Shift_", this.saturationShift);
582
- this._activeEffect.setFloat("_Value_Shift_", this.valueShift);
583
- // "Blob"
584
- //define BLOB_ENABLE false;
585
- this._activeEffect.setVector3("_Blob_Position_", this.blobPosition);
586
- this._activeEffect.setFloat("_Blob_Intensity_", this.blobIntensity);
587
- this._activeEffect.setFloat("_Blob_Near_Size_", this.blobNearSize);
588
- this._activeEffect.setFloat("_Blob_Far_Size_", this.blobFarSize);
589
- this._activeEffect.setFloat("_Blob_Near_Distance_", this.blobNearDistance);
590
- this._activeEffect.setFloat("_Blob_Far_Distance_", this.blobFarDistance);
591
- this._activeEffect.setFloat("_Blob_Fade_Length_", this.blobFadeLength);
592
- this._activeEffect.setFloat("_Blob_Pulse_", this.blobPulse);
593
- this._activeEffect.setFloat("_Blob_Fade_", this.blobFade);
594
- // "Blob Texture"
595
- this._activeEffect.setTexture("_Blob_Texture_", this.blobTexture);
596
- // "Blob 2"
597
- //define BLOB_ENABLE_2 true;
598
- this._activeEffect.setVector3("_Blob_Position_2_", this.blobPosition2);
599
- this._activeEffect.setFloat("_Blob_Near_Size_2_", this.blobNearSize2);
600
- this._activeEffect.setFloat("_Blob_Pulse_2_", this.blobPulse2);
601
- this._activeEffect.setFloat("_Blob_Fade_2_", this.blobFade2);
602
- // "Finger Positions"
603
- this._activeEffect.setVector3("_Left_Index_Pos_", this.leftIndexPosition);
604
- this._activeEffect.setVector3("_Right_Index_Pos_", this.rightIndexPosition);
605
- this._activeEffect.setVector3("_Left_Index_Middle_Pos_", this.leftIndexMiddlePosition);
606
- this._activeEffect.setVector3("_Right_Index_Middle_Pos_", this.rightIndexMiddlePosition);
607
- // "Decal Texture"
608
- //define DECAL_ENABLE false;
609
- this._activeEffect.setTexture("_Decal_", this._decalTexture);
610
- this._activeEffect.setVector2("_Decal_Scale_XY_", this.decalScaleXY);
611
- this._activeEffect.setFloat("_Decal_Front_Only_", this.decalFrontOnly ? 1.0 : 0.0);
612
- // "Rim Light"
613
- this._activeEffect.setFloat("_Rim_Intensity_", this.rimIntensity);
614
- this._activeEffect.setTexture("_Rim_Texture_", this._blueGradientTexture);
615
- this._activeEffect.setFloat("_Rim_Hue_Shift_", this.rimHueShift);
616
- this._activeEffect.setFloat("_Rim_Saturation_Shift_", this.rimSaturationShift);
617
- this._activeEffect.setFloat("_Rim_Value_Shift_", this.rimValueShift);
618
- // "Iridescence"
619
- //define IRIDESCENCE_ENABLED true;
620
- this._activeEffect.setFloat("_Iridescence_Intensity_", this.iridescenceIntensity);
621
- this._activeEffect.setTexture("_Iridescence_Texture_", this._blueGradientTexture);
622
- // Global inputs
623
- this._activeEffect.setFloat("Use_Global_Left_Index", this.useGlobalLeftIndex);
624
- this._activeEffect.setFloat("Use_Global_Right_Index", this.useGlobalRightIndex);
625
- this._activeEffect.setVector4("Global_Left_Index_Tip_Position", this.globalLeftIndexTipPosition);
626
- this._activeEffect.setVector4("Global_Right_Index_Tip_Position", this.globaRightIndexTipPosition);
627
- this._activeEffect.setVector4("Global_Left_Thumb_Tip_Position", this.globalLeftThumbTipPosition);
628
- this._activeEffect.setVector4("Global_Right_Thumb_Tip_Position", this.globalRightThumbTipPosition);
629
- this._activeEffect.setVector4("Global_Left_Index_Middle_Position", this.globalLeftIndexMiddlePosition);
630
- this._activeEffect.setVector4("Global_Right_Index_Middle_Position", this.globalRightIndexMiddlePosition);
631
- this._activeEffect.setFloat("Global_Left_Index_Tip_Proximity", this.globalLeftIndexTipProximity);
632
- this._activeEffect.setFloat("Global_Right_Index_Tip_Proximity", this.globalRightIndexTipProximity);
633
- this._afterBind(mesh, this._activeEffect, subMesh);
634
- }
635
- /**
636
- * Get the list of animatables in the material.
637
- * @returns the list of animatables object used in the material
638
- */
639
- getAnimatables() {
640
- return [];
641
- }
642
- dispose(forceDisposeEffect) {
643
- super.dispose(forceDisposeEffect);
644
- this._reflectionMapTexture.dispose();
645
- this._indirectEnvTexture.dispose();
646
- this._blueGradientTexture.dispose();
647
- this._decalTexture.dispose();
648
- }
649
- clone(name) {
650
- return SerializationHelper.Clone(() => new MRDLSliderBarMaterial(name, this.getScene()), this);
651
- }
652
- serialize() {
653
- const serializationObject = super.serialize();
654
- serializationObject.customType = "BABYLON.MRDLSliderBarMaterial";
655
- return serializationObject;
656
- }
657
- getClassName() {
658
- return "MRDLSliderBarMaterial";
659
- }
660
- // Statics
661
- /**
662
- * Parses a serialized MRDLSliderBarMaterial and returns a new instance.
663
- * @param source - the serialized object
664
- * @param scene - defines the hosting scene
665
- * @param rootUrl - the root URL used to load any associated textures
666
- * @returns a new MRDLSliderBarMaterial
667
- */
668
- static Parse(source, scene, rootUrl) {
669
- return SerializationHelper.Parse(() => new MRDLSliderBarMaterial(source.name, scene), source, scene, rootUrl);
670
- }
671
- }
672
- /**
673
- * URL pointing to the texture used to define the coloring for the Iridescent Map effect.
674
- */
675
- MRDLSliderBarMaterial.BLUE_GRADIENT_TEXTURE_URL = "https://assets.babylonjs.com/core/MRTK/MRDL/mrtk-mrdl-blue-gradient.png";
676
- __decorate([
677
- serialize()
678
- ], MRDLSliderBarMaterial.prototype, "radius", void 0);
679
- __decorate([
680
- serialize()
681
- ], MRDLSliderBarMaterial.prototype, "bevelFront", void 0);
682
- __decorate([
683
- serialize()
684
- ], MRDLSliderBarMaterial.prototype, "bevelFrontStretch", void 0);
685
- __decorate([
686
- serialize()
687
- ], MRDLSliderBarMaterial.prototype, "bevelBack", void 0);
688
- __decorate([
689
- serialize()
690
- ], MRDLSliderBarMaterial.prototype, "bevelBackStretch", void 0);
691
- __decorate([
692
- serialize()
693
- ], MRDLSliderBarMaterial.prototype, "radiusTopLeft", void 0);
694
- __decorate([
695
- serialize()
696
- ], MRDLSliderBarMaterial.prototype, "radiusTopRight", void 0);
697
- __decorate([
698
- serialize()
699
- ], MRDLSliderBarMaterial.prototype, "radiusBottomLeft", void 0);
700
- __decorate([
701
- serialize()
702
- ], MRDLSliderBarMaterial.prototype, "radiusBottomRight", void 0);
703
- __decorate([
704
- serialize()
705
- ], MRDLSliderBarMaterial.prototype, "bulgeEnabled", void 0);
706
- __decorate([
707
- serialize()
708
- ], MRDLSliderBarMaterial.prototype, "bulgeHeight", void 0);
709
- __decorate([
710
- serialize()
711
- ], MRDLSliderBarMaterial.prototype, "bulgeRadius", void 0);
712
- __decorate([
713
- serialize()
714
- ], MRDLSliderBarMaterial.prototype, "sunIntensity", void 0);
715
- __decorate([
716
- serialize()
717
- ], MRDLSliderBarMaterial.prototype, "sunTheta", void 0);
718
- __decorate([
719
- serialize()
720
- ], MRDLSliderBarMaterial.prototype, "sunPhi", void 0);
721
- __decorate([
722
- serialize()
723
- ], MRDLSliderBarMaterial.prototype, "indirectDiffuse", void 0);
724
- __decorate([
725
- serialize()
726
- ], MRDLSliderBarMaterial.prototype, "albedo", void 0);
727
- __decorate([
728
- serialize()
729
- ], MRDLSliderBarMaterial.prototype, "specular", void 0);
730
- __decorate([
731
- serialize()
732
- ], MRDLSliderBarMaterial.prototype, "shininess", void 0);
733
- __decorate([
734
- serialize()
735
- ], MRDLSliderBarMaterial.prototype, "sharpness", void 0);
736
- __decorate([
737
- serialize()
738
- ], MRDLSliderBarMaterial.prototype, "subsurface", void 0);
739
- __decorate([
740
- serialize()
741
- ], MRDLSliderBarMaterial.prototype, "leftGradientColor", void 0);
742
- __decorate([
743
- serialize()
744
- ], MRDLSliderBarMaterial.prototype, "rightGradientColor", void 0);
745
- __decorate([
746
- serialize()
747
- ], MRDLSliderBarMaterial.prototype, "reflection", void 0);
748
- __decorate([
749
- serialize()
750
- ], MRDLSliderBarMaterial.prototype, "frontReflect", void 0);
751
- __decorate([
752
- serialize()
753
- ], MRDLSliderBarMaterial.prototype, "edgeReflect", void 0);
754
- __decorate([
755
- serialize()
756
- ], MRDLSliderBarMaterial.prototype, "power", void 0);
757
- __decorate([
758
- serialize()
759
- ], MRDLSliderBarMaterial.prototype, "skyColor", void 0);
760
- __decorate([
761
- serialize()
762
- ], MRDLSliderBarMaterial.prototype, "horizonColor", void 0);
763
- __decorate([
764
- serialize()
765
- ], MRDLSliderBarMaterial.prototype, "groundColor", void 0);
766
- __decorate([
767
- serialize()
768
- ], MRDLSliderBarMaterial.prototype, "horizonPower", void 0);
769
- __decorate([
770
- serialize()
771
- ], MRDLSliderBarMaterial.prototype, "width", void 0);
772
- __decorate([
773
- serialize()
774
- ], MRDLSliderBarMaterial.prototype, "fuzz", void 0);
775
- __decorate([
776
- serialize()
777
- ], MRDLSliderBarMaterial.prototype, "minFuzz", void 0);
778
- __decorate([
779
- serialize()
780
- ], MRDLSliderBarMaterial.prototype, "clipFade", void 0);
781
- __decorate([
782
- serialize()
783
- ], MRDLSliderBarMaterial.prototype, "hueShift", void 0);
784
- __decorate([
785
- serialize()
786
- ], MRDLSliderBarMaterial.prototype, "saturationShift", void 0);
787
- __decorate([
788
- serialize()
789
- ], MRDLSliderBarMaterial.prototype, "valueShift", void 0);
790
- __decorate([
791
- serialize()
792
- ], MRDLSliderBarMaterial.prototype, "blobPosition", void 0);
793
- __decorate([
794
- serialize()
795
- ], MRDLSliderBarMaterial.prototype, "blobIntensity", void 0);
796
- __decorate([
797
- serialize()
798
- ], MRDLSliderBarMaterial.prototype, "blobNearSize", void 0);
799
- __decorate([
800
- serialize()
801
- ], MRDLSliderBarMaterial.prototype, "blobFarSize", void 0);
802
- __decorate([
803
- serialize()
804
- ], MRDLSliderBarMaterial.prototype, "blobNearDistance", void 0);
805
- __decorate([
806
- serialize()
807
- ], MRDLSliderBarMaterial.prototype, "blobFarDistance", void 0);
808
- __decorate([
809
- serialize()
810
- ], MRDLSliderBarMaterial.prototype, "blobFadeLength", void 0);
811
- __decorate([
812
- serialize()
813
- ], MRDLSliderBarMaterial.prototype, "blobPulse", void 0);
814
- __decorate([
815
- serialize()
816
- ], MRDLSliderBarMaterial.prototype, "blobFade", void 0);
817
- __decorate([
818
- serialize()
819
- ], MRDLSliderBarMaterial.prototype, "blobPosition2", void 0);
820
- __decorate([
821
- serialize()
822
- ], MRDLSliderBarMaterial.prototype, "blobNearSize2", void 0);
823
- __decorate([
824
- serialize()
825
- ], MRDLSliderBarMaterial.prototype, "blobPulse2", void 0);
826
- __decorate([
827
- serialize()
828
- ], MRDLSliderBarMaterial.prototype, "blobFade2", void 0);
829
- __decorate([
830
- serialize()
831
- ], MRDLSliderBarMaterial.prototype, "blobTexture", void 0);
832
- __decorate([
833
- serialize()
834
- ], MRDLSliderBarMaterial.prototype, "leftIndexPosition", void 0);
835
- __decorate([
836
- serialize()
837
- ], MRDLSliderBarMaterial.prototype, "rightIndexPosition", void 0);
838
- __decorate([
839
- serialize()
840
- ], MRDLSliderBarMaterial.prototype, "leftIndexMiddlePosition", void 0);
841
- __decorate([
842
- serialize()
843
- ], MRDLSliderBarMaterial.prototype, "rightIndexMiddlePosition", void 0);
844
- __decorate([
845
- serialize()
846
- ], MRDLSliderBarMaterial.prototype, "decalScaleXY", void 0);
847
- __decorate([
848
- serialize()
849
- ], MRDLSliderBarMaterial.prototype, "decalFrontOnly", void 0);
850
- __decorate([
851
- serialize()
852
- ], MRDLSliderBarMaterial.prototype, "rimIntensity", void 0);
853
- __decorate([
854
- serialize()
855
- ], MRDLSliderBarMaterial.prototype, "rimHueShift", void 0);
856
- __decorate([
857
- serialize()
858
- ], MRDLSliderBarMaterial.prototype, "rimSaturationShift", void 0);
859
- __decorate([
860
- serialize()
861
- ], MRDLSliderBarMaterial.prototype, "rimValueShift", void 0);
862
- __decorate([
863
- serialize()
864
- ], MRDLSliderBarMaterial.prototype, "iridescenceIntensity", void 0);
852
+ // Statics
853
+ /**
854
+ * Parses a serialized MRDLSliderBarMaterial and returns a new instance.
855
+ * @param source - the serialized object
856
+ * @param scene - defines the hosting scene
857
+ * @param rootUrl - the root URL used to load any associated textures
858
+ * @returns a new MRDLSliderBarMaterial
859
+ */
860
+ static Parse(source, scene, rootUrl) {
861
+ return SerializationHelper.Parse(() => new _a(source.name, scene), source, scene, rootUrl);
862
+ }
863
+ },
864
+ (() => {
865
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
866
+ _radius_decorators = [serialize()];
867
+ _bevelFront_decorators = [serialize()];
868
+ _bevelFrontStretch_decorators = [serialize()];
869
+ _bevelBack_decorators = [serialize()];
870
+ _bevelBackStretch_decorators = [serialize()];
871
+ _radiusTopLeft_decorators = [serialize()];
872
+ _radiusTopRight_decorators = [serialize()];
873
+ _radiusBottomLeft_decorators = [serialize()];
874
+ _radiusBottomRight_decorators = [serialize()];
875
+ _bulgeEnabled_decorators = [serialize()];
876
+ _bulgeHeight_decorators = [serialize()];
877
+ _bulgeRadius_decorators = [serialize()];
878
+ _sunIntensity_decorators = [serialize()];
879
+ _sunTheta_decorators = [serialize()];
880
+ _sunPhi_decorators = [serialize()];
881
+ _indirectDiffuse_decorators = [serialize()];
882
+ _albedo_decorators = [serialize()];
883
+ _specular_decorators = [serialize()];
884
+ _shininess_decorators = [serialize()];
885
+ _sharpness_decorators = [serialize()];
886
+ _subsurface_decorators = [serialize()];
887
+ _leftGradientColor_decorators = [serialize()];
888
+ _rightGradientColor_decorators = [serialize()];
889
+ _reflection_decorators = [serialize()];
890
+ _frontReflect_decorators = [serialize()];
891
+ _edgeReflect_decorators = [serialize()];
892
+ _power_decorators = [serialize()];
893
+ _skyColor_decorators = [serialize()];
894
+ _horizonColor_decorators = [serialize()];
895
+ _groundColor_decorators = [serialize()];
896
+ _horizonPower_decorators = [serialize()];
897
+ _width_decorators = [serialize()];
898
+ _fuzz_decorators = [serialize()];
899
+ _minFuzz_decorators = [serialize()];
900
+ _clipFade_decorators = [serialize()];
901
+ _hueShift_decorators = [serialize()];
902
+ _saturationShift_decorators = [serialize()];
903
+ _valueShift_decorators = [serialize()];
904
+ _blobPosition_decorators = [serialize()];
905
+ _blobIntensity_decorators = [serialize()];
906
+ _blobNearSize_decorators = [serialize()];
907
+ _blobFarSize_decorators = [serialize()];
908
+ _blobNearDistance_decorators = [serialize()];
909
+ _blobFarDistance_decorators = [serialize()];
910
+ _blobFadeLength_decorators = [serialize()];
911
+ _blobPulse_decorators = [serialize()];
912
+ _blobFade_decorators = [serialize()];
913
+ _blobPosition2_decorators = [serialize()];
914
+ _blobNearSize2_decorators = [serialize()];
915
+ _blobPulse2_decorators = [serialize()];
916
+ _blobFade2_decorators = [serialize()];
917
+ _blobTexture_decorators = [serialize()];
918
+ _leftIndexPosition_decorators = [serialize()];
919
+ _rightIndexPosition_decorators = [serialize()];
920
+ _leftIndexMiddlePosition_decorators = [serialize()];
921
+ _rightIndexMiddlePosition_decorators = [serialize()];
922
+ _decalScaleXY_decorators = [serialize()];
923
+ _decalFrontOnly_decorators = [serialize()];
924
+ _rimIntensity_decorators = [serialize()];
925
+ _rimHueShift_decorators = [serialize()];
926
+ _rimSaturationShift_decorators = [serialize()];
927
+ _rimValueShift_decorators = [serialize()];
928
+ _iridescenceIntensity_decorators = [serialize()];
929
+ __esDecorate(null, null, _radius_decorators, { kind: "field", name: "radius", static: false, private: false, access: { has: obj => "radius" in obj, get: obj => obj.radius, set: (obj, value) => { obj.radius = value; } }, metadata: _metadata }, _radius_initializers, _radius_extraInitializers);
930
+ __esDecorate(null, null, _bevelFront_decorators, { kind: "field", name: "bevelFront", static: false, private: false, access: { has: obj => "bevelFront" in obj, get: obj => obj.bevelFront, set: (obj, value) => { obj.bevelFront = value; } }, metadata: _metadata }, _bevelFront_initializers, _bevelFront_extraInitializers);
931
+ __esDecorate(null, null, _bevelFrontStretch_decorators, { kind: "field", name: "bevelFrontStretch", static: false, private: false, access: { has: obj => "bevelFrontStretch" in obj, get: obj => obj.bevelFrontStretch, set: (obj, value) => { obj.bevelFrontStretch = value; } }, metadata: _metadata }, _bevelFrontStretch_initializers, _bevelFrontStretch_extraInitializers);
932
+ __esDecorate(null, null, _bevelBack_decorators, { kind: "field", name: "bevelBack", static: false, private: false, access: { has: obj => "bevelBack" in obj, get: obj => obj.bevelBack, set: (obj, value) => { obj.bevelBack = value; } }, metadata: _metadata }, _bevelBack_initializers, _bevelBack_extraInitializers);
933
+ __esDecorate(null, null, _bevelBackStretch_decorators, { kind: "field", name: "bevelBackStretch", static: false, private: false, access: { has: obj => "bevelBackStretch" in obj, get: obj => obj.bevelBackStretch, set: (obj, value) => { obj.bevelBackStretch = value; } }, metadata: _metadata }, _bevelBackStretch_initializers, _bevelBackStretch_extraInitializers);
934
+ __esDecorate(null, null, _radiusTopLeft_decorators, { kind: "field", name: "radiusTopLeft", static: false, private: false, access: { has: obj => "radiusTopLeft" in obj, get: obj => obj.radiusTopLeft, set: (obj, value) => { obj.radiusTopLeft = value; } }, metadata: _metadata }, _radiusTopLeft_initializers, _radiusTopLeft_extraInitializers);
935
+ __esDecorate(null, null, _radiusTopRight_decorators, { kind: "field", name: "radiusTopRight", static: false, private: false, access: { has: obj => "radiusTopRight" in obj, get: obj => obj.radiusTopRight, set: (obj, value) => { obj.radiusTopRight = value; } }, metadata: _metadata }, _radiusTopRight_initializers, _radiusTopRight_extraInitializers);
936
+ __esDecorate(null, null, _radiusBottomLeft_decorators, { kind: "field", name: "radiusBottomLeft", static: false, private: false, access: { has: obj => "radiusBottomLeft" in obj, get: obj => obj.radiusBottomLeft, set: (obj, value) => { obj.radiusBottomLeft = value; } }, metadata: _metadata }, _radiusBottomLeft_initializers, _radiusBottomLeft_extraInitializers);
937
+ __esDecorate(null, null, _radiusBottomRight_decorators, { kind: "field", name: "radiusBottomRight", static: false, private: false, access: { has: obj => "radiusBottomRight" in obj, get: obj => obj.radiusBottomRight, set: (obj, value) => { obj.radiusBottomRight = value; } }, metadata: _metadata }, _radiusBottomRight_initializers, _radiusBottomRight_extraInitializers);
938
+ __esDecorate(null, null, _bulgeEnabled_decorators, { kind: "field", name: "bulgeEnabled", static: false, private: false, access: { has: obj => "bulgeEnabled" in obj, get: obj => obj.bulgeEnabled, set: (obj, value) => { obj.bulgeEnabled = value; } }, metadata: _metadata }, _bulgeEnabled_initializers, _bulgeEnabled_extraInitializers);
939
+ __esDecorate(null, null, _bulgeHeight_decorators, { kind: "field", name: "bulgeHeight", static: false, private: false, access: { has: obj => "bulgeHeight" in obj, get: obj => obj.bulgeHeight, set: (obj, value) => { obj.bulgeHeight = value; } }, metadata: _metadata }, _bulgeHeight_initializers, _bulgeHeight_extraInitializers);
940
+ __esDecorate(null, null, _bulgeRadius_decorators, { kind: "field", name: "bulgeRadius", static: false, private: false, access: { has: obj => "bulgeRadius" in obj, get: obj => obj.bulgeRadius, set: (obj, value) => { obj.bulgeRadius = value; } }, metadata: _metadata }, _bulgeRadius_initializers, _bulgeRadius_extraInitializers);
941
+ __esDecorate(null, null, _sunIntensity_decorators, { kind: "field", name: "sunIntensity", static: false, private: false, access: { has: obj => "sunIntensity" in obj, get: obj => obj.sunIntensity, set: (obj, value) => { obj.sunIntensity = value; } }, metadata: _metadata }, _sunIntensity_initializers, _sunIntensity_extraInitializers);
942
+ __esDecorate(null, null, _sunTheta_decorators, { kind: "field", name: "sunTheta", static: false, private: false, access: { has: obj => "sunTheta" in obj, get: obj => obj.sunTheta, set: (obj, value) => { obj.sunTheta = value; } }, metadata: _metadata }, _sunTheta_initializers, _sunTheta_extraInitializers);
943
+ __esDecorate(null, null, _sunPhi_decorators, { kind: "field", name: "sunPhi", static: false, private: false, access: { has: obj => "sunPhi" in obj, get: obj => obj.sunPhi, set: (obj, value) => { obj.sunPhi = value; } }, metadata: _metadata }, _sunPhi_initializers, _sunPhi_extraInitializers);
944
+ __esDecorate(null, null, _indirectDiffuse_decorators, { kind: "field", name: "indirectDiffuse", static: false, private: false, access: { has: obj => "indirectDiffuse" in obj, get: obj => obj.indirectDiffuse, set: (obj, value) => { obj.indirectDiffuse = value; } }, metadata: _metadata }, _indirectDiffuse_initializers, _indirectDiffuse_extraInitializers);
945
+ __esDecorate(null, null, _albedo_decorators, { kind: "field", name: "albedo", static: false, private: false, access: { has: obj => "albedo" in obj, get: obj => obj.albedo, set: (obj, value) => { obj.albedo = value; } }, metadata: _metadata }, _albedo_initializers, _albedo_extraInitializers);
946
+ __esDecorate(null, null, _specular_decorators, { kind: "field", name: "specular", static: false, private: false, access: { has: obj => "specular" in obj, get: obj => obj.specular, set: (obj, value) => { obj.specular = value; } }, metadata: _metadata }, _specular_initializers, _specular_extraInitializers);
947
+ __esDecorate(null, null, _shininess_decorators, { kind: "field", name: "shininess", static: false, private: false, access: { has: obj => "shininess" in obj, get: obj => obj.shininess, set: (obj, value) => { obj.shininess = value; } }, metadata: _metadata }, _shininess_initializers, _shininess_extraInitializers);
948
+ __esDecorate(null, null, _sharpness_decorators, { kind: "field", name: "sharpness", static: false, private: false, access: { has: obj => "sharpness" in obj, get: obj => obj.sharpness, set: (obj, value) => { obj.sharpness = value; } }, metadata: _metadata }, _sharpness_initializers, _sharpness_extraInitializers);
949
+ __esDecorate(null, null, _subsurface_decorators, { kind: "field", name: "subsurface", static: false, private: false, access: { has: obj => "subsurface" in obj, get: obj => obj.subsurface, set: (obj, value) => { obj.subsurface = value; } }, metadata: _metadata }, _subsurface_initializers, _subsurface_extraInitializers);
950
+ __esDecorate(null, null, _leftGradientColor_decorators, { kind: "field", name: "leftGradientColor", static: false, private: false, access: { has: obj => "leftGradientColor" in obj, get: obj => obj.leftGradientColor, set: (obj, value) => { obj.leftGradientColor = value; } }, metadata: _metadata }, _leftGradientColor_initializers, _leftGradientColor_extraInitializers);
951
+ __esDecorate(null, null, _rightGradientColor_decorators, { kind: "field", name: "rightGradientColor", static: false, private: false, access: { has: obj => "rightGradientColor" in obj, get: obj => obj.rightGradientColor, set: (obj, value) => { obj.rightGradientColor = value; } }, metadata: _metadata }, _rightGradientColor_initializers, _rightGradientColor_extraInitializers);
952
+ __esDecorate(null, null, _reflection_decorators, { kind: "field", name: "reflection", static: false, private: false, access: { has: obj => "reflection" in obj, get: obj => obj.reflection, set: (obj, value) => { obj.reflection = value; } }, metadata: _metadata }, _reflection_initializers, _reflection_extraInitializers);
953
+ __esDecorate(null, null, _frontReflect_decorators, { kind: "field", name: "frontReflect", static: false, private: false, access: { has: obj => "frontReflect" in obj, get: obj => obj.frontReflect, set: (obj, value) => { obj.frontReflect = value; } }, metadata: _metadata }, _frontReflect_initializers, _frontReflect_extraInitializers);
954
+ __esDecorate(null, null, _edgeReflect_decorators, { kind: "field", name: "edgeReflect", static: false, private: false, access: { has: obj => "edgeReflect" in obj, get: obj => obj.edgeReflect, set: (obj, value) => { obj.edgeReflect = value; } }, metadata: _metadata }, _edgeReflect_initializers, _edgeReflect_extraInitializers);
955
+ __esDecorate(null, null, _power_decorators, { kind: "field", name: "power", static: false, private: false, access: { has: obj => "power" in obj, get: obj => obj.power, set: (obj, value) => { obj.power = value; } }, metadata: _metadata }, _power_initializers, _power_extraInitializers);
956
+ __esDecorate(null, null, _skyColor_decorators, { kind: "field", name: "skyColor", static: false, private: false, access: { has: obj => "skyColor" in obj, get: obj => obj.skyColor, set: (obj, value) => { obj.skyColor = value; } }, metadata: _metadata }, _skyColor_initializers, _skyColor_extraInitializers);
957
+ __esDecorate(null, null, _horizonColor_decorators, { kind: "field", name: "horizonColor", static: false, private: false, access: { has: obj => "horizonColor" in obj, get: obj => obj.horizonColor, set: (obj, value) => { obj.horizonColor = value; } }, metadata: _metadata }, _horizonColor_initializers, _horizonColor_extraInitializers);
958
+ __esDecorate(null, null, _groundColor_decorators, { kind: "field", name: "groundColor", static: false, private: false, access: { has: obj => "groundColor" in obj, get: obj => obj.groundColor, set: (obj, value) => { obj.groundColor = value; } }, metadata: _metadata }, _groundColor_initializers, _groundColor_extraInitializers);
959
+ __esDecorate(null, null, _horizonPower_decorators, { kind: "field", name: "horizonPower", static: false, private: false, access: { has: obj => "horizonPower" in obj, get: obj => obj.horizonPower, set: (obj, value) => { obj.horizonPower = value; } }, metadata: _metadata }, _horizonPower_initializers, _horizonPower_extraInitializers);
960
+ __esDecorate(null, null, _width_decorators, { kind: "field", name: "width", static: false, private: false, access: { has: obj => "width" in obj, get: obj => obj.width, set: (obj, value) => { obj.width = value; } }, metadata: _metadata }, _width_initializers, _width_extraInitializers);
961
+ __esDecorate(null, null, _fuzz_decorators, { kind: "field", name: "fuzz", static: false, private: false, access: { has: obj => "fuzz" in obj, get: obj => obj.fuzz, set: (obj, value) => { obj.fuzz = value; } }, metadata: _metadata }, _fuzz_initializers, _fuzz_extraInitializers);
962
+ __esDecorate(null, null, _minFuzz_decorators, { kind: "field", name: "minFuzz", static: false, private: false, access: { has: obj => "minFuzz" in obj, get: obj => obj.minFuzz, set: (obj, value) => { obj.minFuzz = value; } }, metadata: _metadata }, _minFuzz_initializers, _minFuzz_extraInitializers);
963
+ __esDecorate(null, null, _clipFade_decorators, { kind: "field", name: "clipFade", static: false, private: false, access: { has: obj => "clipFade" in obj, get: obj => obj.clipFade, set: (obj, value) => { obj.clipFade = value; } }, metadata: _metadata }, _clipFade_initializers, _clipFade_extraInitializers);
964
+ __esDecorate(null, null, _hueShift_decorators, { kind: "field", name: "hueShift", static: false, private: false, access: { has: obj => "hueShift" in obj, get: obj => obj.hueShift, set: (obj, value) => { obj.hueShift = value; } }, metadata: _metadata }, _hueShift_initializers, _hueShift_extraInitializers);
965
+ __esDecorate(null, null, _saturationShift_decorators, { kind: "field", name: "saturationShift", static: false, private: false, access: { has: obj => "saturationShift" in obj, get: obj => obj.saturationShift, set: (obj, value) => { obj.saturationShift = value; } }, metadata: _metadata }, _saturationShift_initializers, _saturationShift_extraInitializers);
966
+ __esDecorate(null, null, _valueShift_decorators, { kind: "field", name: "valueShift", static: false, private: false, access: { has: obj => "valueShift" in obj, get: obj => obj.valueShift, set: (obj, value) => { obj.valueShift = value; } }, metadata: _metadata }, _valueShift_initializers, _valueShift_extraInitializers);
967
+ __esDecorate(null, null, _blobPosition_decorators, { kind: "field", name: "blobPosition", static: false, private: false, access: { has: obj => "blobPosition" in obj, get: obj => obj.blobPosition, set: (obj, value) => { obj.blobPosition = value; } }, metadata: _metadata }, _blobPosition_initializers, _blobPosition_extraInitializers);
968
+ __esDecorate(null, null, _blobIntensity_decorators, { kind: "field", name: "blobIntensity", static: false, private: false, access: { has: obj => "blobIntensity" in obj, get: obj => obj.blobIntensity, set: (obj, value) => { obj.blobIntensity = value; } }, metadata: _metadata }, _blobIntensity_initializers, _blobIntensity_extraInitializers);
969
+ __esDecorate(null, null, _blobNearSize_decorators, { kind: "field", name: "blobNearSize", static: false, private: false, access: { has: obj => "blobNearSize" in obj, get: obj => obj.blobNearSize, set: (obj, value) => { obj.blobNearSize = value; } }, metadata: _metadata }, _blobNearSize_initializers, _blobNearSize_extraInitializers);
970
+ __esDecorate(null, null, _blobFarSize_decorators, { kind: "field", name: "blobFarSize", static: false, private: false, access: { has: obj => "blobFarSize" in obj, get: obj => obj.blobFarSize, set: (obj, value) => { obj.blobFarSize = value; } }, metadata: _metadata }, _blobFarSize_initializers, _blobFarSize_extraInitializers);
971
+ __esDecorate(null, null, _blobNearDistance_decorators, { kind: "field", name: "blobNearDistance", static: false, private: false, access: { has: obj => "blobNearDistance" in obj, get: obj => obj.blobNearDistance, set: (obj, value) => { obj.blobNearDistance = value; } }, metadata: _metadata }, _blobNearDistance_initializers, _blobNearDistance_extraInitializers);
972
+ __esDecorate(null, null, _blobFarDistance_decorators, { kind: "field", name: "blobFarDistance", static: false, private: false, access: { has: obj => "blobFarDistance" in obj, get: obj => obj.blobFarDistance, set: (obj, value) => { obj.blobFarDistance = value; } }, metadata: _metadata }, _blobFarDistance_initializers, _blobFarDistance_extraInitializers);
973
+ __esDecorate(null, null, _blobFadeLength_decorators, { kind: "field", name: "blobFadeLength", static: false, private: false, access: { has: obj => "blobFadeLength" in obj, get: obj => obj.blobFadeLength, set: (obj, value) => { obj.blobFadeLength = value; } }, metadata: _metadata }, _blobFadeLength_initializers, _blobFadeLength_extraInitializers);
974
+ __esDecorate(null, null, _blobPulse_decorators, { kind: "field", name: "blobPulse", static: false, private: false, access: { has: obj => "blobPulse" in obj, get: obj => obj.blobPulse, set: (obj, value) => { obj.blobPulse = value; } }, metadata: _metadata }, _blobPulse_initializers, _blobPulse_extraInitializers);
975
+ __esDecorate(null, null, _blobFade_decorators, { kind: "field", name: "blobFade", static: false, private: false, access: { has: obj => "blobFade" in obj, get: obj => obj.blobFade, set: (obj, value) => { obj.blobFade = value; } }, metadata: _metadata }, _blobFade_initializers, _blobFade_extraInitializers);
976
+ __esDecorate(null, null, _blobPosition2_decorators, { kind: "field", name: "blobPosition2", static: false, private: false, access: { has: obj => "blobPosition2" in obj, get: obj => obj.blobPosition2, set: (obj, value) => { obj.blobPosition2 = value; } }, metadata: _metadata }, _blobPosition2_initializers, _blobPosition2_extraInitializers);
977
+ __esDecorate(null, null, _blobNearSize2_decorators, { kind: "field", name: "blobNearSize2", static: false, private: false, access: { has: obj => "blobNearSize2" in obj, get: obj => obj.blobNearSize2, set: (obj, value) => { obj.blobNearSize2 = value; } }, metadata: _metadata }, _blobNearSize2_initializers, _blobNearSize2_extraInitializers);
978
+ __esDecorate(null, null, _blobPulse2_decorators, { kind: "field", name: "blobPulse2", static: false, private: false, access: { has: obj => "blobPulse2" in obj, get: obj => obj.blobPulse2, set: (obj, value) => { obj.blobPulse2 = value; } }, metadata: _metadata }, _blobPulse2_initializers, _blobPulse2_extraInitializers);
979
+ __esDecorate(null, null, _blobFade2_decorators, { kind: "field", name: "blobFade2", static: false, private: false, access: { has: obj => "blobFade2" in obj, get: obj => obj.blobFade2, set: (obj, value) => { obj.blobFade2 = value; } }, metadata: _metadata }, _blobFade2_initializers, _blobFade2_extraInitializers);
980
+ __esDecorate(null, null, _blobTexture_decorators, { kind: "field", name: "blobTexture", static: false, private: false, access: { has: obj => "blobTexture" in obj, get: obj => obj.blobTexture, set: (obj, value) => { obj.blobTexture = value; } }, metadata: _metadata }, _blobTexture_initializers, _blobTexture_extraInitializers);
981
+ __esDecorate(null, null, _leftIndexPosition_decorators, { kind: "field", name: "leftIndexPosition", static: false, private: false, access: { has: obj => "leftIndexPosition" in obj, get: obj => obj.leftIndexPosition, set: (obj, value) => { obj.leftIndexPosition = value; } }, metadata: _metadata }, _leftIndexPosition_initializers, _leftIndexPosition_extraInitializers);
982
+ __esDecorate(null, null, _rightIndexPosition_decorators, { kind: "field", name: "rightIndexPosition", static: false, private: false, access: { has: obj => "rightIndexPosition" in obj, get: obj => obj.rightIndexPosition, set: (obj, value) => { obj.rightIndexPosition = value; } }, metadata: _metadata }, _rightIndexPosition_initializers, _rightIndexPosition_extraInitializers);
983
+ __esDecorate(null, null, _leftIndexMiddlePosition_decorators, { kind: "field", name: "leftIndexMiddlePosition", static: false, private: false, access: { has: obj => "leftIndexMiddlePosition" in obj, get: obj => obj.leftIndexMiddlePosition, set: (obj, value) => { obj.leftIndexMiddlePosition = value; } }, metadata: _metadata }, _leftIndexMiddlePosition_initializers, _leftIndexMiddlePosition_extraInitializers);
984
+ __esDecorate(null, null, _rightIndexMiddlePosition_decorators, { kind: "field", name: "rightIndexMiddlePosition", static: false, private: false, access: { has: obj => "rightIndexMiddlePosition" in obj, get: obj => obj.rightIndexMiddlePosition, set: (obj, value) => { obj.rightIndexMiddlePosition = value; } }, metadata: _metadata }, _rightIndexMiddlePosition_initializers, _rightIndexMiddlePosition_extraInitializers);
985
+ __esDecorate(null, null, _decalScaleXY_decorators, { kind: "field", name: "decalScaleXY", static: false, private: false, access: { has: obj => "decalScaleXY" in obj, get: obj => obj.decalScaleXY, set: (obj, value) => { obj.decalScaleXY = value; } }, metadata: _metadata }, _decalScaleXY_initializers, _decalScaleXY_extraInitializers);
986
+ __esDecorate(null, null, _decalFrontOnly_decorators, { kind: "field", name: "decalFrontOnly", static: false, private: false, access: { has: obj => "decalFrontOnly" in obj, get: obj => obj.decalFrontOnly, set: (obj, value) => { obj.decalFrontOnly = value; } }, metadata: _metadata }, _decalFrontOnly_initializers, _decalFrontOnly_extraInitializers);
987
+ __esDecorate(null, null, _rimIntensity_decorators, { kind: "field", name: "rimIntensity", static: false, private: false, access: { has: obj => "rimIntensity" in obj, get: obj => obj.rimIntensity, set: (obj, value) => { obj.rimIntensity = value; } }, metadata: _metadata }, _rimIntensity_initializers, _rimIntensity_extraInitializers);
988
+ __esDecorate(null, null, _rimHueShift_decorators, { kind: "field", name: "rimHueShift", static: false, private: false, access: { has: obj => "rimHueShift" in obj, get: obj => obj.rimHueShift, set: (obj, value) => { obj.rimHueShift = value; } }, metadata: _metadata }, _rimHueShift_initializers, _rimHueShift_extraInitializers);
989
+ __esDecorate(null, null, _rimSaturationShift_decorators, { kind: "field", name: "rimSaturationShift", static: false, private: false, access: { has: obj => "rimSaturationShift" in obj, get: obj => obj.rimSaturationShift, set: (obj, value) => { obj.rimSaturationShift = value; } }, metadata: _metadata }, _rimSaturationShift_initializers, _rimSaturationShift_extraInitializers);
990
+ __esDecorate(null, null, _rimValueShift_decorators, { kind: "field", name: "rimValueShift", static: false, private: false, access: { has: obj => "rimValueShift" in obj, get: obj => obj.rimValueShift, set: (obj, value) => { obj.rimValueShift = value; } }, metadata: _metadata }, _rimValueShift_initializers, _rimValueShift_extraInitializers);
991
+ __esDecorate(null, null, _iridescenceIntensity_decorators, { kind: "field", name: "iridescenceIntensity", static: false, private: false, access: { has: obj => "iridescenceIntensity" in obj, get: obj => obj.iridescenceIntensity, set: (obj, value) => { obj.iridescenceIntensity = value; } }, metadata: _metadata }, _iridescenceIntensity_initializers, _iridescenceIntensity_extraInitializers);
992
+ if (_metadata) Object.defineProperty(_a, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
993
+ })(),
994
+ /**
995
+ * URL pointing to the texture used to define the coloring for the Iridescent Map effect.
996
+ */
997
+ _a.BLUE_GRADIENT_TEXTURE_URL = "https://assets.babylonjs.com/core/MRTK/MRDL/mrtk-mrdl-blue-gradient.png",
998
+ _a;
999
+ })();
1000
+ export { MRDLSliderBarMaterial };
865
1001
  let _Registered = false;
866
1002
  /**
867
1003
  * Registers the MRDLSliderBarMaterial class with the type store for serialization support.