@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 { Vector3 } from "@babylonjs/core/Maths/math.vector.pure.js";
3
3
  import { Color4 } from "@babylonjs/core/Maths/math.color.pure.js";
4
4
  import { Constants } from "@babylonjs/core/Engines/constants.js";
@@ -24,514 +24,596 @@ class MRDLFrontplateMaterialDefines extends MaterialDefines {
24
24
  this.rebuild();
25
25
  }
26
26
  }
27
- export class MRDLFrontplateMaterial extends PushMaterial {
28
- constructor(name, scene) {
29
- super(name, scene);
30
- /**
31
- * Gets or sets the corner radius on the frontplate. If this value is changed, update the lineWidth to match.
32
- */
33
- this.radius = 0.12;
34
- /**
35
- * Gets or sets the line width of the frontplate.
36
- */
37
- this.lineWidth = 0.01;
38
- /**
39
- * Gets or sets whether the scale is relative to the frontplate height.
40
- */
41
- this.relativeToHeight = false;
42
- /** @hidden */
43
- this._filterWidth = 1.0;
44
- /**
45
- * Gets or sets the edge color of the frontplate.
46
- */
47
- this.edgeColor = new Color4(0.53, 0.53, 0.53, 1);
48
- /**
49
- * Gets or sets whether to enable blob effects on the frontplate.
50
- */
51
- this.blobEnable = true;
52
- /**
53
- * Gets or sets the blob position on the frontplate.
54
- */
55
- this.blobPosition = new Vector3(100, 100, 100);
56
- /**
57
- * Gets or sets the blob intensity of the frontplate.
58
- */
59
- this.blobIntensity = 0.5;
60
- /**
61
- * Gets or sets the blob near size of the frontplate.
62
- */
63
- this.blobNearSize = 0.032;
64
- /**
65
- * Gets or sets the blob far size of the frontplate.
66
- */
67
- this.blobFarSize = 0.048;
68
- /**
69
- * Gets or sets the blob near distance of the frontplate.
70
- */
71
- this.blobNearDistance = 0.008;
72
- /**
73
- * Gets or sets the blob far distance of the frontplate.
74
- */
75
- this.blobFarDistance = 0.064;
76
- /**
77
- * Gets or sets the blob fade length of the frontplate.
78
- */
79
- this.blobFadeLength = 0.04;
80
- /**
81
- * Gets or sets the blob inner fade of the frontplate.
82
- */
83
- this.blobInnerFade = 0.01;
84
- /**
85
- * Gets or sets the blob pulse of the frontplate.
86
- */
87
- this.blobPulse = 0.0;
88
- /**
89
- * Gets or sets the blob fade effect on the frontplate.
90
- */
91
- this.blobFade = 1.0;
92
- /**
93
- * Gets or sets the maximum size of the blob pulse on the frontplate.
94
- */
95
- this.blobPulseMaxSize = 0.05;
96
- /**
97
- * Gets or sets whether to enable extra blob effects of the frontplate.
98
- */
99
- this.blobEnable2 = true;
100
- /**
101
- * Gets or sets blob2 position of the frontplate.
102
- */
103
- this.blobPosition2 = new Vector3(10, 10.1, -0.6);
104
- /**
105
- * Gets or sets the blob2 near size of the frontplate.
106
- */
107
- this.blobNearSize2 = 0.008;
108
- /**
109
- * Gets or sets the blob2 inner fade of the frontplate.
110
- */
111
- this.blobInnerFade2 = 0.1;
112
- /**
113
- * Gets or sets the blob2 pulse of the frontplate.
114
- */
115
- this.blobPulse2 = 0.0;
116
- /**
117
- * Gets or sets the blob2 fade effect on the frontplate.
118
- */
119
- this.blobFade2 = 1.0;
120
- /**
121
- * Gets or sets the gaze intensity of the frontplate.
122
- */
123
- this.gazeIntensity = 0.8;
124
- /**
125
- * Gets or sets the gaze focus of the frontplate.
126
- */
127
- this.gazeFocus = 0.0;
128
- /**
129
- * Gets or sets the selection fuzz of the frontplate.
130
- */
131
- this.selectionFuzz = 0.5;
132
- /**
133
- * Gets or sets the fade intensity of the frontplate.
134
- */
135
- this.selected = 1.0;
136
- /**
137
- * Gets or sets the selection fade intensity of the frontplate.
138
- */
139
- this.selectionFade = 0.2;
140
- /**
141
- * Gets or sets the selection fade size of the frontplate.
142
- */
143
- this.selectionFadeSize = 0.0;
144
- /**
145
- * Gets or sets the selected distance of the frontplate.
146
- */
147
- this.selectedDistance = 0.08;
148
- /**
149
- * Gets or sets the selected fade length of the frontplate.
150
- */
151
- this.selectedFadeLength = 0.08;
152
- /**
153
- * Gets or sets the proximity maximum intensity of the frontplate.
154
- */
155
- this.proximityMaxIntensity = 0.45;
156
- /**
157
- * Gets or sets the proximity far distance of the frontplate.
158
- */
159
- this.proximityFarDistance = 0.16;
160
- /**
161
- * Gets or sets the proximity near radius of the frontplate.
162
- */
163
- this.proximityNearRadius = 0.016;
164
- /**
165
- * Gets or sets the proximity anisotropy of the frontplate.
166
- */
167
- this.proximityAnisotropy = 1.0;
168
- /**
169
- * Gets or sets whether to use global left index on the frontplate.
170
- */
171
- this.useGlobalLeftIndex = true;
172
- /**
173
- * Gets or sets whether to use global right index of the frontplate.
174
- */
175
- this.useGlobalRightIndex = true;
176
- /**
177
- * Gets or sets the opacity of the frontplate (0.0 - 1.0).
178
- */
179
- this.fadeOut = 1.0;
180
- this.alphaMode = Constants.ALPHA_ADD;
181
- this.disableDepthWrite = true;
182
- this.backFaceCulling = false;
183
- this._blobTexture = new Texture(MRDLFrontplateMaterial.BLOB_TEXTURE_URL, scene, true, false, Texture.NEAREST_SAMPLINGMODE);
184
- }
185
- needAlphaBlending() {
186
- return true;
187
- }
188
- needAlphaTesting() {
189
- return false;
190
- }
191
- getAlphaTestTexture() {
192
- return null;
193
- }
194
- // Methods
195
- isReadyForSubMesh(mesh, subMesh) {
196
- const drawWrapper = subMesh._drawWrapper;
197
- if (this.isFrozen) {
198
- if (drawWrapper.effect && drawWrapper._wasPreviouslyReady) {
27
+ let MRDLFrontplateMaterial = (() => {
28
+ var _a;
29
+ let _classSuper = PushMaterial;
30
+ let _radius_decorators;
31
+ let _radius_initializers = [];
32
+ let _radius_extraInitializers = [];
33
+ let _lineWidth_decorators;
34
+ let _lineWidth_initializers = [];
35
+ let _lineWidth_extraInitializers = [];
36
+ let _relativeToHeight_decorators;
37
+ let _relativeToHeight_initializers = [];
38
+ let _relativeToHeight_extraInitializers = [];
39
+ let _edgeColor_decorators;
40
+ let _edgeColor_initializers = [];
41
+ let _edgeColor_extraInitializers = [];
42
+ let _blobEnable_decorators;
43
+ let _blobEnable_initializers = [];
44
+ let _blobEnable_extraInitializers = [];
45
+ let _blobPosition_decorators;
46
+ let _blobPosition_initializers = [];
47
+ let _blobPosition_extraInitializers = [];
48
+ let _blobIntensity_decorators;
49
+ let _blobIntensity_initializers = [];
50
+ let _blobIntensity_extraInitializers = [];
51
+ let _blobNearSize_decorators;
52
+ let _blobNearSize_initializers = [];
53
+ let _blobNearSize_extraInitializers = [];
54
+ let _blobFarSize_decorators;
55
+ let _blobFarSize_initializers = [];
56
+ let _blobFarSize_extraInitializers = [];
57
+ let _blobNearDistance_decorators;
58
+ let _blobNearDistance_initializers = [];
59
+ let _blobNearDistance_extraInitializers = [];
60
+ let _blobFarDistance_decorators;
61
+ let _blobFarDistance_initializers = [];
62
+ let _blobFarDistance_extraInitializers = [];
63
+ let _blobFadeLength_decorators;
64
+ let _blobFadeLength_initializers = [];
65
+ let _blobFadeLength_extraInitializers = [];
66
+ let _blobInnerFade_decorators;
67
+ let _blobInnerFade_initializers = [];
68
+ let _blobInnerFade_extraInitializers = [];
69
+ let _blobPulse_decorators;
70
+ let _blobPulse_initializers = [];
71
+ let _blobPulse_extraInitializers = [];
72
+ let _blobFade_decorators;
73
+ let _blobFade_initializers = [];
74
+ let _blobFade_extraInitializers = [];
75
+ let _blobPulseMaxSize_decorators;
76
+ let _blobPulseMaxSize_initializers = [];
77
+ let _blobPulseMaxSize_extraInitializers = [];
78
+ let _blobEnable2_decorators;
79
+ let _blobEnable2_initializers = [];
80
+ let _blobEnable2_extraInitializers = [];
81
+ let _blobPosition2_decorators;
82
+ let _blobPosition2_initializers = [];
83
+ let _blobPosition2_extraInitializers = [];
84
+ let _blobNearSize2_decorators;
85
+ let _blobNearSize2_initializers = [];
86
+ let _blobNearSize2_extraInitializers = [];
87
+ let _blobInnerFade2_decorators;
88
+ let _blobInnerFade2_initializers = [];
89
+ let _blobInnerFade2_extraInitializers = [];
90
+ let _blobPulse2_decorators;
91
+ let _blobPulse2_initializers = [];
92
+ let _blobPulse2_extraInitializers = [];
93
+ let _blobFade2_decorators;
94
+ let _blobFade2_initializers = [];
95
+ let _blobFade2_extraInitializers = [];
96
+ let _gazeIntensity_decorators;
97
+ let _gazeIntensity_initializers = [];
98
+ let _gazeIntensity_extraInitializers = [];
99
+ let _gazeFocus_decorators;
100
+ let _gazeFocus_initializers = [];
101
+ let _gazeFocus_extraInitializers = [];
102
+ let _selectionFuzz_decorators;
103
+ let _selectionFuzz_initializers = [];
104
+ let _selectionFuzz_extraInitializers = [];
105
+ let _selected_decorators;
106
+ let _selected_initializers = [];
107
+ let _selected_extraInitializers = [];
108
+ let _selectionFade_decorators;
109
+ let _selectionFade_initializers = [];
110
+ let _selectionFade_extraInitializers = [];
111
+ let _selectionFadeSize_decorators;
112
+ let _selectionFadeSize_initializers = [];
113
+ let _selectionFadeSize_extraInitializers = [];
114
+ let _selectedDistance_decorators;
115
+ let _selectedDistance_initializers = [];
116
+ let _selectedDistance_extraInitializers = [];
117
+ let _selectedFadeLength_decorators;
118
+ let _selectedFadeLength_initializers = [];
119
+ let _selectedFadeLength_extraInitializers = [];
120
+ let _proximityMaxIntensity_decorators;
121
+ let _proximityMaxIntensity_initializers = [];
122
+ let _proximityMaxIntensity_extraInitializers = [];
123
+ let _proximityFarDistance_decorators;
124
+ let _proximityFarDistance_initializers = [];
125
+ let _proximityFarDistance_extraInitializers = [];
126
+ let _proximityNearRadius_decorators;
127
+ let _proximityNearRadius_initializers = [];
128
+ let _proximityNearRadius_extraInitializers = [];
129
+ let _proximityAnisotropy_decorators;
130
+ let _proximityAnisotropy_initializers = [];
131
+ let _proximityAnisotropy_extraInitializers = [];
132
+ let _useGlobalLeftIndex_decorators;
133
+ let _useGlobalLeftIndex_initializers = [];
134
+ let _useGlobalLeftIndex_extraInitializers = [];
135
+ let _useGlobalRightIndex_decorators;
136
+ let _useGlobalRightIndex_initializers = [];
137
+ let _useGlobalRightIndex_extraInitializers = [];
138
+ return _a = class MRDLFrontplateMaterial extends _classSuper {
139
+ constructor(name, scene) {
140
+ super(name, scene);
141
+ /**
142
+ * Gets or sets the corner radius on the frontplate. If this value is changed, update the lineWidth to match.
143
+ */
144
+ this.radius = __runInitializers(this, _radius_initializers, 0.12);
145
+ /**
146
+ * Gets or sets the line width of the frontplate.
147
+ */
148
+ this.lineWidth = (__runInitializers(this, _radius_extraInitializers), __runInitializers(this, _lineWidth_initializers, 0.01));
149
+ /**
150
+ * Gets or sets whether the scale is relative to the frontplate height.
151
+ */
152
+ this.relativeToHeight = (__runInitializers(this, _lineWidth_extraInitializers), __runInitializers(this, _relativeToHeight_initializers, false));
153
+ /** @hidden */
154
+ this._filterWidth = (__runInitializers(this, _relativeToHeight_extraInitializers), 1.0);
155
+ /**
156
+ * Gets or sets the edge color of the frontplate.
157
+ */
158
+ this.edgeColor = __runInitializers(this, _edgeColor_initializers, new Color4(0.53, 0.53, 0.53, 1));
159
+ /**
160
+ * Gets or sets whether to enable blob effects on the frontplate.
161
+ */
162
+ this.blobEnable = (__runInitializers(this, _edgeColor_extraInitializers), __runInitializers(this, _blobEnable_initializers, true));
163
+ /**
164
+ * Gets or sets the blob position on the frontplate.
165
+ */
166
+ this.blobPosition = (__runInitializers(this, _blobEnable_extraInitializers), __runInitializers(this, _blobPosition_initializers, new Vector3(100, 100, 100)));
167
+ /**
168
+ * Gets or sets the blob intensity of the frontplate.
169
+ */
170
+ this.blobIntensity = (__runInitializers(this, _blobPosition_extraInitializers), __runInitializers(this, _blobIntensity_initializers, 0.5));
171
+ /**
172
+ * Gets or sets the blob near size of the frontplate.
173
+ */
174
+ this.blobNearSize = (__runInitializers(this, _blobIntensity_extraInitializers), __runInitializers(this, _blobNearSize_initializers, 0.032));
175
+ /**
176
+ * Gets or sets the blob far size of the frontplate.
177
+ */
178
+ this.blobFarSize = (__runInitializers(this, _blobNearSize_extraInitializers), __runInitializers(this, _blobFarSize_initializers, 0.048));
179
+ /**
180
+ * Gets or sets the blob near distance of the frontplate.
181
+ */
182
+ this.blobNearDistance = (__runInitializers(this, _blobFarSize_extraInitializers), __runInitializers(this, _blobNearDistance_initializers, 0.008));
183
+ /**
184
+ * Gets or sets the blob far distance of the frontplate.
185
+ */
186
+ this.blobFarDistance = (__runInitializers(this, _blobNearDistance_extraInitializers), __runInitializers(this, _blobFarDistance_initializers, 0.064));
187
+ /**
188
+ * Gets or sets the blob fade length of the frontplate.
189
+ */
190
+ this.blobFadeLength = (__runInitializers(this, _blobFarDistance_extraInitializers), __runInitializers(this, _blobFadeLength_initializers, 0.04));
191
+ /**
192
+ * Gets or sets the blob inner fade of the frontplate.
193
+ */
194
+ this.blobInnerFade = (__runInitializers(this, _blobFadeLength_extraInitializers), __runInitializers(this, _blobInnerFade_initializers, 0.01));
195
+ /**
196
+ * Gets or sets the blob pulse of the frontplate.
197
+ */
198
+ this.blobPulse = (__runInitializers(this, _blobInnerFade_extraInitializers), __runInitializers(this, _blobPulse_initializers, 0.0));
199
+ /**
200
+ * Gets or sets the blob fade effect on the frontplate.
201
+ */
202
+ this.blobFade = (__runInitializers(this, _blobPulse_extraInitializers), __runInitializers(this, _blobFade_initializers, 1.0));
203
+ /**
204
+ * Gets or sets the maximum size of the blob pulse on the frontplate.
205
+ */
206
+ this.blobPulseMaxSize = (__runInitializers(this, _blobFade_extraInitializers), __runInitializers(this, _blobPulseMaxSize_initializers, 0.05));
207
+ /**
208
+ * Gets or sets whether to enable extra blob effects of the frontplate.
209
+ */
210
+ this.blobEnable2 = (__runInitializers(this, _blobPulseMaxSize_extraInitializers), __runInitializers(this, _blobEnable2_initializers, true));
211
+ /**
212
+ * Gets or sets blob2 position of the frontplate.
213
+ */
214
+ this.blobPosition2 = (__runInitializers(this, _blobEnable2_extraInitializers), __runInitializers(this, _blobPosition2_initializers, new Vector3(10, 10.1, -0.6)));
215
+ /**
216
+ * Gets or sets the blob2 near size of the frontplate.
217
+ */
218
+ this.blobNearSize2 = (__runInitializers(this, _blobPosition2_extraInitializers), __runInitializers(this, _blobNearSize2_initializers, 0.008));
219
+ /**
220
+ * Gets or sets the blob2 inner fade of the frontplate.
221
+ */
222
+ this.blobInnerFade2 = (__runInitializers(this, _blobNearSize2_extraInitializers), __runInitializers(this, _blobInnerFade2_initializers, 0.1));
223
+ /**
224
+ * Gets or sets the blob2 pulse of the frontplate.
225
+ */
226
+ this.blobPulse2 = (__runInitializers(this, _blobInnerFade2_extraInitializers), __runInitializers(this, _blobPulse2_initializers, 0.0));
227
+ /**
228
+ * Gets or sets the blob2 fade effect on the frontplate.
229
+ */
230
+ this.blobFade2 = (__runInitializers(this, _blobPulse2_extraInitializers), __runInitializers(this, _blobFade2_initializers, 1.0));
231
+ /**
232
+ * Gets or sets the gaze intensity of the frontplate.
233
+ */
234
+ this.gazeIntensity = (__runInitializers(this, _blobFade2_extraInitializers), __runInitializers(this, _gazeIntensity_initializers, 0.8));
235
+ /**
236
+ * Gets or sets the gaze focus of the frontplate.
237
+ */
238
+ this.gazeFocus = (__runInitializers(this, _gazeIntensity_extraInitializers), __runInitializers(this, _gazeFocus_initializers, 0.0));
239
+ /**
240
+ * Gets or sets the selection fuzz of the frontplate.
241
+ */
242
+ this.selectionFuzz = (__runInitializers(this, _gazeFocus_extraInitializers), __runInitializers(this, _selectionFuzz_initializers, 0.5));
243
+ /**
244
+ * Gets or sets the fade intensity of the frontplate.
245
+ */
246
+ this.selected = (__runInitializers(this, _selectionFuzz_extraInitializers), __runInitializers(this, _selected_initializers, 1.0));
247
+ /**
248
+ * Gets or sets the selection fade intensity of the frontplate.
249
+ */
250
+ this.selectionFade = (__runInitializers(this, _selected_extraInitializers), __runInitializers(this, _selectionFade_initializers, 0.2));
251
+ /**
252
+ * Gets or sets the selection fade size of the frontplate.
253
+ */
254
+ this.selectionFadeSize = (__runInitializers(this, _selectionFade_extraInitializers), __runInitializers(this, _selectionFadeSize_initializers, 0.0));
255
+ /**
256
+ * Gets or sets the selected distance of the frontplate.
257
+ */
258
+ this.selectedDistance = (__runInitializers(this, _selectionFadeSize_extraInitializers), __runInitializers(this, _selectedDistance_initializers, 0.08));
259
+ /**
260
+ * Gets or sets the selected fade length of the frontplate.
261
+ */
262
+ this.selectedFadeLength = (__runInitializers(this, _selectedDistance_extraInitializers), __runInitializers(this, _selectedFadeLength_initializers, 0.08));
263
+ /**
264
+ * Gets or sets the proximity maximum intensity of the frontplate.
265
+ */
266
+ this.proximityMaxIntensity = (__runInitializers(this, _selectedFadeLength_extraInitializers), __runInitializers(this, _proximityMaxIntensity_initializers, 0.45));
267
+ /**
268
+ * Gets or sets the proximity far distance of the frontplate.
269
+ */
270
+ this.proximityFarDistance = (__runInitializers(this, _proximityMaxIntensity_extraInitializers), __runInitializers(this, _proximityFarDistance_initializers, 0.16));
271
+ /**
272
+ * Gets or sets the proximity near radius of the frontplate.
273
+ */
274
+ this.proximityNearRadius = (__runInitializers(this, _proximityFarDistance_extraInitializers), __runInitializers(this, _proximityNearRadius_initializers, 0.016));
275
+ /**
276
+ * Gets or sets the proximity anisotropy of the frontplate.
277
+ */
278
+ this.proximityAnisotropy = (__runInitializers(this, _proximityNearRadius_extraInitializers), __runInitializers(this, _proximityAnisotropy_initializers, 1.0));
279
+ /**
280
+ * Gets or sets whether to use global left index on the frontplate.
281
+ */
282
+ this.useGlobalLeftIndex = (__runInitializers(this, _proximityAnisotropy_extraInitializers), __runInitializers(this, _useGlobalLeftIndex_initializers, true));
283
+ /**
284
+ * Gets or sets whether to use global right index of the frontplate.
285
+ */
286
+ this.useGlobalRightIndex = (__runInitializers(this, _useGlobalLeftIndex_extraInitializers), __runInitializers(this, _useGlobalRightIndex_initializers, true));
287
+ /**
288
+ * Gets or sets the opacity of the frontplate (0.0 - 1.0).
289
+ */
290
+ this.fadeOut = (__runInitializers(this, _useGlobalRightIndex_extraInitializers), 1.0);
291
+ this.alphaMode = Constants.ALPHA_ADD;
292
+ this.disableDepthWrite = true;
293
+ this.backFaceCulling = false;
294
+ this._blobTexture = new Texture(_a.BLOB_TEXTURE_URL, scene, true, false, Texture.NEAREST_SAMPLINGMODE);
295
+ }
296
+ needAlphaBlending() {
199
297
  return true;
200
298
  }
201
- }
202
- if (!subMesh.materialDefines) {
203
- subMesh.materialDefines = new MRDLFrontplateMaterialDefines();
204
- }
205
- const defines = subMesh.materialDefines;
206
- const scene = this.getScene();
207
- if (MRDLFrontplateMaterial.BLOB_TEXTURE_URL !== "" && !this._blobTexture.isReady()) {
208
- return false;
209
- }
210
- if (this._isReadyForSubMesh(subMesh)) {
211
- return true;
212
- }
213
- const engine = scene.getEngine();
214
- // Attribs
215
- PrepareDefinesForAttributes(mesh, defines, false, false);
216
- // Get correct effect
217
- if (defines.isDirty) {
218
- defines.markAsProcessed();
219
- scene.resetCachedMaterial();
220
- // Fallbacks
221
- const fallbacks = new EffectFallbacks();
222
- if (defines.FOG) {
223
- fallbacks.addFallback(1, "FOG");
299
+ needAlphaTesting() {
300
+ return false;
224
301
  }
225
- HandleFallbacksForShadows(defines, fallbacks);
226
- defines.IMAGEPROCESSINGPOSTPROCESS = scene.imageProcessingConfiguration.applyByPostProcess;
227
- //Attributes
228
- const attribs = [VertexBuffer.PositionKind];
229
- if (defines.NORMAL) {
230
- attribs.push(VertexBuffer.NormalKind);
302
+ getAlphaTestTexture() {
303
+ return null;
231
304
  }
232
- if (defines.UV1) {
233
- attribs.push(VertexBuffer.UVKind);
305
+ // Methods
306
+ isReadyForSubMesh(mesh, subMesh) {
307
+ const drawWrapper = subMesh._drawWrapper;
308
+ if (this.isFrozen) {
309
+ if (drawWrapper.effect && drawWrapper._wasPreviouslyReady) {
310
+ return true;
311
+ }
312
+ }
313
+ if (!subMesh.materialDefines) {
314
+ subMesh.materialDefines = new MRDLFrontplateMaterialDefines();
315
+ }
316
+ const defines = subMesh.materialDefines;
317
+ const scene = this.getScene();
318
+ if (_a.BLOB_TEXTURE_URL !== "" && !this._blobTexture.isReady()) {
319
+ return false;
320
+ }
321
+ if (this._isReadyForSubMesh(subMesh)) {
322
+ return true;
323
+ }
324
+ const engine = scene.getEngine();
325
+ // Attribs
326
+ PrepareDefinesForAttributes(mesh, defines, false, false);
327
+ // Get correct effect
328
+ if (defines.isDirty) {
329
+ defines.markAsProcessed();
330
+ scene.resetCachedMaterial();
331
+ // Fallbacks
332
+ const fallbacks = new EffectFallbacks();
333
+ if (defines.FOG) {
334
+ fallbacks.addFallback(1, "FOG");
335
+ }
336
+ HandleFallbacksForShadows(defines, fallbacks);
337
+ defines.IMAGEPROCESSINGPOSTPROCESS = scene.imageProcessingConfiguration.applyByPostProcess;
338
+ //Attributes
339
+ const attribs = [VertexBuffer.PositionKind];
340
+ if (defines.NORMAL) {
341
+ attribs.push(VertexBuffer.NormalKind);
342
+ }
343
+ if (defines.UV1) {
344
+ attribs.push(VertexBuffer.UVKind);
345
+ }
346
+ if (defines.UV2) {
347
+ attribs.push(VertexBuffer.UV2Kind);
348
+ }
349
+ if (defines.VERTEXCOLOR) {
350
+ attribs.push(VertexBuffer.ColorKind);
351
+ }
352
+ if (defines.TANGENT) {
353
+ attribs.push(VertexBuffer.TangentKind);
354
+ }
355
+ PrepareAttributesForInstances(attribs, defines);
356
+ // Legacy browser patch
357
+ const shaderName = "mrdlFrontplate";
358
+ const join = defines.toString();
359
+ const uniforms = [
360
+ "world",
361
+ "worldView",
362
+ "worldViewProjection",
363
+ "view",
364
+ "projection",
365
+ "viewProjection",
366
+ "cameraPosition",
367
+ "_Radius_",
368
+ "_Line_Width_",
369
+ "_Relative_To_Height_",
370
+ "_Filter_Width_",
371
+ "_Edge_Color_",
372
+ "_Fade_Out_",
373
+ "_Smooth_Edges_",
374
+ "_Blob_Enable_",
375
+ "_Blob_Position_",
376
+ "_Blob_Intensity_",
377
+ "_Blob_Near_Size_",
378
+ "_Blob_Far_Size_",
379
+ "_Blob_Near_Distance_",
380
+ "_Blob_Far_Distance_",
381
+ "_Blob_Fade_Length_",
382
+ "_Blob_Inner_Fade_",
383
+ "_Blob_Pulse_",
384
+ "_Blob_Fade_",
385
+ "_Blob_Pulse_Max_Size_",
386
+ "_Blob_Enable_2_",
387
+ "_Blob_Position_2_",
388
+ "_Blob_Near_Size_2_",
389
+ "_Blob_Inner_Fade_2_",
390
+ "_Blob_Pulse_2_",
391
+ "_Blob_Fade_2_",
392
+ "_Gaze_Intensity_",
393
+ "_Gaze_Focus_",
394
+ "_Blob_Texture_",
395
+ "_Selection_Fuzz_",
396
+ "_Selected_",
397
+ "_Selection_Fade_",
398
+ "_Selection_Fade_Size_",
399
+ "_Selected_Distance_",
400
+ "_Selected_Fade_Length_",
401
+ "_Proximity_Max_Intensity_",
402
+ "_Proximity_Far_Distance_",
403
+ "_Proximity_Near_Radius_",
404
+ "_Proximity_Anisotropy_",
405
+ "Global_Left_Index_Tip_Position",
406
+ "Global_Right_Index_Tip_Position",
407
+ "_Use_Global_Left_Index_",
408
+ "_Use_Global_Right_Index_",
409
+ ];
410
+ const samplers = [];
411
+ const uniformBuffers = [];
412
+ PrepareUniformsAndSamplersList({
413
+ uniformsNames: uniforms,
414
+ uniformBuffersNames: uniformBuffers,
415
+ samplers: samplers,
416
+ defines: defines,
417
+ maxSimultaneousLights: 4,
418
+ });
419
+ subMesh.setEffect(scene.getEngine().createEffect(shaderName, {
420
+ attributes: attribs,
421
+ uniformsNames: uniforms,
422
+ uniformBuffersNames: uniformBuffers,
423
+ samplers: samplers,
424
+ defines: join,
425
+ fallbacks: fallbacks,
426
+ onCompiled: this.onCompiled,
427
+ onError: this.onError,
428
+ indexParameters: { maxSimultaneousLights: 4 },
429
+ extraInitializationsAsync: async () => {
430
+ await Promise.all([import("./shaders/mrdlFrontplate.vertex.js"), import("./shaders/mrdlFrontplate.fragment.js")]);
431
+ },
432
+ }, engine), defines);
433
+ }
434
+ if (!subMesh.effect || !subMesh.effect.isReady()) {
435
+ return false;
436
+ }
437
+ defines._renderId = scene.getRenderId();
438
+ drawWrapper._wasPreviouslyReady = true;
439
+ return true;
234
440
  }
235
- if (defines.UV2) {
236
- attribs.push(VertexBuffer.UV2Kind);
441
+ bindForSubMesh(world, mesh, subMesh) {
442
+ const scene = this.getScene();
443
+ const defines = subMesh.materialDefines;
444
+ if (!defines) {
445
+ return;
446
+ }
447
+ const effect = subMesh.effect;
448
+ if (!effect) {
449
+ return;
450
+ }
451
+ this._activeEffect = effect;
452
+ // Matrices
453
+ this.bindOnlyWorldMatrix(world);
454
+ this._activeEffect.setMatrix("viewProjection", scene.getTransformMatrix());
455
+ this._activeEffect.setVector3("cameraPosition", scene.activeCamera.position);
456
+ // "Round Rect"
457
+ this._activeEffect.setFloat("_Radius_", this.radius);
458
+ this._activeEffect.setFloat("_Line_Width_", this.lineWidth);
459
+ this._activeEffect.setFloat("_Relative_To_Height_", this.relativeToHeight ? 1.0 : 0.0);
460
+ this._activeEffect.setFloat("_Filter_Width_", this._filterWidth);
461
+ this._activeEffect.setDirectColor4("_Edge_Color_", this.edgeColor);
462
+ // "Fade"
463
+ this._activeEffect.setFloat("_Fade_Out_", this.fadeOut);
464
+ // "Blob"
465
+ this._activeEffect.setFloat("_Blob_Enable_", this.blobEnable ? 1.0 : 0.0);
466
+ this._activeEffect.setVector3("_Blob_Position_", this.blobPosition);
467
+ this._activeEffect.setFloat("_Blob_Intensity_", this.blobIntensity);
468
+ this._activeEffect.setFloat("_Blob_Near_Size_", this.blobNearSize);
469
+ this._activeEffect.setFloat("_Blob_Far_Size_", this.blobFarSize);
470
+ this._activeEffect.setFloat("_Blob_Near_Distance_", this.blobNearDistance);
471
+ this._activeEffect.setFloat("_Blob_Far_Distance_", this.blobFarDistance);
472
+ this._activeEffect.setFloat("_Blob_Fade_Length_", this.blobFadeLength);
473
+ this._activeEffect.setFloat("_Blob_Inner_Fade_", this.blobInnerFade);
474
+ this._activeEffect.setFloat("_Blob_Pulse_", this.blobPulse);
475
+ this._activeEffect.setFloat("_Blob_Fade_", this.blobFade);
476
+ this._activeEffect.setFloat("_Blob_Pulse_Max_Size_", this.blobPulseMaxSize);
477
+ // "Blob 2"
478
+ this._activeEffect.setFloat("_Blob_Enable_2_", this.blobEnable2 ? 1.0 : 0.0);
479
+ this._activeEffect.setVector3("_Blob_Position_2_", this.blobPosition2);
480
+ this._activeEffect.setFloat("_Blob_Near_Size_2_", this.blobNearSize2);
481
+ this._activeEffect.setFloat("_Blob_Inner_Fade_2_", this.blobInnerFade2);
482
+ this._activeEffect.setFloat("_Blob_Pulse_2_", this.blobPulse2);
483
+ this._activeEffect.setFloat("_Blob_Fade_2_", this.blobFade2);
484
+ // "Gaze"
485
+ this._activeEffect.setFloat("_Gaze_Intensity_", this.gazeIntensity);
486
+ this._activeEffect.setFloat("_Gaze_Focus_", this.gazeFocus);
487
+ // "Blob Texture"
488
+ this._activeEffect.setTexture("_Blob_Texture_", this._blobTexture);
489
+ // "Selection"
490
+ this._activeEffect.setFloat("_Selection_Fuzz_", this.selectionFuzz);
491
+ this._activeEffect.setFloat("_Selected_", this.selected);
492
+ this._activeEffect.setFloat("_Selection_Fade_", this.selectionFade);
493
+ this._activeEffect.setFloat("_Selection_Fade_Size_", this.selectionFadeSize);
494
+ this._activeEffect.setFloat("_Selected_Distance_", this.selectedDistance);
495
+ this._activeEffect.setFloat("_Selected_Fade_Length_", this.selectedFadeLength);
496
+ // "Proximity"
497
+ this._activeEffect.setFloat("_Proximity_Max_Intensity_", this.proximityMaxIntensity);
498
+ this._activeEffect.setFloat("_Proximity_Far_Distance_", this.proximityFarDistance);
499
+ this._activeEffect.setFloat("_Proximity_Near_Radius_", this.proximityNearRadius);
500
+ this._activeEffect.setFloat("_Proximity_Anisotropy_", this.proximityAnisotropy);
501
+ // "Global"
502
+ this._activeEffect.setFloat("_Use_Global_Left_Index_", this.useGlobalLeftIndex ? 1.0 : 0.0);
503
+ this._activeEffect.setFloat("_Use_Global_Right_Index_", this.useGlobalRightIndex ? 1.0 : 0.0);
504
+ // "Antialiasing"
505
+ //define SMOOTH_EDGES true;
506
+ this._afterBind(mesh, this._activeEffect, subMesh);
237
507
  }
238
- if (defines.VERTEXCOLOR) {
239
- attribs.push(VertexBuffer.ColorKind);
508
+ /**
509
+ * Get the list of animatables in the material.
510
+ * @returns the list of animatables object used in the material
511
+ */
512
+ getAnimatables() {
513
+ return [];
240
514
  }
241
- if (defines.TANGENT) {
242
- attribs.push(VertexBuffer.TangentKind);
515
+ dispose(forceDisposeEffect) {
516
+ super.dispose(forceDisposeEffect);
243
517
  }
244
- PrepareAttributesForInstances(attribs, defines);
245
- // Legacy browser patch
246
- const shaderName = "mrdlFrontplate";
247
- const join = defines.toString();
248
- const uniforms = [
249
- "world",
250
- "worldView",
251
- "worldViewProjection",
252
- "view",
253
- "projection",
254
- "viewProjection",
255
- "cameraPosition",
256
- "_Radius_",
257
- "_Line_Width_",
258
- "_Relative_To_Height_",
259
- "_Filter_Width_",
260
- "_Edge_Color_",
261
- "_Fade_Out_",
262
- "_Smooth_Edges_",
263
- "_Blob_Enable_",
264
- "_Blob_Position_",
265
- "_Blob_Intensity_",
266
- "_Blob_Near_Size_",
267
- "_Blob_Far_Size_",
268
- "_Blob_Near_Distance_",
269
- "_Blob_Far_Distance_",
270
- "_Blob_Fade_Length_",
271
- "_Blob_Inner_Fade_",
272
- "_Blob_Pulse_",
273
- "_Blob_Fade_",
274
- "_Blob_Pulse_Max_Size_",
275
- "_Blob_Enable_2_",
276
- "_Blob_Position_2_",
277
- "_Blob_Near_Size_2_",
278
- "_Blob_Inner_Fade_2_",
279
- "_Blob_Pulse_2_",
280
- "_Blob_Fade_2_",
281
- "_Gaze_Intensity_",
282
- "_Gaze_Focus_",
283
- "_Blob_Texture_",
284
- "_Selection_Fuzz_",
285
- "_Selected_",
286
- "_Selection_Fade_",
287
- "_Selection_Fade_Size_",
288
- "_Selected_Distance_",
289
- "_Selected_Fade_Length_",
290
- "_Proximity_Max_Intensity_",
291
- "_Proximity_Far_Distance_",
292
- "_Proximity_Near_Radius_",
293
- "_Proximity_Anisotropy_",
294
- "Global_Left_Index_Tip_Position",
295
- "Global_Right_Index_Tip_Position",
296
- "_Use_Global_Left_Index_",
297
- "_Use_Global_Right_Index_",
298
- ];
299
- const samplers = [];
300
- const uniformBuffers = [];
301
- PrepareUniformsAndSamplersList({
302
- uniformsNames: uniforms,
303
- uniformBuffersNames: uniformBuffers,
304
- samplers: samplers,
305
- defines: defines,
306
- maxSimultaneousLights: 4,
307
- });
308
- subMesh.setEffect(scene.getEngine().createEffect(shaderName, {
309
- attributes: attribs,
310
- uniformsNames: uniforms,
311
- uniformBuffersNames: uniformBuffers,
312
- samplers: samplers,
313
- defines: join,
314
- fallbacks: fallbacks,
315
- onCompiled: this.onCompiled,
316
- onError: this.onError,
317
- indexParameters: { maxSimultaneousLights: 4 },
318
- extraInitializationsAsync: async () => {
319
- await Promise.all([import("./shaders/mrdlFrontplate.vertex.js"), import("./shaders/mrdlFrontplate.fragment.js")]);
320
- },
321
- }, engine), defines);
322
- }
323
- if (!subMesh.effect || !subMesh.effect.isReady()) {
324
- return false;
325
- }
326
- defines._renderId = scene.getRenderId();
327
- drawWrapper._wasPreviouslyReady = true;
328
- return true;
329
- }
330
- bindForSubMesh(world, mesh, subMesh) {
331
- const scene = this.getScene();
332
- const defines = subMesh.materialDefines;
333
- if (!defines) {
334
- return;
335
- }
336
- const effect = subMesh.effect;
337
- if (!effect) {
338
- return;
339
- }
340
- this._activeEffect = effect;
341
- // Matrices
342
- this.bindOnlyWorldMatrix(world);
343
- this._activeEffect.setMatrix("viewProjection", scene.getTransformMatrix());
344
- this._activeEffect.setVector3("cameraPosition", scene.activeCamera.position);
345
- // "Round Rect"
346
- this._activeEffect.setFloat("_Radius_", this.radius);
347
- this._activeEffect.setFloat("_Line_Width_", this.lineWidth);
348
- this._activeEffect.setFloat("_Relative_To_Height_", this.relativeToHeight ? 1.0 : 0.0);
349
- this._activeEffect.setFloat("_Filter_Width_", this._filterWidth);
350
- this._activeEffect.setDirectColor4("_Edge_Color_", this.edgeColor);
351
- // "Fade"
352
- this._activeEffect.setFloat("_Fade_Out_", this.fadeOut);
353
- // "Blob"
354
- this._activeEffect.setFloat("_Blob_Enable_", this.blobEnable ? 1.0 : 0.0);
355
- this._activeEffect.setVector3("_Blob_Position_", this.blobPosition);
356
- this._activeEffect.setFloat("_Blob_Intensity_", this.blobIntensity);
357
- this._activeEffect.setFloat("_Blob_Near_Size_", this.blobNearSize);
358
- this._activeEffect.setFloat("_Blob_Far_Size_", this.blobFarSize);
359
- this._activeEffect.setFloat("_Blob_Near_Distance_", this.blobNearDistance);
360
- this._activeEffect.setFloat("_Blob_Far_Distance_", this.blobFarDistance);
361
- this._activeEffect.setFloat("_Blob_Fade_Length_", this.blobFadeLength);
362
- this._activeEffect.setFloat("_Blob_Inner_Fade_", this.blobInnerFade);
363
- this._activeEffect.setFloat("_Blob_Pulse_", this.blobPulse);
364
- this._activeEffect.setFloat("_Blob_Fade_", this.blobFade);
365
- this._activeEffect.setFloat("_Blob_Pulse_Max_Size_", this.blobPulseMaxSize);
366
- // "Blob 2"
367
- this._activeEffect.setFloat("_Blob_Enable_2_", this.blobEnable2 ? 1.0 : 0.0);
368
- this._activeEffect.setVector3("_Blob_Position_2_", this.blobPosition2);
369
- this._activeEffect.setFloat("_Blob_Near_Size_2_", this.blobNearSize2);
370
- this._activeEffect.setFloat("_Blob_Inner_Fade_2_", this.blobInnerFade2);
371
- this._activeEffect.setFloat("_Blob_Pulse_2_", this.blobPulse2);
372
- this._activeEffect.setFloat("_Blob_Fade_2_", this.blobFade2);
373
- // "Gaze"
374
- this._activeEffect.setFloat("_Gaze_Intensity_", this.gazeIntensity);
375
- this._activeEffect.setFloat("_Gaze_Focus_", this.gazeFocus);
376
- // "Blob Texture"
377
- this._activeEffect.setTexture("_Blob_Texture_", this._blobTexture);
378
- // "Selection"
379
- this._activeEffect.setFloat("_Selection_Fuzz_", this.selectionFuzz);
380
- this._activeEffect.setFloat("_Selected_", this.selected);
381
- this._activeEffect.setFloat("_Selection_Fade_", this.selectionFade);
382
- this._activeEffect.setFloat("_Selection_Fade_Size_", this.selectionFadeSize);
383
- this._activeEffect.setFloat("_Selected_Distance_", this.selectedDistance);
384
- this._activeEffect.setFloat("_Selected_Fade_Length_", this.selectedFadeLength);
385
- // "Proximity"
386
- this._activeEffect.setFloat("_Proximity_Max_Intensity_", this.proximityMaxIntensity);
387
- this._activeEffect.setFloat("_Proximity_Far_Distance_", this.proximityFarDistance);
388
- this._activeEffect.setFloat("_Proximity_Near_Radius_", this.proximityNearRadius);
389
- this._activeEffect.setFloat("_Proximity_Anisotropy_", this.proximityAnisotropy);
390
- // "Global"
391
- this._activeEffect.setFloat("_Use_Global_Left_Index_", this.useGlobalLeftIndex ? 1.0 : 0.0);
392
- this._activeEffect.setFloat("_Use_Global_Right_Index_", this.useGlobalRightIndex ? 1.0 : 0.0);
393
- // "Antialiasing"
394
- //define SMOOTH_EDGES true;
395
- this._afterBind(mesh, this._activeEffect, subMesh);
396
- }
397
- /**
398
- * Get the list of animatables in the material.
399
- * @returns the list of animatables object used in the material
400
- */
401
- getAnimatables() {
402
- return [];
403
- }
404
- dispose(forceDisposeEffect) {
405
- super.dispose(forceDisposeEffect);
406
- }
407
- clone(name) {
408
- return SerializationHelper.Clone(() => new MRDLFrontplateMaterial(name, this.getScene()), this);
409
- }
410
- serialize() {
411
- const serializationObject = SerializationHelper.Serialize(this);
412
- serializationObject.customType = "BABYLON.MRDLFrontplateMaterial";
413
- return serializationObject;
414
- }
415
- getClassName() {
416
- return "MRDLFrontplateMaterial";
417
- }
418
- // Statics
419
- static Parse(source, scene, rootUrl) {
420
- return SerializationHelper.Parse(() => new MRDLFrontplateMaterial(source.name, scene), source, scene, rootUrl);
421
- }
422
- }
423
- /**
424
- * URL pointing to the texture used to define the coloring for the BLOB.
425
- */
426
- MRDLFrontplateMaterial.BLOB_TEXTURE_URL = "";
427
- __decorate([
428
- serialize()
429
- ], MRDLFrontplateMaterial.prototype, "radius", void 0);
430
- __decorate([
431
- serialize()
432
- ], MRDLFrontplateMaterial.prototype, "lineWidth", void 0);
433
- __decorate([
434
- serialize()
435
- ], MRDLFrontplateMaterial.prototype, "relativeToHeight", void 0);
436
- __decorate([
437
- serialize()
438
- ], MRDLFrontplateMaterial.prototype, "edgeColor", void 0);
439
- __decorate([
440
- serialize()
441
- ], MRDLFrontplateMaterial.prototype, "blobEnable", void 0);
442
- __decorate([
443
- serialize()
444
- ], MRDLFrontplateMaterial.prototype, "blobPosition", void 0);
445
- __decorate([
446
- serialize()
447
- ], MRDLFrontplateMaterial.prototype, "blobIntensity", void 0);
448
- __decorate([
449
- serialize()
450
- ], MRDLFrontplateMaterial.prototype, "blobNearSize", void 0);
451
- __decorate([
452
- serialize()
453
- ], MRDLFrontplateMaterial.prototype, "blobFarSize", void 0);
454
- __decorate([
455
- serialize()
456
- ], MRDLFrontplateMaterial.prototype, "blobNearDistance", void 0);
457
- __decorate([
458
- serialize()
459
- ], MRDLFrontplateMaterial.prototype, "blobFarDistance", void 0);
460
- __decorate([
461
- serialize()
462
- ], MRDLFrontplateMaterial.prototype, "blobFadeLength", void 0);
463
- __decorate([
464
- serialize()
465
- ], MRDLFrontplateMaterial.prototype, "blobInnerFade", void 0);
466
- __decorate([
467
- serialize()
468
- ], MRDLFrontplateMaterial.prototype, "blobPulse", void 0);
469
- __decorate([
470
- serialize()
471
- ], MRDLFrontplateMaterial.prototype, "blobFade", void 0);
472
- __decorate([
473
- serialize()
474
- ], MRDLFrontplateMaterial.prototype, "blobPulseMaxSize", void 0);
475
- __decorate([
476
- serialize()
477
- ], MRDLFrontplateMaterial.prototype, "blobEnable2", void 0);
478
- __decorate([
479
- serialize()
480
- ], MRDLFrontplateMaterial.prototype, "blobPosition2", void 0);
481
- __decorate([
482
- serialize()
483
- ], MRDLFrontplateMaterial.prototype, "blobNearSize2", void 0);
484
- __decorate([
485
- serialize()
486
- ], MRDLFrontplateMaterial.prototype, "blobInnerFade2", void 0);
487
- __decorate([
488
- serialize()
489
- ], MRDLFrontplateMaterial.prototype, "blobPulse2", void 0);
490
- __decorate([
491
- serialize()
492
- ], MRDLFrontplateMaterial.prototype, "blobFade2", void 0);
493
- __decorate([
494
- serialize()
495
- ], MRDLFrontplateMaterial.prototype, "gazeIntensity", void 0);
496
- __decorate([
497
- serialize()
498
- ], MRDLFrontplateMaterial.prototype, "gazeFocus", void 0);
499
- __decorate([
500
- serialize()
501
- ], MRDLFrontplateMaterial.prototype, "selectionFuzz", void 0);
502
- __decorate([
503
- serialize()
504
- ], MRDLFrontplateMaterial.prototype, "selected", void 0);
505
- __decorate([
506
- serialize()
507
- ], MRDLFrontplateMaterial.prototype, "selectionFade", void 0);
508
- __decorate([
509
- serialize()
510
- ], MRDLFrontplateMaterial.prototype, "selectionFadeSize", void 0);
511
- __decorate([
512
- serialize()
513
- ], MRDLFrontplateMaterial.prototype, "selectedDistance", void 0);
514
- __decorate([
515
- serialize()
516
- ], MRDLFrontplateMaterial.prototype, "selectedFadeLength", void 0);
517
- __decorate([
518
- serialize()
519
- ], MRDLFrontplateMaterial.prototype, "proximityMaxIntensity", void 0);
520
- __decorate([
521
- serialize()
522
- ], MRDLFrontplateMaterial.prototype, "proximityFarDistance", void 0);
523
- __decorate([
524
- serialize()
525
- ], MRDLFrontplateMaterial.prototype, "proximityNearRadius", void 0);
526
- __decorate([
527
- serialize()
528
- ], MRDLFrontplateMaterial.prototype, "proximityAnisotropy", void 0);
529
- __decorate([
530
- serialize()
531
- ], MRDLFrontplateMaterial.prototype, "useGlobalLeftIndex", void 0);
532
- __decorate([
533
- serialize()
534
- ], MRDLFrontplateMaterial.prototype, "useGlobalRightIndex", void 0);
518
+ clone(name) {
519
+ return SerializationHelper.Clone(() => new _a(name, this.getScene()), this);
520
+ }
521
+ serialize() {
522
+ const serializationObject = SerializationHelper.Serialize(this);
523
+ serializationObject.customType = "BABYLON.MRDLFrontplateMaterial";
524
+ return serializationObject;
525
+ }
526
+ getClassName() {
527
+ return "MRDLFrontplateMaterial";
528
+ }
529
+ // Statics
530
+ static Parse(source, scene, rootUrl) {
531
+ return SerializationHelper.Parse(() => new _a(source.name, scene), source, scene, rootUrl);
532
+ }
533
+ },
534
+ (() => {
535
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
536
+ _radius_decorators = [serialize()];
537
+ _lineWidth_decorators = [serialize()];
538
+ _relativeToHeight_decorators = [serialize()];
539
+ _edgeColor_decorators = [serialize()];
540
+ _blobEnable_decorators = [serialize()];
541
+ _blobPosition_decorators = [serialize()];
542
+ _blobIntensity_decorators = [serialize()];
543
+ _blobNearSize_decorators = [serialize()];
544
+ _blobFarSize_decorators = [serialize()];
545
+ _blobNearDistance_decorators = [serialize()];
546
+ _blobFarDistance_decorators = [serialize()];
547
+ _blobFadeLength_decorators = [serialize()];
548
+ _blobInnerFade_decorators = [serialize()];
549
+ _blobPulse_decorators = [serialize()];
550
+ _blobFade_decorators = [serialize()];
551
+ _blobPulseMaxSize_decorators = [serialize()];
552
+ _blobEnable2_decorators = [serialize()];
553
+ _blobPosition2_decorators = [serialize()];
554
+ _blobNearSize2_decorators = [serialize()];
555
+ _blobInnerFade2_decorators = [serialize()];
556
+ _blobPulse2_decorators = [serialize()];
557
+ _blobFade2_decorators = [serialize()];
558
+ _gazeIntensity_decorators = [serialize()];
559
+ _gazeFocus_decorators = [serialize()];
560
+ _selectionFuzz_decorators = [serialize()];
561
+ _selected_decorators = [serialize()];
562
+ _selectionFade_decorators = [serialize()];
563
+ _selectionFadeSize_decorators = [serialize()];
564
+ _selectedDistance_decorators = [serialize()];
565
+ _selectedFadeLength_decorators = [serialize()];
566
+ _proximityMaxIntensity_decorators = [serialize()];
567
+ _proximityFarDistance_decorators = [serialize()];
568
+ _proximityNearRadius_decorators = [serialize()];
569
+ _proximityAnisotropy_decorators = [serialize()];
570
+ _useGlobalLeftIndex_decorators = [serialize()];
571
+ _useGlobalRightIndex_decorators = [serialize()];
572
+ __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);
573
+ __esDecorate(null, null, _lineWidth_decorators, { kind: "field", name: "lineWidth", static: false, private: false, access: { has: obj => "lineWidth" in obj, get: obj => obj.lineWidth, set: (obj, value) => { obj.lineWidth = value; } }, metadata: _metadata }, _lineWidth_initializers, _lineWidth_extraInitializers);
574
+ __esDecorate(null, null, _relativeToHeight_decorators, { kind: "field", name: "relativeToHeight", static: false, private: false, access: { has: obj => "relativeToHeight" in obj, get: obj => obj.relativeToHeight, set: (obj, value) => { obj.relativeToHeight = value; } }, metadata: _metadata }, _relativeToHeight_initializers, _relativeToHeight_extraInitializers);
575
+ __esDecorate(null, null, _edgeColor_decorators, { kind: "field", name: "edgeColor", static: false, private: false, access: { has: obj => "edgeColor" in obj, get: obj => obj.edgeColor, set: (obj, value) => { obj.edgeColor = value; } }, metadata: _metadata }, _edgeColor_initializers, _edgeColor_extraInitializers);
576
+ __esDecorate(null, null, _blobEnable_decorators, { kind: "field", name: "blobEnable", static: false, private: false, access: { has: obj => "blobEnable" in obj, get: obj => obj.blobEnable, set: (obj, value) => { obj.blobEnable = value; } }, metadata: _metadata }, _blobEnable_initializers, _blobEnable_extraInitializers);
577
+ __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);
578
+ __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);
579
+ __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);
580
+ __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);
581
+ __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);
582
+ __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);
583
+ __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);
584
+ __esDecorate(null, null, _blobInnerFade_decorators, { kind: "field", name: "blobInnerFade", static: false, private: false, access: { has: obj => "blobInnerFade" in obj, get: obj => obj.blobInnerFade, set: (obj, value) => { obj.blobInnerFade = value; } }, metadata: _metadata }, _blobInnerFade_initializers, _blobInnerFade_extraInitializers);
585
+ __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);
586
+ __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);
587
+ __esDecorate(null, null, _blobPulseMaxSize_decorators, { kind: "field", name: "blobPulseMaxSize", static: false, private: false, access: { has: obj => "blobPulseMaxSize" in obj, get: obj => obj.blobPulseMaxSize, set: (obj, value) => { obj.blobPulseMaxSize = value; } }, metadata: _metadata }, _blobPulseMaxSize_initializers, _blobPulseMaxSize_extraInitializers);
588
+ __esDecorate(null, null, _blobEnable2_decorators, { kind: "field", name: "blobEnable2", static: false, private: false, access: { has: obj => "blobEnable2" in obj, get: obj => obj.blobEnable2, set: (obj, value) => { obj.blobEnable2 = value; } }, metadata: _metadata }, _blobEnable2_initializers, _blobEnable2_extraInitializers);
589
+ __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);
590
+ __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);
591
+ __esDecorate(null, null, _blobInnerFade2_decorators, { kind: "field", name: "blobInnerFade2", static: false, private: false, access: { has: obj => "blobInnerFade2" in obj, get: obj => obj.blobInnerFade2, set: (obj, value) => { obj.blobInnerFade2 = value; } }, metadata: _metadata }, _blobInnerFade2_initializers, _blobInnerFade2_extraInitializers);
592
+ __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);
593
+ __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);
594
+ __esDecorate(null, null, _gazeIntensity_decorators, { kind: "field", name: "gazeIntensity", static: false, private: false, access: { has: obj => "gazeIntensity" in obj, get: obj => obj.gazeIntensity, set: (obj, value) => { obj.gazeIntensity = value; } }, metadata: _metadata }, _gazeIntensity_initializers, _gazeIntensity_extraInitializers);
595
+ __esDecorate(null, null, _gazeFocus_decorators, { kind: "field", name: "gazeFocus", static: false, private: false, access: { has: obj => "gazeFocus" in obj, get: obj => obj.gazeFocus, set: (obj, value) => { obj.gazeFocus = value; } }, metadata: _metadata }, _gazeFocus_initializers, _gazeFocus_extraInitializers);
596
+ __esDecorate(null, null, _selectionFuzz_decorators, { kind: "field", name: "selectionFuzz", static: false, private: false, access: { has: obj => "selectionFuzz" in obj, get: obj => obj.selectionFuzz, set: (obj, value) => { obj.selectionFuzz = value; } }, metadata: _metadata }, _selectionFuzz_initializers, _selectionFuzz_extraInitializers);
597
+ __esDecorate(null, null, _selected_decorators, { kind: "field", name: "selected", static: false, private: false, access: { has: obj => "selected" in obj, get: obj => obj.selected, set: (obj, value) => { obj.selected = value; } }, metadata: _metadata }, _selected_initializers, _selected_extraInitializers);
598
+ __esDecorate(null, null, _selectionFade_decorators, { kind: "field", name: "selectionFade", static: false, private: false, access: { has: obj => "selectionFade" in obj, get: obj => obj.selectionFade, set: (obj, value) => { obj.selectionFade = value; } }, metadata: _metadata }, _selectionFade_initializers, _selectionFade_extraInitializers);
599
+ __esDecorate(null, null, _selectionFadeSize_decorators, { kind: "field", name: "selectionFadeSize", static: false, private: false, access: { has: obj => "selectionFadeSize" in obj, get: obj => obj.selectionFadeSize, set: (obj, value) => { obj.selectionFadeSize = value; } }, metadata: _metadata }, _selectionFadeSize_initializers, _selectionFadeSize_extraInitializers);
600
+ __esDecorate(null, null, _selectedDistance_decorators, { kind: "field", name: "selectedDistance", static: false, private: false, access: { has: obj => "selectedDistance" in obj, get: obj => obj.selectedDistance, set: (obj, value) => { obj.selectedDistance = value; } }, metadata: _metadata }, _selectedDistance_initializers, _selectedDistance_extraInitializers);
601
+ __esDecorate(null, null, _selectedFadeLength_decorators, { kind: "field", name: "selectedFadeLength", static: false, private: false, access: { has: obj => "selectedFadeLength" in obj, get: obj => obj.selectedFadeLength, set: (obj, value) => { obj.selectedFadeLength = value; } }, metadata: _metadata }, _selectedFadeLength_initializers, _selectedFadeLength_extraInitializers);
602
+ __esDecorate(null, null, _proximityMaxIntensity_decorators, { kind: "field", name: "proximityMaxIntensity", static: false, private: false, access: { has: obj => "proximityMaxIntensity" in obj, get: obj => obj.proximityMaxIntensity, set: (obj, value) => { obj.proximityMaxIntensity = value; } }, metadata: _metadata }, _proximityMaxIntensity_initializers, _proximityMaxIntensity_extraInitializers);
603
+ __esDecorate(null, null, _proximityFarDistance_decorators, { kind: "field", name: "proximityFarDistance", static: false, private: false, access: { has: obj => "proximityFarDistance" in obj, get: obj => obj.proximityFarDistance, set: (obj, value) => { obj.proximityFarDistance = value; } }, metadata: _metadata }, _proximityFarDistance_initializers, _proximityFarDistance_extraInitializers);
604
+ __esDecorate(null, null, _proximityNearRadius_decorators, { kind: "field", name: "proximityNearRadius", static: false, private: false, access: { has: obj => "proximityNearRadius" in obj, get: obj => obj.proximityNearRadius, set: (obj, value) => { obj.proximityNearRadius = value; } }, metadata: _metadata }, _proximityNearRadius_initializers, _proximityNearRadius_extraInitializers);
605
+ __esDecorate(null, null, _proximityAnisotropy_decorators, { kind: "field", name: "proximityAnisotropy", static: false, private: false, access: { has: obj => "proximityAnisotropy" in obj, get: obj => obj.proximityAnisotropy, set: (obj, value) => { obj.proximityAnisotropy = value; } }, metadata: _metadata }, _proximityAnisotropy_initializers, _proximityAnisotropy_extraInitializers);
606
+ __esDecorate(null, null, _useGlobalLeftIndex_decorators, { kind: "field", name: "useGlobalLeftIndex", static: false, private: false, access: { has: obj => "useGlobalLeftIndex" in obj, get: obj => obj.useGlobalLeftIndex, set: (obj, value) => { obj.useGlobalLeftIndex = value; } }, metadata: _metadata }, _useGlobalLeftIndex_initializers, _useGlobalLeftIndex_extraInitializers);
607
+ __esDecorate(null, null, _useGlobalRightIndex_decorators, { kind: "field", name: "useGlobalRightIndex", static: false, private: false, access: { has: obj => "useGlobalRightIndex" in obj, get: obj => obj.useGlobalRightIndex, set: (obj, value) => { obj.useGlobalRightIndex = value; } }, metadata: _metadata }, _useGlobalRightIndex_initializers, _useGlobalRightIndex_extraInitializers);
608
+ if (_metadata) Object.defineProperty(_a, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
609
+ })(),
610
+ /**
611
+ * URL pointing to the texture used to define the coloring for the BLOB.
612
+ */
613
+ _a.BLOB_TEXTURE_URL = "",
614
+ _a;
615
+ })();
616
+ export { MRDLFrontplateMaterial };
535
617
  let _Registered = false;
536
618
  /**
537
619
  * Registers the MRDLFrontplateMaterial class with the type store for serialization support.