@babylonjs/gui 9.14.0 → 9.16.0

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 (106) hide show
  1. package/2D/advancedDynamicTexture.d.ts +2 -2
  2. package/2D/advancedDynamicTexture.js +2 -2
  3. package/2D/advancedDynamicTexture.js.map +1 -1
  4. package/2D/controls/checkbox.pure.js +164 -153
  5. package/2D/controls/checkbox.pure.js.map +1 -1
  6. package/2D/controls/colorpicker.pure.js +1300 -1289
  7. package/2D/controls/colorpicker.pure.js.map +1 -1
  8. package/2D/controls/container.pure.js +597 -582
  9. package/2D/controls/container.pure.js.map +1 -1
  10. package/2D/controls/control.pure.js +2474 -2434
  11. package/2D/controls/control.pure.js.map +1 -1
  12. package/2D/controls/displayGrid.pure.js +201 -190
  13. package/2D/controls/displayGrid.pure.js.map +1 -1
  14. package/2D/controls/ellipse.pure.js +96 -85
  15. package/2D/controls/ellipse.pure.js.map +1 -1
  16. package/2D/controls/grid.pure.js +511 -500
  17. package/2D/controls/grid.pure.js.map +1 -1
  18. package/2D/controls/image.pure.js +888 -877
  19. package/2D/controls/image.pure.js.map +1 -1
  20. package/2D/controls/inputText.pure.js +988 -973
  21. package/2D/controls/inputText.pure.js.map +1 -1
  22. package/2D/controls/inputTextArea.pure.js +955 -944
  23. package/2D/controls/inputTextArea.pure.js.map +1 -1
  24. package/2D/controls/line.pure.js +237 -226
  25. package/2D/controls/line.pure.js.map +1 -1
  26. package/2D/controls/multiLine.pure.js +233 -222
  27. package/2D/controls/multiLine.pure.js.map +1 -1
  28. package/2D/controls/radioButton.pure.js +182 -169
  29. package/2D/controls/radioButton.pure.js.map +1 -1
  30. package/2D/controls/rectangle.pure.js +211 -200
  31. package/2D/controls/rectangle.pure.js.map +1 -1
  32. package/2D/controls/scrollViewers/scrollViewer.pure.js +579 -567
  33. package/2D/controls/scrollViewers/scrollViewer.pure.js.map +1 -1
  34. package/2D/controls/scrollViewers/scrollViewerWindow.d.ts +1 -1
  35. package/2D/controls/scrollViewers/scrollViewerWindow.js +2 -2
  36. package/2D/controls/scrollViewers/scrollViewerWindow.js.map +1 -1
  37. package/2D/controls/selector.d.ts +2 -2
  38. package/2D/controls/selector.js +8 -8
  39. package/2D/controls/selector.js.map +1 -1
  40. package/2D/controls/sliders/baseSlider.d.ts +1 -1
  41. package/2D/controls/sliders/baseSlider.js +292 -281
  42. package/2D/controls/sliders/baseSlider.js.map +1 -1
  43. package/2D/controls/sliders/imageBasedSlider.pure.js +158 -147
  44. package/2D/controls/sliders/imageBasedSlider.pure.js.map +1 -1
  45. package/2D/controls/sliders/imageScrollBar.js +237 -223
  46. package/2D/controls/sliders/imageScrollBar.js.map +1 -1
  47. package/2D/controls/sliders/scrollBar.pure.js +169 -158
  48. package/2D/controls/sliders/scrollBar.pure.js.map +1 -1
  49. package/2D/controls/sliders/slider.pure.js +251 -240
  50. package/2D/controls/sliders/slider.pure.js.map +1 -1
  51. package/2D/controls/stackPanel.pure.js +236 -221
  52. package/2D/controls/stackPanel.pure.js.map +1 -1
  53. package/2D/controls/textBlock.pure.js +637 -626
  54. package/2D/controls/textBlock.pure.js.map +1 -1
  55. package/2D/math2D.d.ts +1 -1
  56. package/2D/math2D.js +1 -1
  57. package/2D/math2D.js.map +1 -1
  58. package/2D/measure.js +1 -1
  59. package/2D/measure.js.map +1 -1
  60. package/3D/controls/MRTK3/touchHolographicButton.d.ts +4 -4
  61. package/3D/controls/MRTK3/touchHolographicButton.js +10 -10
  62. package/3D/controls/MRTK3/touchHolographicButton.js.map +1 -1
  63. package/3D/controls/holographicBackplate.d.ts +1 -1
  64. package/3D/controls/holographicBackplate.js +1 -1
  65. package/3D/controls/holographicBackplate.js.map +1 -1
  66. package/3D/controls/holographicButton.d.ts +1 -1
  67. package/3D/controls/holographicButton.js +4 -4
  68. package/3D/controls/holographicButton.js.map +1 -1
  69. package/3D/controls/holographicSlate.js +4 -4
  70. package/3D/controls/holographicSlate.js.map +1 -1
  71. package/3D/controls/slider3D.d.ts +3 -3
  72. package/3D/controls/slider3D.js +3 -3
  73. package/3D/controls/slider3D.js.map +1 -1
  74. package/3D/controls/touchHolographicButton.d.ts +2 -2
  75. package/3D/controls/touchHolographicButton.js +5 -5
  76. package/3D/controls/touchHolographicButton.js.map +1 -1
  77. package/3D/controls/touchHolographicMenu.js +1 -1
  78. package/3D/controls/touchHolographicMenu.js.map +1 -1
  79. package/3D/gizmos/gizmoHandle.d.ts +1 -1
  80. package/3D/gizmos/gizmoHandle.js +1 -1
  81. package/3D/gizmos/gizmoHandle.js.map +1 -1
  82. package/3D/materials/fluent/fluentMaterial.pure.d.ts +4 -4
  83. package/3D/materials/fluent/fluentMaterial.pure.js +322 -270
  84. package/3D/materials/fluent/fluentMaterial.pure.js.map +1 -1
  85. package/3D/materials/fluentBackplate/fluentBackplateMaterial.pure.js +510 -451
  86. package/3D/materials/fluentBackplate/fluentBackplateMaterial.pure.js.map +1 -1
  87. package/3D/materials/fluentButton/fluentButtonMaterial.pure.js +612 -526
  88. package/3D/materials/fluentButton/fluentButtonMaterial.pure.js.map +1 -1
  89. package/3D/materials/fluentMaterial.d.ts +1 -1
  90. package/3D/materials/fluentMaterial.js +1 -1
  91. package/3D/materials/fluentMaterial.js.map +1 -1
  92. package/3D/materials/handle/handleMaterial.pure.js +3 -1
  93. package/3D/materials/handle/handleMaterial.pure.js.map +1 -1
  94. package/3D/materials/mrdl/mrdlBackglowMaterial.pure.js +313 -271
  95. package/3D/materials/mrdl/mrdlBackglowMaterial.pure.js.map +1 -1
  96. package/3D/materials/mrdl/mrdlBackplateMaterial.pure.js +462 -402
  97. package/3D/materials/mrdl/mrdlBackplateMaterial.pure.js.map +1 -1
  98. package/3D/materials/mrdl/mrdlFrontplateMaterial.pure.js +583 -498
  99. package/3D/materials/mrdl/mrdlFrontplateMaterial.pure.js.map +1 -1
  100. package/3D/materials/mrdl/mrdlInnerquadMaterial.pure.js +226 -200
  101. package/3D/materials/mrdl/mrdlInnerquadMaterial.pure.js.map +1 -1
  102. package/3D/materials/mrdl/mrdlSliderBarMaterial.pure.js +961 -822
  103. package/3D/materials/mrdl/mrdlSliderBarMaterial.pure.js.map +1 -1
  104. package/3D/materials/mrdl/mrdlSliderThumbMaterial.pure.js +961 -822
  105. package/3D/materials/mrdl/mrdlSliderThumbMaterial.pure.js.map +1 -1
  106. 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 { Vector4 } from "@babylonjs/core/Maths/math.vector.pure.js";
@@ -28,415 +28,475 @@ class MRDLBackplateMaterialDefines extends MaterialDefines {
28
28
  /**
29
29
  * Class used to render backplate material with MRDL
30
30
  */
31
- export class MRDLBackplateMaterial extends PushMaterial {
32
- constructor(name, scene) {
33
- super(name, scene);
34
- /**
35
- * Gets or sets the corner radius on the backplate. If this value is changed, update the lineWidth to match.
36
- */
37
- this.radius = 0.3;
38
- /**
39
- * Gets or sets the line width of the backplate.
40
- */
41
- this.lineWidth = 0.003;
42
- /**
43
- * Gets or sets whether to use absolute sizes when calculating effects on the backplate.
44
- * Since desktop and VR/AR have different relative sizes, it's usually best to keep this false.
45
- */
46
- this.absoluteSizes = false;
47
- /** @internal */
48
- this._filterWidth = 1;
49
- /**
50
- * Gets or sets the base color of the backplate.
51
- */
52
- this.baseColor = new Color4(0, 0, 0, 1);
53
- /**
54
- * Gets or sets the line color of the backplate.
55
- */
56
- this.lineColor = new Color4(0.2, 0.262745, 0.4, 1);
57
- /**
58
- * Gets or sets the top left Radii Multiplier.
59
- */
60
- this.radiusTopLeft = 1.0;
61
- /**
62
- * Gets or sets the top left Radii Multiplier.
63
- */
64
- this.radiusTopRight = 1.0;
65
- /**
66
- * Gets or sets the top left Radii Multiplier.
67
- */
68
- this.radiusBottomLeft = 1.0;
69
- /**
70
- * Gets or sets the top left Radii Multiplier.
71
- */
72
- this.radiusBottomRight = 1.0;
73
- /** @internal */
74
- this._rate = 0;
75
- /**
76
- * Gets or sets the color of the highlights on the backplate line.
77
- */
78
- this.highlightColor = new Color4(0.239216, 0.435294, 0.827451, 1);
79
- /**
80
- * Gets or sets the width of the highlights on the backplate line.
81
- */
82
- this.highlightWidth = 0;
83
- /** @internal */
84
- this._highlightTransform = new Vector4(1, 1, 0, 0);
85
- /** @internal */
86
- this._highlight = 1;
87
- /**
88
- * Gets or sets the intensity of the iridescence effect.
89
- */
90
- this.iridescenceIntensity = 0.45;
91
- /**
92
- * Gets or sets the intensity of the iridescence effect on the backplate edges.
93
- */
94
- this.iridescenceEdgeIntensity = 1;
95
- /**
96
- * Gets or sets the Tint of the iridescence effect on the backplate.
97
- */
98
- this.iridescenceTint = new Color4(1, 1, 1, 1);
99
- /** @internal */
100
- this._angle = -45;
101
- /**
102
- * Gets or sets the opacity of the backplate (0.0 - 1.0).
103
- */
104
- this.fadeOut = 1;
105
- /** @internal */
106
- this._reflected = true;
107
- /** @internal */
108
- this._frequency = 1;
109
- /** @internal */
110
- this._verticalOffset = 0;
111
- /**
112
- * Gets or sets the gradient color effect on the backplate.
113
- */
114
- this.gradientColor = new Color4(0.74902, 0.74902, 0.74902, 1);
115
- /**
116
- * Gets or sets the top left gradient color effect on the backplate.
117
- */
118
- this.topLeftGradientColor = new Color4(0.00784314, 0.294118, 0.580392, 1);
119
- /**
120
- * Gets or sets the top right gradient color effect on the backplate.
121
- */
122
- this.topRightGradientColor = new Color4(0.305882, 0, 1, 1);
123
- /**
124
- * Gets or sets the bottom left gradient color effect on the backplate.
125
- */
126
- this.bottomLeftGradientColor = new Color4(0.133333, 0.258824, 0.992157, 1);
127
- /**
128
- * Gets or sets the bottom right gradient color effect on the backplate.
129
- */
130
- this.bottomRightGradientColor = new Color4(0.176471, 0.176471, 0.619608, 1);
131
- /**
132
- * Gets or sets the edge width of the backplate.
133
- */
134
- this.edgeWidth = 0.5;
135
- /**
136
- * Gets or sets the edge width of the backplate.
137
- */
138
- this.edgePower = 1;
139
- /**
140
- * Gets or sets the edge width of the backplate.
141
- */
142
- this.edgeLineGradientBlend = 0.5;
143
- this.alphaMode = Constants.ALPHA_DISABLE;
144
- this.backFaceCulling = false;
145
- const textureUrl = Tools.GetAssetUrl(MRDLBackplateMaterial.IRIDESCENT_MAP_TEXTURE_URL);
146
- this._iridescentMapTexture = new Texture(textureUrl, this.getScene(), true, false, Texture.NEAREST_SAMPLINGMODE);
147
- }
148
- needAlphaBlending() {
149
- return false;
150
- }
151
- needAlphaTesting() {
152
- return false;
153
- }
154
- getAlphaTestTexture() {
155
- return null;
156
- }
157
- // Methods
158
- isReadyForSubMesh(mesh, subMesh) {
159
- const drawWrapper = subMesh._drawWrapper;
160
- if (this.isFrozen) {
161
- if (drawWrapper.effect && drawWrapper._wasPreviouslyReady) {
31
+ let MRDLBackplateMaterial = (() => {
32
+ var _a;
33
+ let _classSuper = PushMaterial;
34
+ let _radius_decorators;
35
+ let _radius_initializers = [];
36
+ let _radius_extraInitializers = [];
37
+ let _lineWidth_decorators;
38
+ let _lineWidth_initializers = [];
39
+ let _lineWidth_extraInitializers = [];
40
+ let _absoluteSizes_decorators;
41
+ let _absoluteSizes_initializers = [];
42
+ let _absoluteSizes_extraInitializers = [];
43
+ let _baseColor_decorators;
44
+ let _baseColor_initializers = [];
45
+ let _baseColor_extraInitializers = [];
46
+ let _lineColor_decorators;
47
+ let _lineColor_initializers = [];
48
+ let _lineColor_extraInitializers = [];
49
+ let _radiusTopLeft_decorators;
50
+ let _radiusTopLeft_initializers = [];
51
+ let _radiusTopLeft_extraInitializers = [];
52
+ let _radiusTopRight_decorators;
53
+ let _radiusTopRight_initializers = [];
54
+ let _radiusTopRight_extraInitializers = [];
55
+ let _radiusBottomLeft_decorators;
56
+ let _radiusBottomLeft_initializers = [];
57
+ let _radiusBottomLeft_extraInitializers = [];
58
+ let _radiusBottomRight_decorators;
59
+ let _radiusBottomRight_initializers = [];
60
+ let _radiusBottomRight_extraInitializers = [];
61
+ let _highlightColor_decorators;
62
+ let _highlightColor_initializers = [];
63
+ let _highlightColor_extraInitializers = [];
64
+ let _highlightWidth_decorators;
65
+ let _highlightWidth_initializers = [];
66
+ let _highlightWidth_extraInitializers = [];
67
+ let _iridescenceIntensity_decorators;
68
+ let _iridescenceIntensity_initializers = [];
69
+ let _iridescenceIntensity_extraInitializers = [];
70
+ let _iridescenceEdgeIntensity_decorators;
71
+ let _iridescenceEdgeIntensity_initializers = [];
72
+ let _iridescenceEdgeIntensity_extraInitializers = [];
73
+ let _iridescenceTint_decorators;
74
+ let _iridescenceTint_initializers = [];
75
+ let _iridescenceTint_extraInitializers = [];
76
+ let _fadeOut_decorators;
77
+ let _fadeOut_initializers = [];
78
+ let _fadeOut_extraInitializers = [];
79
+ let _gradientColor_decorators;
80
+ let _gradientColor_initializers = [];
81
+ let _gradientColor_extraInitializers = [];
82
+ let _topLeftGradientColor_decorators;
83
+ let _topLeftGradientColor_initializers = [];
84
+ let _topLeftGradientColor_extraInitializers = [];
85
+ let _topRightGradientColor_decorators;
86
+ let _topRightGradientColor_initializers = [];
87
+ let _topRightGradientColor_extraInitializers = [];
88
+ let _bottomLeftGradientColor_decorators;
89
+ let _bottomLeftGradientColor_initializers = [];
90
+ let _bottomLeftGradientColor_extraInitializers = [];
91
+ let _bottomRightGradientColor_decorators;
92
+ let _bottomRightGradientColor_initializers = [];
93
+ let _bottomRightGradientColor_extraInitializers = [];
94
+ let _edgeWidth_decorators;
95
+ let _edgeWidth_initializers = [];
96
+ let _edgeWidth_extraInitializers = [];
97
+ let _edgePower_decorators;
98
+ let _edgePower_initializers = [];
99
+ let _edgePower_extraInitializers = [];
100
+ let _edgeLineGradientBlend_decorators;
101
+ let _edgeLineGradientBlend_initializers = [];
102
+ let _edgeLineGradientBlend_extraInitializers = [];
103
+ return _a = class MRDLBackplateMaterial extends _classSuper {
104
+ constructor(name, scene) {
105
+ super(name, scene);
106
+ /**
107
+ * Gets or sets the corner radius on the backplate. If this value is changed, update the lineWidth to match.
108
+ */
109
+ this.radius = __runInitializers(this, _radius_initializers, 0.3);
110
+ /**
111
+ * Gets or sets the line width of the backplate.
112
+ */
113
+ this.lineWidth = (__runInitializers(this, _radius_extraInitializers), __runInitializers(this, _lineWidth_initializers, 0.003));
114
+ /**
115
+ * Gets or sets whether to use absolute sizes when calculating effects on the backplate.
116
+ * Since desktop and VR/AR have different relative sizes, it's usually best to keep this false.
117
+ */
118
+ this.absoluteSizes = (__runInitializers(this, _lineWidth_extraInitializers), __runInitializers(this, _absoluteSizes_initializers, false));
119
+ /** @internal */
120
+ this._filterWidth = (__runInitializers(this, _absoluteSizes_extraInitializers), 1);
121
+ /**
122
+ * Gets or sets the base color of the backplate.
123
+ */
124
+ this.baseColor = __runInitializers(this, _baseColor_initializers, new Color4(0, 0, 0, 1));
125
+ /**
126
+ * Gets or sets the line color of the backplate.
127
+ */
128
+ this.lineColor = (__runInitializers(this, _baseColor_extraInitializers), __runInitializers(this, _lineColor_initializers, new Color4(0.2, 0.262745, 0.4, 1)));
129
+ /**
130
+ * Gets or sets the top left Radii Multiplier.
131
+ */
132
+ this.radiusTopLeft = (__runInitializers(this, _lineColor_extraInitializers), __runInitializers(this, _radiusTopLeft_initializers, 1.0));
133
+ /**
134
+ * Gets or sets the top left Radii Multiplier.
135
+ */
136
+ this.radiusTopRight = (__runInitializers(this, _radiusTopLeft_extraInitializers), __runInitializers(this, _radiusTopRight_initializers, 1.0));
137
+ /**
138
+ * Gets or sets the top left Radii Multiplier.
139
+ */
140
+ this.radiusBottomLeft = (__runInitializers(this, _radiusTopRight_extraInitializers), __runInitializers(this, _radiusBottomLeft_initializers, 1.0));
141
+ /**
142
+ * Gets or sets the top left Radii Multiplier.
143
+ */
144
+ this.radiusBottomRight = (__runInitializers(this, _radiusBottomLeft_extraInitializers), __runInitializers(this, _radiusBottomRight_initializers, 1.0));
145
+ /** @internal */
146
+ this._rate = (__runInitializers(this, _radiusBottomRight_extraInitializers), 0);
147
+ /**
148
+ * Gets or sets the color of the highlights on the backplate line.
149
+ */
150
+ this.highlightColor = __runInitializers(this, _highlightColor_initializers, new Color4(0.239216, 0.435294, 0.827451, 1));
151
+ /**
152
+ * Gets or sets the width of the highlights on the backplate line.
153
+ */
154
+ this.highlightWidth = (__runInitializers(this, _highlightColor_extraInitializers), __runInitializers(this, _highlightWidth_initializers, 0));
155
+ /** @internal */
156
+ this._highlightTransform = (__runInitializers(this, _highlightWidth_extraInitializers), new Vector4(1, 1, 0, 0));
157
+ /** @internal */
158
+ this._highlight = 1;
159
+ /**
160
+ * Gets or sets the intensity of the iridescence effect.
161
+ */
162
+ this.iridescenceIntensity = __runInitializers(this, _iridescenceIntensity_initializers, 0.45);
163
+ /**
164
+ * Gets or sets the intensity of the iridescence effect on the backplate edges.
165
+ */
166
+ this.iridescenceEdgeIntensity = (__runInitializers(this, _iridescenceIntensity_extraInitializers), __runInitializers(this, _iridescenceEdgeIntensity_initializers, 1));
167
+ /**
168
+ * Gets or sets the Tint of the iridescence effect on the backplate.
169
+ */
170
+ this.iridescenceTint = (__runInitializers(this, _iridescenceEdgeIntensity_extraInitializers), __runInitializers(this, _iridescenceTint_initializers, new Color4(1, 1, 1, 1)));
171
+ /** @internal */
172
+ this._angle = (__runInitializers(this, _iridescenceTint_extraInitializers), -45);
173
+ /**
174
+ * Gets or sets the opacity of the backplate (0.0 - 1.0).
175
+ */
176
+ this.fadeOut = __runInitializers(this, _fadeOut_initializers, 1);
177
+ /** @internal */
178
+ this._reflected = (__runInitializers(this, _fadeOut_extraInitializers), true);
179
+ /** @internal */
180
+ this._frequency = 1;
181
+ /** @internal */
182
+ this._verticalOffset = 0;
183
+ /**
184
+ * Gets or sets the gradient color effect on the backplate.
185
+ */
186
+ this.gradientColor = __runInitializers(this, _gradientColor_initializers, new Color4(0.74902, 0.74902, 0.74902, 1));
187
+ /**
188
+ * Gets or sets the top left gradient color effect on the backplate.
189
+ */
190
+ this.topLeftGradientColor = (__runInitializers(this, _gradientColor_extraInitializers), __runInitializers(this, _topLeftGradientColor_initializers, new Color4(0.00784314, 0.294118, 0.580392, 1)));
191
+ /**
192
+ * Gets or sets the top right gradient color effect on the backplate.
193
+ */
194
+ this.topRightGradientColor = (__runInitializers(this, _topLeftGradientColor_extraInitializers), __runInitializers(this, _topRightGradientColor_initializers, new Color4(0.305882, 0, 1, 1)));
195
+ /**
196
+ * Gets or sets the bottom left gradient color effect on the backplate.
197
+ */
198
+ this.bottomLeftGradientColor = (__runInitializers(this, _topRightGradientColor_extraInitializers), __runInitializers(this, _bottomLeftGradientColor_initializers, new Color4(0.133333, 0.258824, 0.992157, 1)));
199
+ /**
200
+ * Gets or sets the bottom right gradient color effect on the backplate.
201
+ */
202
+ this.bottomRightGradientColor = (__runInitializers(this, _bottomLeftGradientColor_extraInitializers), __runInitializers(this, _bottomRightGradientColor_initializers, new Color4(0.176471, 0.176471, 0.619608, 1)));
203
+ /**
204
+ * Gets or sets the edge width of the backplate.
205
+ */
206
+ this.edgeWidth = (__runInitializers(this, _bottomRightGradientColor_extraInitializers), __runInitializers(this, _edgeWidth_initializers, 0.5));
207
+ /**
208
+ * Gets or sets the edge width of the backplate.
209
+ */
210
+ this.edgePower = (__runInitializers(this, _edgeWidth_extraInitializers), __runInitializers(this, _edgePower_initializers, 1));
211
+ /**
212
+ * Gets or sets the edge width of the backplate.
213
+ */
214
+ this.edgeLineGradientBlend = (__runInitializers(this, _edgePower_extraInitializers), __runInitializers(this, _edgeLineGradientBlend_initializers, 0.5));
215
+ __runInitializers(this, _edgeLineGradientBlend_extraInitializers);
216
+ this.alphaMode = Constants.ALPHA_DISABLE;
217
+ this.backFaceCulling = false;
218
+ const textureUrl = Tools.GetAssetUrl(_a.IRIDESCENT_MAP_TEXTURE_URL);
219
+ this._iridescentMapTexture = new Texture(textureUrl, this.getScene(), true, false, Texture.NEAREST_SAMPLINGMODE);
220
+ }
221
+ needAlphaBlending() {
222
+ return false;
223
+ }
224
+ needAlphaTesting() {
225
+ return false;
226
+ }
227
+ getAlphaTestTexture() {
228
+ return null;
229
+ }
230
+ // Methods
231
+ isReadyForSubMesh(mesh, subMesh) {
232
+ const drawWrapper = subMesh._drawWrapper;
233
+ if (this.isFrozen) {
234
+ if (drawWrapper.effect && drawWrapper._wasPreviouslyReady) {
235
+ return true;
236
+ }
237
+ }
238
+ if (!subMesh.materialDefines) {
239
+ subMesh.materialDefines = new MRDLBackplateMaterialDefines();
240
+ }
241
+ const defines = subMesh.materialDefines;
242
+ const scene = this.getScene();
243
+ if (!this._iridescentMapTexture.isReady()) {
244
+ return false;
245
+ }
246
+ if (this._isReadyForSubMesh(subMesh)) {
247
+ return true;
248
+ }
249
+ const engine = scene.getEngine();
250
+ // Attribs
251
+ PrepareDefinesForAttributes(mesh, defines, false, false);
252
+ // Get correct effect
253
+ if (defines.isDirty) {
254
+ defines.markAsProcessed();
255
+ scene.resetCachedMaterial();
256
+ // Fallbacks
257
+ const fallbacks = new EffectFallbacks();
258
+ if (defines.FOG) {
259
+ fallbacks.addFallback(1, "FOG");
260
+ }
261
+ HandleFallbacksForShadows(defines, fallbacks);
262
+ defines.IMAGEPROCESSINGPOSTPROCESS = scene.imageProcessingConfiguration.applyByPostProcess;
263
+ //Attributes
264
+ const attribs = [VertexBuffer.PositionKind];
265
+ if (defines.NORMAL) {
266
+ attribs.push(VertexBuffer.NormalKind);
267
+ }
268
+ if (defines.UV1) {
269
+ attribs.push(VertexBuffer.UVKind);
270
+ }
271
+ if (defines.UV2) {
272
+ attribs.push(VertexBuffer.UV2Kind);
273
+ }
274
+ if (defines.VERTEXCOLOR) {
275
+ attribs.push(VertexBuffer.ColorKind);
276
+ }
277
+ if (defines.TANGENT) {
278
+ attribs.push(VertexBuffer.TangentKind);
279
+ }
280
+ PrepareAttributesForInstances(attribs, defines);
281
+ // Legacy browser patch
282
+ const shaderName = "mrdlBackplate";
283
+ const join = defines.toString();
284
+ const uniforms = [
285
+ "world",
286
+ "viewProjection",
287
+ "cameraPosition",
288
+ "_Radius_",
289
+ "_Line_Width_",
290
+ "_Absolute_Sizes_",
291
+ "_Filter_Width_",
292
+ "_Base_Color_",
293
+ "_Line_Color_",
294
+ "_Radius_Top_Left_",
295
+ "_Radius_Top_Right_",
296
+ "_Radius_Bottom_Left_",
297
+ "_Radius_Bottom_Right_",
298
+ "_Rate_",
299
+ "_Highlight_Color_",
300
+ "_Highlight_Width_",
301
+ "_Highlight_Transform_",
302
+ "_Highlight_",
303
+ "_Iridescence_Intensity_",
304
+ "_Iridescence_Edge_Intensity_",
305
+ "_Iridescence_Tint_",
306
+ "_Iridescent_Map_",
307
+ "_Angle_",
308
+ "_Reflected_",
309
+ "_Frequency_",
310
+ "_Vertical_Offset_",
311
+ "_Gradient_Color_",
312
+ "_Top_Left_",
313
+ "_Top_Right_",
314
+ "_Bottom_Left_",
315
+ "_Bottom_Right_",
316
+ "_Edge_Width_",
317
+ "_Edge_Power_",
318
+ "_Line_Gradient_Blend_",
319
+ "_Fade_Out_",
320
+ ];
321
+ const samplers = ["_Iridescent_Map_"];
322
+ const uniformBuffers = [];
323
+ PrepareUniformsAndSamplersList({
324
+ uniformsNames: uniforms,
325
+ uniformBuffersNames: uniformBuffers,
326
+ samplers: samplers,
327
+ defines: defines,
328
+ maxSimultaneousLights: 4,
329
+ });
330
+ subMesh.setEffect(scene.getEngine().createEffect(shaderName, {
331
+ attributes: attribs,
332
+ uniformsNames: uniforms,
333
+ uniformBuffersNames: uniformBuffers,
334
+ samplers: samplers,
335
+ defines: join,
336
+ fallbacks: fallbacks,
337
+ onCompiled: this.onCompiled,
338
+ onError: this.onError,
339
+ indexParameters: { maxSimultaneousLights: 4 },
340
+ extraInitializationsAsync: async () => {
341
+ await Promise.all([import("./shaders/mrdlBackplate.vertex.js"), import("./shaders/mrdlBackplate.fragment.js")]);
342
+ },
343
+ }, engine), defines);
344
+ }
345
+ if (!subMesh.effect || !subMesh.effect.isReady()) {
346
+ return false;
347
+ }
348
+ defines._renderId = scene.getRenderId();
349
+ drawWrapper._wasPreviouslyReady = true;
162
350
  return true;
163
351
  }
164
- }
165
- if (!subMesh.materialDefines) {
166
- subMesh.materialDefines = new MRDLBackplateMaterialDefines();
167
- }
168
- const defines = subMesh.materialDefines;
169
- const scene = this.getScene();
170
- if (!this._iridescentMapTexture.isReady()) {
171
- return false;
172
- }
173
- if (this._isReadyForSubMesh(subMesh)) {
174
- return true;
175
- }
176
- const engine = scene.getEngine();
177
- // Attribs
178
- PrepareDefinesForAttributes(mesh, defines, false, false);
179
- // Get correct effect
180
- if (defines.isDirty) {
181
- defines.markAsProcessed();
182
- scene.resetCachedMaterial();
183
- // Fallbacks
184
- const fallbacks = new EffectFallbacks();
185
- if (defines.FOG) {
186
- fallbacks.addFallback(1, "FOG");
352
+ bindForSubMesh(world, mesh, subMesh) {
353
+ const defines = subMesh.materialDefines;
354
+ if (!defines) {
355
+ return;
356
+ }
357
+ const effect = subMesh.effect;
358
+ if (!effect) {
359
+ return;
360
+ }
361
+ this._activeEffect = effect;
362
+ // Matrices
363
+ this.bindOnlyWorldMatrix(world);
364
+ this._activeEffect.setMatrix("viewProjection", this.getScene().getTransformMatrix());
365
+ this._activeEffect.setVector3("cameraPosition", this.getScene().activeCamera.position);
366
+ // "Round Rect"
367
+ this._activeEffect.setFloat("_Radius_", this.radius);
368
+ this._activeEffect.setFloat("_Line_Width_", this.lineWidth);
369
+ this._activeEffect.setFloat("_Absolute_Sizes_", this.absoluteSizes ? 1.0 : 0.0);
370
+ this._activeEffect.setFloat("_Filter_Width_", this._filterWidth);
371
+ this._activeEffect.setDirectColor4("_Base_Color_", this.baseColor);
372
+ this._activeEffect.setDirectColor4("_Line_Color_", this.lineColor);
373
+ // "Radii Multipliers"
374
+ this._activeEffect.setFloat("_Radius_Top_Left_", this.radiusTopLeft);
375
+ this._activeEffect.setFloat("_Radius_Top_Right_", this.radiusTopRight);
376
+ this._activeEffect.setFloat("_Radius_Bottom_Left_", this.radiusBottomLeft);
377
+ this._activeEffect.setFloat("_Radius_Bottom_Right_", this.radiusBottomRight);
378
+ // "Line Highlight"
379
+ this._activeEffect.setFloat("_Rate_", this._rate);
380
+ this._activeEffect.setDirectColor4("_Highlight_Color_", this.highlightColor);
381
+ this._activeEffect.setFloat("_Highlight_Width_", this.highlightWidth);
382
+ this._activeEffect.setVector4("_Highlight_Transform_", this._highlightTransform);
383
+ this._activeEffect.setFloat("_Highlight_", this._highlight);
384
+ // "Iridescence"
385
+ //define IRIDESCENCE_ENABLE true;
386
+ this._activeEffect.setFloat("_Iridescence_Intensity_", this.iridescenceIntensity);
387
+ this._activeEffect.setFloat("_Iridescence_Edge_Intensity_", this.iridescenceEdgeIntensity);
388
+ this._activeEffect.setDirectColor4("_Iridescence_Tint_", this.iridescenceTint);
389
+ this._activeEffect.setTexture("_Iridescent_Map_", this._iridescentMapTexture);
390
+ this._activeEffect.setFloat("_Angle_", this._angle);
391
+ this._activeEffect.setFloat("_Reflected_", this._reflected ? 1.0 : 0.0);
392
+ this._activeEffect.setFloat("_Frequency_", this._frequency);
393
+ this._activeEffect.setFloat("_Vertical_Offset_", this._verticalOffset);
394
+ // "Gradient"
395
+ this._activeEffect.setDirectColor4("_Gradient_Color_", this.gradientColor);
396
+ this._activeEffect.setDirectColor4("_Top_Left_", this.topLeftGradientColor);
397
+ this._activeEffect.setDirectColor4("_Top_Right_", this.topRightGradientColor);
398
+ this._activeEffect.setDirectColor4("_Bottom_Left_", this.bottomLeftGradientColor);
399
+ this._activeEffect.setDirectColor4("_Bottom_Right_", this.bottomRightGradientColor);
400
+ //define EDGE_ONLY false;
401
+ this._activeEffect.setFloat("_Edge_Width_", this.edgeWidth);
402
+ this._activeEffect.setFloat("_Edge_Power_", this.edgePower);
403
+ this._activeEffect.setFloat("_Line_Gradient_Blend_", this.edgeLineGradientBlend);
404
+ // "Fade"
405
+ this._activeEffect.setFloat("_Fade_Out_", this.fadeOut);
406
+ // "Antialiasing"
407
+ //define SMOOTH_EDGES true;
408
+ this._afterBind(mesh, this._activeEffect, subMesh);
187
409
  }
188
- HandleFallbacksForShadows(defines, fallbacks);
189
- defines.IMAGEPROCESSINGPOSTPROCESS = scene.imageProcessingConfiguration.applyByPostProcess;
190
- //Attributes
191
- const attribs = [VertexBuffer.PositionKind];
192
- if (defines.NORMAL) {
193
- attribs.push(VertexBuffer.NormalKind);
410
+ /**
411
+ * Get the list of animatables in the material.
412
+ * @returns the list of animatables object used in the material
413
+ */
414
+ getAnimatables() {
415
+ return [];
194
416
  }
195
- if (defines.UV1) {
196
- attribs.push(VertexBuffer.UVKind);
417
+ dispose(forceDisposeEffect) {
418
+ super.dispose(forceDisposeEffect);
197
419
  }
198
- if (defines.UV2) {
199
- attribs.push(VertexBuffer.UV2Kind);
420
+ clone(name) {
421
+ return SerializationHelper.Clone(() => new _a(name, this.getScene()), this);
200
422
  }
201
- if (defines.VERTEXCOLOR) {
202
- attribs.push(VertexBuffer.ColorKind);
423
+ serialize() {
424
+ const serializationObject = super.serialize();
425
+ serializationObject.customType = "BABYLON.MRDLBackplateMaterial";
426
+ return serializationObject;
203
427
  }
204
- if (defines.TANGENT) {
205
- attribs.push(VertexBuffer.TangentKind);
428
+ getClassName() {
429
+ return "MRDLBackplateMaterial";
206
430
  }
207
- PrepareAttributesForInstances(attribs, defines);
208
- // Legacy browser patch
209
- const shaderName = "mrdlBackplate";
210
- const join = defines.toString();
211
- const uniforms = [
212
- "world",
213
- "viewProjection",
214
- "cameraPosition",
215
- "_Radius_",
216
- "_Line_Width_",
217
- "_Absolute_Sizes_",
218
- "_Filter_Width_",
219
- "_Base_Color_",
220
- "_Line_Color_",
221
- "_Radius_Top_Left_",
222
- "_Radius_Top_Right_",
223
- "_Radius_Bottom_Left_",
224
- "_Radius_Bottom_Right_",
225
- "_Rate_",
226
- "_Highlight_Color_",
227
- "_Highlight_Width_",
228
- "_Highlight_Transform_",
229
- "_Highlight_",
230
- "_Iridescence_Intensity_",
231
- "_Iridescence_Edge_Intensity_",
232
- "_Iridescence_Tint_",
233
- "_Iridescent_Map_",
234
- "_Angle_",
235
- "_Reflected_",
236
- "_Frequency_",
237
- "_Vertical_Offset_",
238
- "_Gradient_Color_",
239
- "_Top_Left_",
240
- "_Top_Right_",
241
- "_Bottom_Left_",
242
- "_Bottom_Right_",
243
- "_Edge_Width_",
244
- "_Edge_Power_",
245
- "_Line_Gradient_Blend_",
246
- "_Fade_Out_",
247
- ];
248
- const samplers = ["_Iridescent_Map_"];
249
- const uniformBuffers = [];
250
- PrepareUniformsAndSamplersList({
251
- uniformsNames: uniforms,
252
- uniformBuffersNames: uniformBuffers,
253
- samplers: samplers,
254
- defines: defines,
255
- maxSimultaneousLights: 4,
256
- });
257
- subMesh.setEffect(scene.getEngine().createEffect(shaderName, {
258
- attributes: attribs,
259
- uniformsNames: uniforms,
260
- uniformBuffersNames: uniformBuffers,
261
- samplers: samplers,
262
- defines: join,
263
- fallbacks: fallbacks,
264
- onCompiled: this.onCompiled,
265
- onError: this.onError,
266
- indexParameters: { maxSimultaneousLights: 4 },
267
- }, engine), defines);
268
- }
269
- if (!subMesh.effect || !subMesh.effect.isReady()) {
270
- return false;
271
- }
272
- defines._renderId = scene.getRenderId();
273
- drawWrapper._wasPreviouslyReady = true;
274
- return true;
275
- }
276
- bindForSubMesh(world, mesh, subMesh) {
277
- const defines = subMesh.materialDefines;
278
- if (!defines) {
279
- return;
280
- }
281
- const effect = subMesh.effect;
282
- if (!effect) {
283
- return;
284
- }
285
- this._activeEffect = effect;
286
- // Matrices
287
- this.bindOnlyWorldMatrix(world);
288
- this._activeEffect.setMatrix("viewProjection", this.getScene().getTransformMatrix());
289
- this._activeEffect.setVector3("cameraPosition", this.getScene().activeCamera.position);
290
- // "Round Rect"
291
- this._activeEffect.setFloat("_Radius_", this.radius);
292
- this._activeEffect.setFloat("_Line_Width_", this.lineWidth);
293
- this._activeEffect.setFloat("_Absolute_Sizes_", this.absoluteSizes ? 1.0 : 0.0);
294
- this._activeEffect.setFloat("_Filter_Width_", this._filterWidth);
295
- this._activeEffect.setDirectColor4("_Base_Color_", this.baseColor);
296
- this._activeEffect.setDirectColor4("_Line_Color_", this.lineColor);
297
- // "Radii Multipliers"
298
- this._activeEffect.setFloat("_Radius_Top_Left_", this.radiusTopLeft);
299
- this._activeEffect.setFloat("_Radius_Top_Right_", this.radiusTopRight);
300
- this._activeEffect.setFloat("_Radius_Bottom_Left_", this.radiusBottomLeft);
301
- this._activeEffect.setFloat("_Radius_Bottom_Right_", this.radiusBottomRight);
302
- // "Line Highlight"
303
- this._activeEffect.setFloat("_Rate_", this._rate);
304
- this._activeEffect.setDirectColor4("_Highlight_Color_", this.highlightColor);
305
- this._activeEffect.setFloat("_Highlight_Width_", this.highlightWidth);
306
- this._activeEffect.setVector4("_Highlight_Transform_", this._highlightTransform);
307
- this._activeEffect.setFloat("_Highlight_", this._highlight);
308
- // "Iridescence"
309
- //define IRIDESCENCE_ENABLE true;
310
- this._activeEffect.setFloat("_Iridescence_Intensity_", this.iridescenceIntensity);
311
- this._activeEffect.setFloat("_Iridescence_Edge_Intensity_", this.iridescenceEdgeIntensity);
312
- this._activeEffect.setDirectColor4("_Iridescence_Tint_", this.iridescenceTint);
313
- this._activeEffect.setTexture("_Iridescent_Map_", this._iridescentMapTexture);
314
- this._activeEffect.setFloat("_Angle_", this._angle);
315
- this._activeEffect.setFloat("_Reflected_", this._reflected ? 1.0 : 0.0);
316
- this._activeEffect.setFloat("_Frequency_", this._frequency);
317
- this._activeEffect.setFloat("_Vertical_Offset_", this._verticalOffset);
318
- // "Gradient"
319
- this._activeEffect.setDirectColor4("_Gradient_Color_", this.gradientColor);
320
- this._activeEffect.setDirectColor4("_Top_Left_", this.topLeftGradientColor);
321
- this._activeEffect.setDirectColor4("_Top_Right_", this.topRightGradientColor);
322
- this._activeEffect.setDirectColor4("_Bottom_Left_", this.bottomLeftGradientColor);
323
- this._activeEffect.setDirectColor4("_Bottom_Right_", this.bottomRightGradientColor);
324
- //define EDGE_ONLY false;
325
- this._activeEffect.setFloat("_Edge_Width_", this.edgeWidth);
326
- this._activeEffect.setFloat("_Edge_Power_", this.edgePower);
327
- this._activeEffect.setFloat("_Line_Gradient_Blend_", this.edgeLineGradientBlend);
328
- // "Fade"
329
- this._activeEffect.setFloat("_Fade_Out_", this.fadeOut);
330
- // "Antialiasing"
331
- //define SMOOTH_EDGES true;
332
- this._afterBind(mesh, this._activeEffect, subMesh);
333
- }
334
- /**
335
- * Get the list of animatables in the material.
336
- * @returns the list of animatables object used in the material
337
- */
338
- getAnimatables() {
339
- return [];
340
- }
341
- dispose(forceDisposeEffect) {
342
- super.dispose(forceDisposeEffect);
343
- }
344
- clone(name) {
345
- return SerializationHelper.Clone(() => new MRDLBackplateMaterial(name, this.getScene()), this);
346
- }
347
- serialize() {
348
- const serializationObject = super.serialize();
349
- serializationObject.customType = "BABYLON.MRDLBackplateMaterial";
350
- return serializationObject;
351
- }
352
- getClassName() {
353
- return "MRDLBackplateMaterial";
354
- }
355
- // Statics
356
- /**
357
- * Parses a serialized MRDLBackplateMaterial and returns a new instance.
358
- * @param source - the serialized object
359
- * @param scene - defines the hosting scene
360
- * @param rootUrl - the root URL used to load any associated textures
361
- * @returns a new MRDLBackplateMaterial
362
- */
363
- static Parse(source, scene, rootUrl) {
364
- return SerializationHelper.Parse(() => new MRDLBackplateMaterial(source.name, scene), source, scene, rootUrl);
365
- }
366
- }
367
- /**
368
- * URL pointing to the texture used to define the coloring for the Iridescent Map effect.
369
- */
370
- MRDLBackplateMaterial.IRIDESCENT_MAP_TEXTURE_URL = "https://assets.babylonjs.com/core/MRTK/MRDL/mrtk-mrdl-backplate-iridescence.png";
371
- __decorate([
372
- serialize()
373
- ], MRDLBackplateMaterial.prototype, "radius", void 0);
374
- __decorate([
375
- serialize()
376
- ], MRDLBackplateMaterial.prototype, "lineWidth", void 0);
377
- __decorate([
378
- serialize()
379
- ], MRDLBackplateMaterial.prototype, "absoluteSizes", void 0);
380
- __decorate([
381
- serialize()
382
- ], MRDLBackplateMaterial.prototype, "baseColor", void 0);
383
- __decorate([
384
- serialize()
385
- ], MRDLBackplateMaterial.prototype, "lineColor", void 0);
386
- __decorate([
387
- serialize()
388
- ], MRDLBackplateMaterial.prototype, "radiusTopLeft", void 0);
389
- __decorate([
390
- serialize()
391
- ], MRDLBackplateMaterial.prototype, "radiusTopRight", void 0);
392
- __decorate([
393
- serialize()
394
- ], MRDLBackplateMaterial.prototype, "radiusBottomLeft", void 0);
395
- __decorate([
396
- serialize()
397
- ], MRDLBackplateMaterial.prototype, "radiusBottomRight", void 0);
398
- __decorate([
399
- serialize()
400
- ], MRDLBackplateMaterial.prototype, "highlightColor", void 0);
401
- __decorate([
402
- serialize()
403
- ], MRDLBackplateMaterial.prototype, "highlightWidth", void 0);
404
- __decorate([
405
- serialize()
406
- ], MRDLBackplateMaterial.prototype, "iridescenceIntensity", void 0);
407
- __decorate([
408
- serialize()
409
- ], MRDLBackplateMaterial.prototype, "iridescenceEdgeIntensity", void 0);
410
- __decorate([
411
- serialize()
412
- ], MRDLBackplateMaterial.prototype, "iridescenceTint", void 0);
413
- __decorate([
414
- serialize()
415
- ], MRDLBackplateMaterial.prototype, "fadeOut", void 0);
416
- __decorate([
417
- serialize()
418
- ], MRDLBackplateMaterial.prototype, "gradientColor", void 0);
419
- __decorate([
420
- serialize()
421
- ], MRDLBackplateMaterial.prototype, "topLeftGradientColor", void 0);
422
- __decorate([
423
- serialize()
424
- ], MRDLBackplateMaterial.prototype, "topRightGradientColor", void 0);
425
- __decorate([
426
- serialize()
427
- ], MRDLBackplateMaterial.prototype, "bottomLeftGradientColor", void 0);
428
- __decorate([
429
- serialize()
430
- ], MRDLBackplateMaterial.prototype, "bottomRightGradientColor", void 0);
431
- __decorate([
432
- serialize()
433
- ], MRDLBackplateMaterial.prototype, "edgeWidth", void 0);
434
- __decorate([
435
- serialize()
436
- ], MRDLBackplateMaterial.prototype, "edgePower", void 0);
437
- __decorate([
438
- serialize()
439
- ], MRDLBackplateMaterial.prototype, "edgeLineGradientBlend", void 0);
431
+ // Statics
432
+ /**
433
+ * Parses a serialized MRDLBackplateMaterial and returns a new instance.
434
+ * @param source - the serialized object
435
+ * @param scene - defines the hosting scene
436
+ * @param rootUrl - the root URL used to load any associated textures
437
+ * @returns a new MRDLBackplateMaterial
438
+ */
439
+ static Parse(source, scene, rootUrl) {
440
+ return SerializationHelper.Parse(() => new _a(source.name, scene), source, scene, rootUrl);
441
+ }
442
+ },
443
+ (() => {
444
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
445
+ _radius_decorators = [serialize()];
446
+ _lineWidth_decorators = [serialize()];
447
+ _absoluteSizes_decorators = [serialize()];
448
+ _baseColor_decorators = [serialize()];
449
+ _lineColor_decorators = [serialize()];
450
+ _radiusTopLeft_decorators = [serialize()];
451
+ _radiusTopRight_decorators = [serialize()];
452
+ _radiusBottomLeft_decorators = [serialize()];
453
+ _radiusBottomRight_decorators = [serialize()];
454
+ _highlightColor_decorators = [serialize()];
455
+ _highlightWidth_decorators = [serialize()];
456
+ _iridescenceIntensity_decorators = [serialize()];
457
+ _iridescenceEdgeIntensity_decorators = [serialize()];
458
+ _iridescenceTint_decorators = [serialize()];
459
+ _fadeOut_decorators = [serialize()];
460
+ _gradientColor_decorators = [serialize()];
461
+ _topLeftGradientColor_decorators = [serialize()];
462
+ _topRightGradientColor_decorators = [serialize()];
463
+ _bottomLeftGradientColor_decorators = [serialize()];
464
+ _bottomRightGradientColor_decorators = [serialize()];
465
+ _edgeWidth_decorators = [serialize()];
466
+ _edgePower_decorators = [serialize()];
467
+ _edgeLineGradientBlend_decorators = [serialize()];
468
+ __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);
469
+ __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);
470
+ __esDecorate(null, null, _absoluteSizes_decorators, { kind: "field", name: "absoluteSizes", static: false, private: false, access: { has: obj => "absoluteSizes" in obj, get: obj => obj.absoluteSizes, set: (obj, value) => { obj.absoluteSizes = value; } }, metadata: _metadata }, _absoluteSizes_initializers, _absoluteSizes_extraInitializers);
471
+ __esDecorate(null, null, _baseColor_decorators, { kind: "field", name: "baseColor", static: false, private: false, access: { has: obj => "baseColor" in obj, get: obj => obj.baseColor, set: (obj, value) => { obj.baseColor = value; } }, metadata: _metadata }, _baseColor_initializers, _baseColor_extraInitializers);
472
+ __esDecorate(null, null, _lineColor_decorators, { kind: "field", name: "lineColor", static: false, private: false, access: { has: obj => "lineColor" in obj, get: obj => obj.lineColor, set: (obj, value) => { obj.lineColor = value; } }, metadata: _metadata }, _lineColor_initializers, _lineColor_extraInitializers);
473
+ __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);
474
+ __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);
475
+ __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);
476
+ __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);
477
+ __esDecorate(null, null, _highlightColor_decorators, { kind: "field", name: "highlightColor", static: false, private: false, access: { has: obj => "highlightColor" in obj, get: obj => obj.highlightColor, set: (obj, value) => { obj.highlightColor = value; } }, metadata: _metadata }, _highlightColor_initializers, _highlightColor_extraInitializers);
478
+ __esDecorate(null, null, _highlightWidth_decorators, { kind: "field", name: "highlightWidth", static: false, private: false, access: { has: obj => "highlightWidth" in obj, get: obj => obj.highlightWidth, set: (obj, value) => { obj.highlightWidth = value; } }, metadata: _metadata }, _highlightWidth_initializers, _highlightWidth_extraInitializers);
479
+ __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);
480
+ __esDecorate(null, null, _iridescenceEdgeIntensity_decorators, { kind: "field", name: "iridescenceEdgeIntensity", static: false, private: false, access: { has: obj => "iridescenceEdgeIntensity" in obj, get: obj => obj.iridescenceEdgeIntensity, set: (obj, value) => { obj.iridescenceEdgeIntensity = value; } }, metadata: _metadata }, _iridescenceEdgeIntensity_initializers, _iridescenceEdgeIntensity_extraInitializers);
481
+ __esDecorate(null, null, _iridescenceTint_decorators, { kind: "field", name: "iridescenceTint", static: false, private: false, access: { has: obj => "iridescenceTint" in obj, get: obj => obj.iridescenceTint, set: (obj, value) => { obj.iridescenceTint = value; } }, metadata: _metadata }, _iridescenceTint_initializers, _iridescenceTint_extraInitializers);
482
+ __esDecorate(null, null, _fadeOut_decorators, { kind: "field", name: "fadeOut", static: false, private: false, access: { has: obj => "fadeOut" in obj, get: obj => obj.fadeOut, set: (obj, value) => { obj.fadeOut = value; } }, metadata: _metadata }, _fadeOut_initializers, _fadeOut_extraInitializers);
483
+ __esDecorate(null, null, _gradientColor_decorators, { kind: "field", name: "gradientColor", static: false, private: false, access: { has: obj => "gradientColor" in obj, get: obj => obj.gradientColor, set: (obj, value) => { obj.gradientColor = value; } }, metadata: _metadata }, _gradientColor_initializers, _gradientColor_extraInitializers);
484
+ __esDecorate(null, null, _topLeftGradientColor_decorators, { kind: "field", name: "topLeftGradientColor", static: false, private: false, access: { has: obj => "topLeftGradientColor" in obj, get: obj => obj.topLeftGradientColor, set: (obj, value) => { obj.topLeftGradientColor = value; } }, metadata: _metadata }, _topLeftGradientColor_initializers, _topLeftGradientColor_extraInitializers);
485
+ __esDecorate(null, null, _topRightGradientColor_decorators, { kind: "field", name: "topRightGradientColor", static: false, private: false, access: { has: obj => "topRightGradientColor" in obj, get: obj => obj.topRightGradientColor, set: (obj, value) => { obj.topRightGradientColor = value; } }, metadata: _metadata }, _topRightGradientColor_initializers, _topRightGradientColor_extraInitializers);
486
+ __esDecorate(null, null, _bottomLeftGradientColor_decorators, { kind: "field", name: "bottomLeftGradientColor", static: false, private: false, access: { has: obj => "bottomLeftGradientColor" in obj, get: obj => obj.bottomLeftGradientColor, set: (obj, value) => { obj.bottomLeftGradientColor = value; } }, metadata: _metadata }, _bottomLeftGradientColor_initializers, _bottomLeftGradientColor_extraInitializers);
487
+ __esDecorate(null, null, _bottomRightGradientColor_decorators, { kind: "field", name: "bottomRightGradientColor", static: false, private: false, access: { has: obj => "bottomRightGradientColor" in obj, get: obj => obj.bottomRightGradientColor, set: (obj, value) => { obj.bottomRightGradientColor = value; } }, metadata: _metadata }, _bottomRightGradientColor_initializers, _bottomRightGradientColor_extraInitializers);
488
+ __esDecorate(null, null, _edgeWidth_decorators, { kind: "field", name: "edgeWidth", static: false, private: false, access: { has: obj => "edgeWidth" in obj, get: obj => obj.edgeWidth, set: (obj, value) => { obj.edgeWidth = value; } }, metadata: _metadata }, _edgeWidth_initializers, _edgeWidth_extraInitializers);
489
+ __esDecorate(null, null, _edgePower_decorators, { kind: "field", name: "edgePower", static: false, private: false, access: { has: obj => "edgePower" in obj, get: obj => obj.edgePower, set: (obj, value) => { obj.edgePower = value; } }, metadata: _metadata }, _edgePower_initializers, _edgePower_extraInitializers);
490
+ __esDecorate(null, null, _edgeLineGradientBlend_decorators, { kind: "field", name: "edgeLineGradientBlend", static: false, private: false, access: { has: obj => "edgeLineGradientBlend" in obj, get: obj => obj.edgeLineGradientBlend, set: (obj, value) => { obj.edgeLineGradientBlend = value; } }, metadata: _metadata }, _edgeLineGradientBlend_initializers, _edgeLineGradientBlend_extraInitializers);
491
+ if (_metadata) Object.defineProperty(_a, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
492
+ })(),
493
+ /**
494
+ * URL pointing to the texture used to define the coloring for the Iridescent Map effect.
495
+ */
496
+ _a.IRIDESCENT_MAP_TEXTURE_URL = "https://assets.babylonjs.com/core/MRTK/MRDL/mrtk-mrdl-backplate-iridescence.png",
497
+ _a;
498
+ })();
499
+ export { MRDLBackplateMaterial };
440
500
  let _Registered = false;
441
501
  /**
442
502
  * Registers the MRDLBackplateMaterial class with the type store for serialization support.