@babylonjs/gui 9.12.1 → 9.14.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 (283) hide show
  1. package/2D/FrameGraph/pure.d.ts +2 -0
  2. package/2D/FrameGraph/pure.js +3 -0
  3. package/2D/FrameGraph/pure.js.map +1 -0
  4. package/2D/FrameGraph/renderGraphGUIBlock.d.ts +3 -41
  5. package/2D/FrameGraph/renderGraphGUIBlock.js +5 -64
  6. package/2D/FrameGraph/renderGraphGUIBlock.js.map +1 -1
  7. package/2D/FrameGraph/renderGraphGUIBlock.pure.d.ts +48 -0
  8. package/2D/FrameGraph/renderGraphGUIBlock.pure.js +78 -0
  9. package/2D/FrameGraph/renderGraphGUIBlock.pure.js.map +1 -0
  10. package/2D/controls/button.d.ts +3 -107
  11. package/2D/controls/button.js +5 -243
  12. package/2D/controls/button.js.map +1 -1
  13. package/2D/controls/button.pure.d.ts +114 -0
  14. package/2D/controls/button.pure.js +257 -0
  15. package/2D/controls/button.pure.js.map +1 -0
  16. package/2D/controls/checkbox.d.ts +3 -51
  17. package/2D/controls/checkbox.js +5 -161
  18. package/2D/controls/checkbox.js.map +1 -1
  19. package/2D/controls/checkbox.pure.d.ts +58 -0
  20. package/2D/controls/checkbox.pure.js +175 -0
  21. package/2D/controls/checkbox.pure.js.map +1 -0
  22. package/2D/controls/colorpicker.d.ts +5 -101
  23. package/2D/controls/colorpicker.js +7 -1394
  24. package/2D/controls/colorpicker.js.map +1 -1
  25. package/2D/controls/colorpicker.pure.d.ts +106 -0
  26. package/2D/controls/colorpicker.pure.js +1406 -0
  27. package/2D/controls/colorpicker.pure.js.map +1 -0
  28. package/2D/controls/container.d.ts +3 -177
  29. package/2D/controls/container.js +5 -615
  30. package/2D/controls/container.js.map +1 -1
  31. package/2D/controls/container.pure.d.ts +184 -0
  32. package/2D/controls/container.pure.js +629 -0
  33. package/2D/controls/container.pure.js.map +1 -0
  34. package/2D/controls/control.d.ts +3 -944
  35. package/2D/controls/control.js +5 -2457
  36. package/2D/controls/control.js.map +1 -1
  37. package/2D/controls/control.pure.d.ts +951 -0
  38. package/2D/controls/control.pure.js +2471 -0
  39. package/2D/controls/control.pure.js.map +1 -0
  40. package/2D/controls/displayGrid.d.ts +5 -53
  41. package/2D/controls/displayGrid.js +7 -201
  42. package/2D/controls/displayGrid.js.map +1 -1
  43. package/2D/controls/displayGrid.pure.d.ts +58 -0
  44. package/2D/controls/displayGrid.pure.js +213 -0
  45. package/2D/controls/displayGrid.pure.js.map +1 -0
  46. package/2D/controls/ellipse.d.ts +5 -25
  47. package/2D/controls/ellipse.js +7 -92
  48. package/2D/controls/ellipse.js.map +1 -1
  49. package/2D/controls/ellipse.pure.d.ts +30 -0
  50. package/2D/controls/ellipse.pure.js +104 -0
  51. package/2D/controls/ellipse.pure.js.map +1 -0
  52. package/2D/controls/focusableButton.d.ts +3 -15
  53. package/2D/controls/focusableButton.js +5 -22
  54. package/2D/controls/focusableButton.js.map +1 -1
  55. package/2D/controls/focusableButton.pure.d.ts +22 -0
  56. package/2D/controls/focusableButton.pure.js +36 -0
  57. package/2D/controls/focusableButton.pure.js.map +1 -0
  58. package/2D/controls/gradient/LinearGradient.d.ts +3 -43
  59. package/2D/controls/gradient/LinearGradient.js +5 -70
  60. package/2D/controls/gradient/LinearGradient.js.map +1 -1
  61. package/2D/controls/gradient/LinearGradient.pure.d.ts +50 -0
  62. package/2D/controls/gradient/LinearGradient.pure.js +84 -0
  63. package/2D/controls/gradient/LinearGradient.pure.js.map +1 -0
  64. package/2D/controls/gradient/RadialGradient.d.ts +3 -51
  65. package/2D/controls/gradient/RadialGradient.js +5 -86
  66. package/2D/controls/gradient/RadialGradient.js.map +1 -1
  67. package/2D/controls/gradient/RadialGradient.pure.d.ts +58 -0
  68. package/2D/controls/gradient/RadialGradient.pure.js +100 -0
  69. package/2D/controls/gradient/RadialGradient.pure.js.map +1 -0
  70. package/2D/controls/gradient/pure.d.ts +3 -0
  71. package/2D/controls/gradient/pure.js +4 -0
  72. package/2D/controls/gradient/pure.js.map +1 -0
  73. package/2D/controls/grid.d.ts +3 -149
  74. package/2D/controls/grid.js +5 -525
  75. package/2D/controls/grid.js.map +1 -1
  76. package/2D/controls/grid.pure.d.ts +156 -0
  77. package/2D/controls/grid.pure.js +539 -0
  78. package/2D/controls/grid.pure.js.map +1 -0
  79. package/2D/controls/image.d.ts +3 -226
  80. package/2D/controls/image.js +5 -913
  81. package/2D/controls/image.js.map +1 -1
  82. package/2D/controls/image.pure.d.ts +233 -0
  83. package/2D/controls/image.pure.js +927 -0
  84. package/2D/controls/image.pure.js.map +1 -0
  85. package/2D/controls/inputPassword.d.ts +3 -7
  86. package/2D/controls/inputPassword.js +5 -19
  87. package/2D/controls/inputPassword.js.map +1 -1
  88. package/2D/controls/inputPassword.pure.d.ts +14 -0
  89. package/2D/controls/inputPassword.pure.js +33 -0
  90. package/2D/controls/inputPassword.pure.js.map +1 -0
  91. package/2D/controls/inputText.d.ts +3 -202
  92. package/2D/controls/inputText.js +5 -1050
  93. package/2D/controls/inputText.js.map +1 -1
  94. package/2D/controls/inputText.pure.d.ts +209 -0
  95. package/2D/controls/inputText.pure.js +1064 -0
  96. package/2D/controls/inputText.pure.js.map +1 -0
  97. package/2D/controls/inputTextArea.d.ts +3 -140
  98. package/2D/controls/inputTextArea.js +5 -1023
  99. package/2D/controls/inputTextArea.js.map +1 -1
  100. package/2D/controls/inputTextArea.pure.d.ts +147 -0
  101. package/2D/controls/inputTextArea.pure.js +1037 -0
  102. package/2D/controls/inputTextArea.pure.js.map +1 -0
  103. package/2D/controls/line.d.ts +5 -74
  104. package/2D/controls/line.js +7 -234
  105. package/2D/controls/line.js.map +1 -1
  106. package/2D/controls/line.pure.d.ts +79 -0
  107. package/2D/controls/line.pure.js +246 -0
  108. package/2D/controls/line.pure.js.map +1 -0
  109. package/2D/controls/multiLine.d.ts +3 -73
  110. package/2D/controls/multiLine.js +5 -234
  111. package/2D/controls/multiLine.js.map +1 -1
  112. package/2D/controls/multiLine.pure.d.ts +80 -0
  113. package/2D/controls/multiLine.pure.js +248 -0
  114. package/2D/controls/multiLine.pure.js.map +1 -0
  115. package/2D/controls/pure.d.ts +38 -0
  116. package/2D/controls/pure.js +39 -0
  117. package/2D/controls/pure.js.map +1 -0
  118. package/2D/controls/radioButton.d.ts +3 -47
  119. package/2D/controls/radioButton.js +5 -182
  120. package/2D/controls/radioButton.js.map +1 -1
  121. package/2D/controls/radioButton.pure.d.ts +54 -0
  122. package/2D/controls/radioButton.pure.js +196 -0
  123. package/2D/controls/radioButton.pure.js.map +1 -0
  124. package/2D/controls/rectangle.d.ts +5 -43
  125. package/2D/controls/rectangle.js +7 -205
  126. package/2D/controls/rectangle.js.map +1 -1
  127. package/2D/controls/rectangle.pure.d.ts +48 -0
  128. package/2D/controls/rectangle.pure.js +217 -0
  129. package/2D/controls/rectangle.pure.js.map +1 -0
  130. package/2D/controls/scrollViewers/pure.d.ts +2 -0
  131. package/2D/controls/scrollViewers/pure.js +3 -0
  132. package/2D/controls/scrollViewers/pure.js.map +1 -0
  133. package/2D/controls/scrollViewers/scrollViewer.d.ts +3 -176
  134. package/2D/controls/scrollViewers/scrollViewer.js +5 -584
  135. package/2D/controls/scrollViewers/scrollViewer.js.map +1 -1
  136. package/2D/controls/scrollViewers/scrollViewer.pure.d.ts +183 -0
  137. package/2D/controls/scrollViewers/scrollViewer.pure.js +598 -0
  138. package/2D/controls/scrollViewers/scrollViewer.pure.js.map +1 -0
  139. package/2D/controls/sliders/imageBasedSlider.d.ts +3 -45
  140. package/2D/controls/sliders/imageBasedSlider.js +5 -165
  141. package/2D/controls/sliders/imageBasedSlider.js.map +1 -1
  142. package/2D/controls/sliders/imageBasedSlider.pure.d.ts +52 -0
  143. package/2D/controls/sliders/imageBasedSlider.pure.js +179 -0
  144. package/2D/controls/sliders/imageBasedSlider.pure.js.map +1 -0
  145. package/2D/controls/sliders/pure.d.ts +4 -0
  146. package/2D/controls/sliders/pure.js +5 -0
  147. package/2D/controls/sliders/pure.js.map +1 -0
  148. package/2D/controls/sliders/scrollBar.d.ts +3 -48
  149. package/2D/controls/sliders/scrollBar.js +5 -170
  150. package/2D/controls/sliders/scrollBar.js.map +1 -1
  151. package/2D/controls/sliders/scrollBar.pure.d.ts +55 -0
  152. package/2D/controls/sliders/scrollBar.pure.js +184 -0
  153. package/2D/controls/sliders/scrollBar.pure.js.map +1 -0
  154. package/2D/controls/sliders/slider.d.ts +3 -44
  155. package/2D/controls/sliders/slider.js +5 -278
  156. package/2D/controls/sliders/slider.js.map +1 -1
  157. package/2D/controls/sliders/slider.pure.d.ts +51 -0
  158. package/2D/controls/sliders/slider.pure.js +292 -0
  159. package/2D/controls/sliders/slider.pure.js.map +1 -0
  160. package/2D/controls/stackPanel.d.ts +3 -62
  161. package/2D/controls/stackPanel.js +5 -243
  162. package/2D/controls/stackPanel.js.map +1 -1
  163. package/2D/controls/stackPanel.pure.d.ts +69 -0
  164. package/2D/controls/stackPanel.pure.js +257 -0
  165. package/2D/controls/stackPanel.pure.js.map +1 -0
  166. package/2D/controls/statics.d.ts +3 -4
  167. package/2D/controls/statics.js +5 -47
  168. package/2D/controls/statics.js.map +1 -1
  169. package/2D/controls/statics.pure.d.ts +11 -0
  170. package/2D/controls/statics.pure.js +61 -0
  171. package/2D/controls/statics.pure.js.map +1 -0
  172. package/2D/controls/textBlock.d.ts +3 -217
  173. package/2D/controls/textBlock.js +5 -676
  174. package/2D/controls/textBlock.js.map +1 -1
  175. package/2D/controls/textBlock.pure.d.ts +224 -0
  176. package/2D/controls/textBlock.pure.js +690 -0
  177. package/2D/controls/textBlock.pure.js.map +1 -0
  178. package/2D/controls/toggleButton.d.ts +3 -91
  179. package/2D/controls/toggleButton.js +5 -226
  180. package/2D/controls/toggleButton.js.map +1 -1
  181. package/2D/controls/toggleButton.pure.d.ts +98 -0
  182. package/2D/controls/toggleButton.pure.js +240 -0
  183. package/2D/controls/toggleButton.pure.js.map +1 -0
  184. package/2D/controls/virtualKeyboard.d.ts +3 -100
  185. package/2D/controls/virtualKeyboard.js +5 -272
  186. package/2D/controls/virtualKeyboard.js.map +1 -1
  187. package/2D/controls/virtualKeyboard.pure.d.ts +107 -0
  188. package/2D/controls/virtualKeyboard.pure.js +286 -0
  189. package/2D/controls/virtualKeyboard.pure.js.map +1 -0
  190. package/2D/pure.d.ts +13 -0
  191. package/2D/pure.js +15 -0
  192. package/2D/pure.js.map +1 -0
  193. package/3D/controls/pure.d.ts +23 -0
  194. package/3D/controls/pure.js +24 -0
  195. package/3D/controls/pure.js.map +1 -0
  196. package/3D/gizmos/pure.d.ts +3 -0
  197. package/3D/gizmos/pure.js +4 -0
  198. package/3D/gizmos/pure.js.map +1 -0
  199. package/3D/materials/fluent/fluentMaterial.d.ts +5 -100
  200. package/3D/materials/fluent/fluentMaterial.js +7 -305
  201. package/3D/materials/fluent/fluentMaterial.js.map +1 -1
  202. package/3D/materials/fluent/fluentMaterial.pure.d.ts +105 -0
  203. package/3D/materials/fluent/fluentMaterial.pure.js +317 -0
  204. package/3D/materials/fluent/fluentMaterial.pure.js.map +1 -0
  205. package/3D/materials/fluent/pure.d.ts +2 -0
  206. package/3D/materials/fluent/pure.js +3 -0
  207. package/3D/materials/fluent/pure.js.map +1 -0
  208. package/3D/materials/fluentBackplate/fluentBackplateMaterial.d.ts +5 -164
  209. package/3D/materials/fluentBackplate/fluentBackplateMaterial.js +7 -488
  210. package/3D/materials/fluentBackplate/fluentBackplateMaterial.js.map +1 -1
  211. package/3D/materials/fluentBackplate/fluentBackplateMaterial.pure.d.ts +169 -0
  212. package/3D/materials/fluentBackplate/fluentBackplateMaterial.pure.js +500 -0
  213. package/3D/materials/fluentBackplate/fluentBackplateMaterial.pure.js.map +1 -0
  214. package/3D/materials/fluentBackplate/pure.d.ts +2 -0
  215. package/3D/materials/fluentBackplate/pure.js +3 -0
  216. package/3D/materials/fluentBackplate/pure.js.map +1 -0
  217. package/3D/materials/fluentButton/fluentButtonMaterial.d.ts +5 -200
  218. package/3D/materials/fluentButton/fluentButtonMaterial.js +7 -563
  219. package/3D/materials/fluentButton/fluentButtonMaterial.js.map +1 -1
  220. package/3D/materials/fluentButton/fluentButtonMaterial.pure.d.ts +205 -0
  221. package/3D/materials/fluentButton/fluentButtonMaterial.pure.js +575 -0
  222. package/3D/materials/fluentButton/fluentButtonMaterial.pure.js.map +1 -0
  223. package/3D/materials/fluentButton/pure.d.ts +2 -0
  224. package/3D/materials/fluentButton/pure.js +3 -0
  225. package/3D/materials/fluentButton/pure.js.map +1 -0
  226. package/3D/materials/handle/handleMaterial.d.ts +5 -66
  227. package/3D/materials/handle/handleMaterial.js +5 -118
  228. package/3D/materials/handle/handleMaterial.js.map +1 -1
  229. package/3D/materials/handle/handleMaterial.pure.d.ts +66 -0
  230. package/3D/materials/handle/handleMaterial.pure.js +119 -0
  231. package/3D/materials/handle/handleMaterial.pure.js.map +1 -0
  232. package/3D/materials/handle/pure.d.ts +2 -0
  233. package/3D/materials/handle/pure.js +3 -0
  234. package/3D/materials/handle/pure.js.map +1 -0
  235. package/3D/materials/mrdl/mrdlBackglowMaterial.d.ts +5 -85
  236. package/3D/materials/mrdl/mrdlBackglowMaterial.js +7 -299
  237. package/3D/materials/mrdl/mrdlBackglowMaterial.js.map +1 -1
  238. package/3D/materials/mrdl/mrdlBackglowMaterial.pure.d.ts +90 -0
  239. package/3D/materials/mrdl/mrdlBackglowMaterial.pure.js +311 -0
  240. package/3D/materials/mrdl/mrdlBackglowMaterial.pure.js.map +1 -0
  241. package/3D/materials/mrdl/mrdlBackplateMaterial.d.ts +5 -145
  242. package/3D/materials/mrdl/mrdlBackplateMaterial.js +7 -433
  243. package/3D/materials/mrdl/mrdlBackplateMaterial.js.map +1 -1
  244. package/3D/materials/mrdl/mrdlBackplateMaterial.pure.d.ts +157 -0
  245. package/3D/materials/mrdl/mrdlBackplateMaterial.pure.js +452 -0
  246. package/3D/materials/mrdl/mrdlBackplateMaterial.pure.js.map +1 -0
  247. package/3D/materials/mrdl/mrdlFrontplateMaterial.d.ts +5 -183
  248. package/3D/materials/mrdl/mrdlFrontplateMaterial.js +7 -532
  249. package/3D/materials/mrdl/mrdlFrontplateMaterial.js.map +1 -1
  250. package/3D/materials/mrdl/mrdlFrontplateMaterial.pure.d.ts +188 -0
  251. package/3D/materials/mrdl/mrdlFrontplateMaterial.pure.js +544 -0
  252. package/3D/materials/mrdl/mrdlFrontplateMaterial.pure.js.map +1 -0
  253. package/3D/materials/mrdl/mrdlInnerquadMaterial.d.ts +5 -54
  254. package/3D/materials/mrdl/mrdlInnerquadMaterial.js +7 -227
  255. package/3D/materials/mrdl/mrdlInnerquadMaterial.js.map +1 -1
  256. package/3D/materials/mrdl/mrdlInnerquadMaterial.pure.d.ts +59 -0
  257. package/3D/materials/mrdl/mrdlInnerquadMaterial.pure.js +239 -0
  258. package/3D/materials/mrdl/mrdlInnerquadMaterial.pure.js.map +1 -0
  259. package/3D/materials/mrdl/mrdlSliderBarMaterial.d.ts +5 -334
  260. package/3D/materials/mrdl/mrdlSliderBarMaterial.js +7 -855
  261. package/3D/materials/mrdl/mrdlSliderBarMaterial.js.map +1 -1
  262. package/3D/materials/mrdl/mrdlSliderBarMaterial.pure.d.ts +346 -0
  263. package/3D/materials/mrdl/mrdlSliderBarMaterial.pure.js +874 -0
  264. package/3D/materials/mrdl/mrdlSliderBarMaterial.pure.js.map +1 -0
  265. package/3D/materials/mrdl/mrdlSliderThumbMaterial.d.ts +5 -334
  266. package/3D/materials/mrdl/mrdlSliderThumbMaterial.js +7 -855
  267. package/3D/materials/mrdl/mrdlSliderThumbMaterial.js.map +1 -1
  268. package/3D/materials/mrdl/mrdlSliderThumbMaterial.pure.d.ts +346 -0
  269. package/3D/materials/mrdl/mrdlSliderThumbMaterial.pure.js +874 -0
  270. package/3D/materials/mrdl/mrdlSliderThumbMaterial.pure.js.map +1 -0
  271. package/3D/materials/mrdl/pure.d.ts +7 -0
  272. package/3D/materials/mrdl/pure.js +8 -0
  273. package/3D/materials/mrdl/pure.js.map +1 -0
  274. package/3D/materials/pure.d.ts +6 -0
  275. package/3D/materials/pure.js +8 -0
  276. package/3D/materials/pure.js.map +1 -0
  277. package/3D/pure.d.ts +6 -0
  278. package/3D/pure.js +8 -0
  279. package/3D/pure.js.map +1 -0
  280. package/package.json +50 -3
  281. package/pure.d.ts +3 -0
  282. package/pure.js +5 -0
  283. package/pure.js.map +1 -0
@@ -0,0 +1,544 @@
1
+ import { __decorate } from "@babylonjs/core/tslib.es6.js";
2
+ import { Vector3 } from "@babylonjs/core/Maths/math.vector.pure.js";
3
+ import { Color4 } from "@babylonjs/core/Maths/math.color.pure.js";
4
+ import { Constants } from "@babylonjs/core/Engines/constants.js";
5
+ import { EffectFallbacks } from "@babylonjs/core/Materials/effectFallbacks.js";
6
+ import { MaterialDefines } from "@babylonjs/core/Materials/materialDefines.js";
7
+ import { PushMaterial } from "@babylonjs/core/Materials/pushMaterial.js";
8
+ import { RegisterClass } from "@babylonjs/core/Misc/typeStore.js";
9
+ import { serialize } from "@babylonjs/core/Misc/decorators.js";
10
+ import { SerializationHelper } from "@babylonjs/core/Misc/decorators.serialization.js";
11
+ import { VertexBuffer } from "@babylonjs/core/Buffers/buffer.pure.js";
12
+ import { Texture } from "@babylonjs/core/Materials/Textures/texture.pure.js";
13
+ import { HandleFallbacksForShadows, PrepareAttributesForInstances, PrepareDefinesForAttributes, PrepareUniformsAndSamplersList } from "@babylonjs/core/Materials/materialHelper.functions.js";
14
+ /** @hidden */
15
+ class MRDLFrontplateMaterialDefines extends MaterialDefines {
16
+ constructor() {
17
+ super();
18
+ /**
19
+ * Sets default value for "SMOOTH_EDGES"
20
+ */
21
+ this.SMOOTH_EDGES = true;
22
+ this._needNormals = true;
23
+ this._needUVs = true;
24
+ this.rebuild();
25
+ }
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) {
199
+ return true;
200
+ }
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");
224
+ }
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);
231
+ }
232
+ if (defines.UV1) {
233
+ attribs.push(VertexBuffer.UVKind);
234
+ }
235
+ if (defines.UV2) {
236
+ attribs.push(VertexBuffer.UV2Kind);
237
+ }
238
+ if (defines.VERTEXCOLOR) {
239
+ attribs.push(VertexBuffer.ColorKind);
240
+ }
241
+ if (defines.TANGENT) {
242
+ attribs.push(VertexBuffer.TangentKind);
243
+ }
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
+ }, engine), defines);
319
+ }
320
+ if (!subMesh.effect || !subMesh.effect.isReady()) {
321
+ return false;
322
+ }
323
+ defines._renderId = scene.getRenderId();
324
+ drawWrapper._wasPreviouslyReady = true;
325
+ return true;
326
+ }
327
+ bindForSubMesh(world, mesh, subMesh) {
328
+ const scene = this.getScene();
329
+ const defines = subMesh.materialDefines;
330
+ if (!defines) {
331
+ return;
332
+ }
333
+ const effect = subMesh.effect;
334
+ if (!effect) {
335
+ return;
336
+ }
337
+ this._activeEffect = effect;
338
+ // Matrices
339
+ this.bindOnlyWorldMatrix(world);
340
+ this._activeEffect.setMatrix("viewProjection", scene.getTransformMatrix());
341
+ this._activeEffect.setVector3("cameraPosition", scene.activeCamera.position);
342
+ // "Round Rect"
343
+ this._activeEffect.setFloat("_Radius_", this.radius);
344
+ this._activeEffect.setFloat("_Line_Width_", this.lineWidth);
345
+ this._activeEffect.setFloat("_Relative_To_Height_", this.relativeToHeight ? 1.0 : 0.0);
346
+ this._activeEffect.setFloat("_Filter_Width_", this._filterWidth);
347
+ this._activeEffect.setDirectColor4("_Edge_Color_", this.edgeColor);
348
+ // "Fade"
349
+ this._activeEffect.setFloat("_Fade_Out_", this.fadeOut);
350
+ // "Blob"
351
+ this._activeEffect.setFloat("_Blob_Enable_", this.blobEnable ? 1.0 : 0.0);
352
+ this._activeEffect.setVector3("_Blob_Position_", this.blobPosition);
353
+ this._activeEffect.setFloat("_Blob_Intensity_", this.blobIntensity);
354
+ this._activeEffect.setFloat("_Blob_Near_Size_", this.blobNearSize);
355
+ this._activeEffect.setFloat("_Blob_Far_Size_", this.blobFarSize);
356
+ this._activeEffect.setFloat("_Blob_Near_Distance_", this.blobNearDistance);
357
+ this._activeEffect.setFloat("_Blob_Far_Distance_", this.blobFarDistance);
358
+ this._activeEffect.setFloat("_Blob_Fade_Length_", this.blobFadeLength);
359
+ this._activeEffect.setFloat("_Blob_Inner_Fade_", this.blobInnerFade);
360
+ this._activeEffect.setFloat("_Blob_Pulse_", this.blobPulse);
361
+ this._activeEffect.setFloat("_Blob_Fade_", this.blobFade);
362
+ this._activeEffect.setFloat("_Blob_Pulse_Max_Size_", this.blobPulseMaxSize);
363
+ // "Blob 2"
364
+ this._activeEffect.setFloat("_Blob_Enable_2_", this.blobEnable2 ? 1.0 : 0.0);
365
+ this._activeEffect.setVector3("_Blob_Position_2_", this.blobPosition2);
366
+ this._activeEffect.setFloat("_Blob_Near_Size_2_", this.blobNearSize2);
367
+ this._activeEffect.setFloat("_Blob_Inner_Fade_2_", this.blobInnerFade2);
368
+ this._activeEffect.setFloat("_Blob_Pulse_2_", this.blobPulse2);
369
+ this._activeEffect.setFloat("_Blob_Fade_2_", this.blobFade2);
370
+ // "Gaze"
371
+ this._activeEffect.setFloat("_Gaze_Intensity_", this.gazeIntensity);
372
+ this._activeEffect.setFloat("_Gaze_Focus_", this.gazeFocus);
373
+ // "Blob Texture"
374
+ this._activeEffect.setTexture("_Blob_Texture_", this._blobTexture);
375
+ // "Selection"
376
+ this._activeEffect.setFloat("_Selection_Fuzz_", this.selectionFuzz);
377
+ this._activeEffect.setFloat("_Selected_", this.selected);
378
+ this._activeEffect.setFloat("_Selection_Fade_", this.selectionFade);
379
+ this._activeEffect.setFloat("_Selection_Fade_Size_", this.selectionFadeSize);
380
+ this._activeEffect.setFloat("_Selected_Distance_", this.selectedDistance);
381
+ this._activeEffect.setFloat("_Selected_Fade_Length_", this.selectedFadeLength);
382
+ // "Proximity"
383
+ this._activeEffect.setFloat("_Proximity_Max_Intensity_", this.proximityMaxIntensity);
384
+ this._activeEffect.setFloat("_Proximity_Far_Distance_", this.proximityFarDistance);
385
+ this._activeEffect.setFloat("_Proximity_Near_Radius_", this.proximityNearRadius);
386
+ this._activeEffect.setFloat("_Proximity_Anisotropy_", this.proximityAnisotropy);
387
+ // "Global"
388
+ this._activeEffect.setFloat("_Use_Global_Left_Index_", this.useGlobalLeftIndex ? 1.0 : 0.0);
389
+ this._activeEffect.setFloat("_Use_Global_Right_Index_", this.useGlobalRightIndex ? 1.0 : 0.0);
390
+ // "Antialiasing"
391
+ //define SMOOTH_EDGES true;
392
+ this._afterBind(mesh, this._activeEffect, subMesh);
393
+ }
394
+ /**
395
+ * Get the list of animatables in the material.
396
+ * @returns the list of animatables object used in the material
397
+ */
398
+ getAnimatables() {
399
+ return [];
400
+ }
401
+ dispose(forceDisposeEffect) {
402
+ super.dispose(forceDisposeEffect);
403
+ }
404
+ clone(name) {
405
+ return SerializationHelper.Clone(() => new MRDLFrontplateMaterial(name, this.getScene()), this);
406
+ }
407
+ serialize() {
408
+ const serializationObject = SerializationHelper.Serialize(this);
409
+ serializationObject.customType = "BABYLON.MRDLFrontplateMaterial";
410
+ return serializationObject;
411
+ }
412
+ getClassName() {
413
+ return "MRDLFrontplateMaterial";
414
+ }
415
+ // Statics
416
+ static Parse(source, scene, rootUrl) {
417
+ return SerializationHelper.Parse(() => new MRDLFrontplateMaterial(source.name, scene), source, scene, rootUrl);
418
+ }
419
+ }
420
+ /**
421
+ * URL pointing to the texture used to define the coloring for the BLOB.
422
+ */
423
+ MRDLFrontplateMaterial.BLOB_TEXTURE_URL = "";
424
+ __decorate([
425
+ serialize()
426
+ ], MRDLFrontplateMaterial.prototype, "radius", void 0);
427
+ __decorate([
428
+ serialize()
429
+ ], MRDLFrontplateMaterial.prototype, "lineWidth", void 0);
430
+ __decorate([
431
+ serialize()
432
+ ], MRDLFrontplateMaterial.prototype, "relativeToHeight", void 0);
433
+ __decorate([
434
+ serialize()
435
+ ], MRDLFrontplateMaterial.prototype, "edgeColor", void 0);
436
+ __decorate([
437
+ serialize()
438
+ ], MRDLFrontplateMaterial.prototype, "blobEnable", void 0);
439
+ __decorate([
440
+ serialize()
441
+ ], MRDLFrontplateMaterial.prototype, "blobPosition", void 0);
442
+ __decorate([
443
+ serialize()
444
+ ], MRDLFrontplateMaterial.prototype, "blobIntensity", void 0);
445
+ __decorate([
446
+ serialize()
447
+ ], MRDLFrontplateMaterial.prototype, "blobNearSize", void 0);
448
+ __decorate([
449
+ serialize()
450
+ ], MRDLFrontplateMaterial.prototype, "blobFarSize", void 0);
451
+ __decorate([
452
+ serialize()
453
+ ], MRDLFrontplateMaterial.prototype, "blobNearDistance", void 0);
454
+ __decorate([
455
+ serialize()
456
+ ], MRDLFrontplateMaterial.prototype, "blobFarDistance", void 0);
457
+ __decorate([
458
+ serialize()
459
+ ], MRDLFrontplateMaterial.prototype, "blobFadeLength", void 0);
460
+ __decorate([
461
+ serialize()
462
+ ], MRDLFrontplateMaterial.prototype, "blobInnerFade", void 0);
463
+ __decorate([
464
+ serialize()
465
+ ], MRDLFrontplateMaterial.prototype, "blobPulse", void 0);
466
+ __decorate([
467
+ serialize()
468
+ ], MRDLFrontplateMaterial.prototype, "blobFade", void 0);
469
+ __decorate([
470
+ serialize()
471
+ ], MRDLFrontplateMaterial.prototype, "blobPulseMaxSize", void 0);
472
+ __decorate([
473
+ serialize()
474
+ ], MRDLFrontplateMaterial.prototype, "blobEnable2", void 0);
475
+ __decorate([
476
+ serialize()
477
+ ], MRDLFrontplateMaterial.prototype, "blobPosition2", void 0);
478
+ __decorate([
479
+ serialize()
480
+ ], MRDLFrontplateMaterial.prototype, "blobNearSize2", void 0);
481
+ __decorate([
482
+ serialize()
483
+ ], MRDLFrontplateMaterial.prototype, "blobInnerFade2", void 0);
484
+ __decorate([
485
+ serialize()
486
+ ], MRDLFrontplateMaterial.prototype, "blobPulse2", void 0);
487
+ __decorate([
488
+ serialize()
489
+ ], MRDLFrontplateMaterial.prototype, "blobFade2", void 0);
490
+ __decorate([
491
+ serialize()
492
+ ], MRDLFrontplateMaterial.prototype, "gazeIntensity", void 0);
493
+ __decorate([
494
+ serialize()
495
+ ], MRDLFrontplateMaterial.prototype, "gazeFocus", void 0);
496
+ __decorate([
497
+ serialize()
498
+ ], MRDLFrontplateMaterial.prototype, "selectionFuzz", void 0);
499
+ __decorate([
500
+ serialize()
501
+ ], MRDLFrontplateMaterial.prototype, "selected", void 0);
502
+ __decorate([
503
+ serialize()
504
+ ], MRDLFrontplateMaterial.prototype, "selectionFade", void 0);
505
+ __decorate([
506
+ serialize()
507
+ ], MRDLFrontplateMaterial.prototype, "selectionFadeSize", void 0);
508
+ __decorate([
509
+ serialize()
510
+ ], MRDLFrontplateMaterial.prototype, "selectedDistance", void 0);
511
+ __decorate([
512
+ serialize()
513
+ ], MRDLFrontplateMaterial.prototype, "selectedFadeLength", void 0);
514
+ __decorate([
515
+ serialize()
516
+ ], MRDLFrontplateMaterial.prototype, "proximityMaxIntensity", void 0);
517
+ __decorate([
518
+ serialize()
519
+ ], MRDLFrontplateMaterial.prototype, "proximityFarDistance", void 0);
520
+ __decorate([
521
+ serialize()
522
+ ], MRDLFrontplateMaterial.prototype, "proximityNearRadius", void 0);
523
+ __decorate([
524
+ serialize()
525
+ ], MRDLFrontplateMaterial.prototype, "proximityAnisotropy", void 0);
526
+ __decorate([
527
+ serialize()
528
+ ], MRDLFrontplateMaterial.prototype, "useGlobalLeftIndex", void 0);
529
+ __decorate([
530
+ serialize()
531
+ ], MRDLFrontplateMaterial.prototype, "useGlobalRightIndex", void 0);
532
+ let _Registered = false;
533
+ /**
534
+ * Registers the MRDLFrontplateMaterial class with the type store for serialization support.
535
+ * Safe to call multiple times; only the first call has an effect.
536
+ */
537
+ export function RegisterMRDLFrontplateMaterial() {
538
+ if (_Registered) {
539
+ return;
540
+ }
541
+ _Registered = true;
542
+ RegisterClass("BABYLON.GUI.MRDLFrontplateMaterial", MRDLFrontplateMaterial);
543
+ }
544
+ //# sourceMappingURL=mrdlFrontplateMaterial.pure.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mrdlFrontplateMaterial.pure.js","sourceRoot":"","sources":["../../../../../../dev/gui/src/3D/materials/mrdl/mrdlFrontplateMaterial.pure.ts"],"names":[],"mappings":";AAKA,OAAO,EAAe,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAMnE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAC;AAE/D,OAAO,EAAE,yBAAyB,EAAE,6BAA6B,EAAE,2BAA2B,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAC;AAEhL,cAAc;AACd,MAAM,6BAA8B,SAAQ,eAAe;IAMvD;QACI,KAAK,EAAE,CAAC;QANZ;;WAEG;QACI,iBAAY,GAAG,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,SAAS,EAAE;2DACc;AAMnB;IADN,SAAS,EAAE;6DACgD;AAMrD;IADN,SAAS,EAAE;6DACiB;AAMtB;IADN,SAAS,EAAE;8DACgB;AAMrB;IADN,SAAS,EAAE;0DACY;AAMjB;IADN,SAAS,EAAE;yDACW;AAMhB;IADN,SAAS,EAAE;6DACe;AAMpB;IADN,SAAS,EAAE;yDACW;AAMhB;IADN,SAAS,EAAE;6DACe;AAMpB;IADN,SAAS,EAAE;wDACU;AAMf;IADN,SAAS,EAAE;6DACe;AAMpB;IADN,SAAS,EAAE;iEACmB;AAMxB;IADN,SAAS,EAAE;gEACmB;AAMxB;IADN,SAAS,EAAE;kEACqB;AAM1B;IADN,SAAS,EAAE;qEACwB;AAM7B;IADN,SAAS,EAAE;oEACuB;AAM5B;IADN,SAAS,EAAE;mEACuB;AAM5B;IADN,SAAS,EAAE;mEACqB;AAM1B;IADN,SAAS,EAAE;kEACqB;AAM1B;IADN,SAAS,EAAE;mEACsB;AA2TtC,IAAI,WAAW,GAAG,KAAK,CAAC;AACxB;;;GAGG;AACH,MAAM,UAAU,8BAA8B;IAC1C,IAAI,WAAW,EAAE,CAAC;QACd,OAAO;IACX,CAAC;IACD,WAAW,GAAG,IAAI,CAAC;IAEnB,aAAa,CAAC,oCAAoC,EAAE,sBAAsB,CAAC,CAAC;AAChF,CAAC","sourcesContent":["/* eslint-disable @typescript-eslint/naming-convention */\r\nimport { type AbstractMesh } from \"core/Meshes/abstractMesh.pure\";\r\nimport { type BaseTexture } from \"core/Materials/Textures/baseTexture\";\r\nimport { type IAnimatable } from \"core/Animations/animatable.interface\";\r\nimport { type IEffectCreationOptions } from \"core/Materials/effect\";\r\nimport { type Matrix, Vector3 } from \"core/Maths/math.vector.pure\";\r\nimport { type Mesh } from \"core/Meshes/mesh\";\r\nimport { type Nullable } from \"core/types\";\r\nimport { type Scene } from \"core/scene\";\r\nimport { type SubMesh } from \"core/Meshes/subMesh\";\r\n\r\nimport { Color4 } from \"core/Maths/math.color.pure\";\r\nimport { Constants } from \"core/Engines/constants\";\r\nimport { EffectFallbacks } from \"core/Materials/effectFallbacks\";\r\nimport { MaterialDefines } from \"core/Materials/materialDefines\";\r\nimport { PushMaterial } from \"core/Materials/pushMaterial\";\r\nimport { RegisterClass } from \"core/Misc/typeStore\";\r\nimport { serialize } from \"core/Misc/decorators\";\r\nimport { SerializationHelper } from \"core/Misc/decorators.serialization\";\r\nimport { VertexBuffer } from \"core/Buffers/buffer.pure\";\r\nimport { Texture } from \"core/Materials/Textures/texture.pure\";\r\n\r\nimport { HandleFallbacksForShadows, PrepareAttributesForInstances, PrepareDefinesForAttributes, PrepareUniformsAndSamplersList } from \"core/Materials/materialHelper.functions\";\r\n\r\n/** @hidden */\r\nclass MRDLFrontplateMaterialDefines extends MaterialDefines {\r\n /**\r\n * Sets default value for \"SMOOTH_EDGES\"\r\n */\r\n public SMOOTH_EDGES = true;\r\n\r\n constructor() {\r\n super();\r\n this._needNormals = true;\r\n this._needUVs = true;\r\n this.rebuild();\r\n }\r\n}\r\n\r\nexport class MRDLFrontplateMaterial extends PushMaterial {\r\n /**\r\n * Gets or sets the corner radius on the frontplate. If this value is changed, update the lineWidth to match.\r\n */\r\n @serialize()\r\n public radius = 0.12;\r\n\r\n /**\r\n * Gets or sets the line width of the frontplate.\r\n */\r\n @serialize()\r\n public lineWidth = 0.01;\r\n\r\n /**\r\n * Gets or sets whether the scale is relative to the frontplate height.\r\n */\r\n @serialize()\r\n public relativeToHeight = false;\r\n\r\n /** @hidden */\r\n public _filterWidth = 1.0;\r\n\r\n /**\r\n * Gets or sets the edge color of the frontplate.\r\n */\r\n @serialize()\r\n public edgeColor: Color4 = new Color4(0.53, 0.53, 0.53, 1);\r\n\r\n /**\r\n * Gets or sets whether to enable blob effects on the frontplate.\r\n */\r\n @serialize()\r\n public blobEnable = true;\r\n\r\n /**\r\n * Gets or sets the blob position on the frontplate.\r\n */\r\n @serialize()\r\n public blobPosition: Vector3 = new Vector3(100, 100, 100);\r\n\r\n /**\r\n * Gets or sets the blob intensity of the frontplate.\r\n */\r\n @serialize()\r\n public blobIntensity = 0.5;\r\n\r\n /**\r\n * Gets or sets the blob near size of the frontplate.\r\n */\r\n @serialize()\r\n public blobNearSize = 0.032;\r\n\r\n /**\r\n * Gets or sets the blob far size of the frontplate.\r\n */\r\n @serialize()\r\n public blobFarSize = 0.048;\r\n\r\n /**\r\n * Gets or sets the blob near distance of the frontplate.\r\n */\r\n @serialize()\r\n public blobNearDistance = 0.008;\r\n\r\n /**\r\n * Gets or sets the blob far distance of the frontplate.\r\n */\r\n @serialize()\r\n public blobFarDistance = 0.064;\r\n\r\n /**\r\n * Gets or sets the blob fade length of the frontplate.\r\n */\r\n @serialize()\r\n public blobFadeLength = 0.04;\r\n\r\n /**\r\n * Gets or sets the blob inner fade of the frontplate.\r\n */\r\n @serialize()\r\n public blobInnerFade = 0.01;\r\n\r\n /**\r\n * Gets or sets the blob pulse of the frontplate.\r\n */\r\n @serialize()\r\n public blobPulse = 0.0;\r\n\r\n /**\r\n * Gets or sets the blob fade effect on the frontplate.\r\n */\r\n @serialize()\r\n public blobFade = 1.0;\r\n\r\n /**\r\n * Gets or sets the maximum size of the blob pulse on the frontplate.\r\n */\r\n @serialize()\r\n public blobPulseMaxSize = 0.05;\r\n\r\n /**\r\n * Gets or sets whether to enable extra blob effects of the frontplate.\r\n */\r\n @serialize()\r\n public blobEnable2 = true;\r\n\r\n /**\r\n * Gets or sets blob2 position of the frontplate.\r\n */\r\n @serialize()\r\n public blobPosition2: Vector3 = new Vector3(10, 10.1, -0.6);\r\n\r\n /**\r\n * Gets or sets the blob2 near size of the frontplate.\r\n */\r\n @serialize()\r\n public blobNearSize2 = 0.008;\r\n\r\n /**\r\n * Gets or sets the blob2 inner fade of the frontplate.\r\n */\r\n @serialize()\r\n public blobInnerFade2 = 0.1;\r\n\r\n /**\r\n * Gets or sets the blob2 pulse of the frontplate.\r\n */\r\n @serialize()\r\n public blobPulse2 = 0.0;\r\n\r\n /**\r\n * Gets or sets the blob2 fade effect on the frontplate.\r\n */\r\n @serialize()\r\n public blobFade2 = 1.0;\r\n\r\n /**\r\n * Gets or sets the gaze intensity of the frontplate.\r\n */\r\n @serialize()\r\n public gazeIntensity = 0.8;\r\n\r\n /**\r\n * Gets or sets the gaze focus of the frontplate.\r\n */\r\n @serialize()\r\n public gazeFocus = 0.0;\r\n\r\n /**\r\n * Gets or sets the selection fuzz of the frontplate.\r\n */\r\n @serialize()\r\n public selectionFuzz = 0.5;\r\n\r\n /**\r\n * Gets or sets the fade intensity of the frontplate.\r\n */\r\n @serialize()\r\n public selected = 1.0;\r\n\r\n /**\r\n * Gets or sets the selection fade intensity of the frontplate.\r\n */\r\n @serialize()\r\n public selectionFade = 0.2;\r\n\r\n /**\r\n * Gets or sets the selection fade size of the frontplate.\r\n */\r\n @serialize()\r\n public selectionFadeSize = 0.0;\r\n\r\n /**\r\n * Gets or sets the selected distance of the frontplate.\r\n */\r\n @serialize()\r\n public selectedDistance = 0.08;\r\n\r\n /**\r\n * Gets or sets the selected fade length of the frontplate.\r\n */\r\n @serialize()\r\n public selectedFadeLength = 0.08;\r\n\r\n /**\r\n * Gets or sets the proximity maximum intensity of the frontplate.\r\n */\r\n @serialize()\r\n public proximityMaxIntensity = 0.45;\r\n\r\n /**\r\n * Gets or sets the proximity far distance of the frontplate.\r\n */\r\n @serialize()\r\n public proximityFarDistance = 0.16;\r\n\r\n /**\r\n * Gets or sets the proximity near radius of the frontplate.\r\n */\r\n @serialize()\r\n public proximityNearRadius = 0.016;\r\n\r\n /**\r\n * Gets or sets the proximity anisotropy of the frontplate.\r\n */\r\n @serialize()\r\n public proximityAnisotropy = 1.0;\r\n\r\n /**\r\n * Gets or sets whether to use global left index on the frontplate.\r\n */\r\n @serialize()\r\n public useGlobalLeftIndex = true;\r\n\r\n /**\r\n * Gets or sets whether to use global right index of the frontplate.\r\n */\r\n @serialize()\r\n public useGlobalRightIndex = true;\r\n\r\n /**\r\n * URL pointing to the texture used to define the coloring for the BLOB.\r\n */\r\n public static BLOB_TEXTURE_URL = \"\";\r\n\r\n /**\r\n * Gets or sets the opacity of the frontplate (0.0 - 1.0).\r\n */\r\n public fadeOut = 1.0;\r\n\r\n private _blobTexture: Texture;\r\n\r\n constructor(name: string, scene: Scene) {\r\n super(name, scene);\r\n this.alphaMode = Constants.ALPHA_ADD;\r\n this.disableDepthWrite = true;\r\n this.backFaceCulling = false;\r\n this._blobTexture = new Texture(MRDLFrontplateMaterial.BLOB_TEXTURE_URL, scene, true, false, Texture.NEAREST_SAMPLINGMODE);\r\n }\r\n\r\n public override needAlphaBlending(): boolean {\r\n return true;\r\n }\r\n\r\n public override needAlphaTesting(): boolean {\r\n return false;\r\n }\r\n\r\n public override getAlphaTestTexture(): Nullable<BaseTexture> {\r\n return null;\r\n }\r\n\r\n // Methods\r\n public override isReadyForSubMesh(mesh: AbstractMesh, subMesh: SubMesh): boolean {\r\n const drawWrapper = subMesh._drawWrapper;\r\n\r\n if (this.isFrozen) {\r\n if (drawWrapper.effect && drawWrapper._wasPreviouslyReady) {\r\n return true;\r\n }\r\n }\r\n\r\n if (!subMesh.materialDefines) {\r\n subMesh.materialDefines = new MRDLFrontplateMaterialDefines();\r\n }\r\n\r\n const defines = <MRDLFrontplateMaterialDefines>subMesh.materialDefines;\r\n const scene = this.getScene();\r\n\r\n if (MRDLFrontplateMaterial.BLOB_TEXTURE_URL !== \"\" && !this._blobTexture.isReady()) {\r\n return false;\r\n }\r\n\r\n if (this._isReadyForSubMesh(subMesh)) {\r\n return true;\r\n }\r\n\r\n const engine = scene.getEngine();\r\n\r\n // Attribs\r\n PrepareDefinesForAttributes(mesh, defines, false, false);\r\n\r\n // Get correct effect\r\n if (defines.isDirty) {\r\n defines.markAsProcessed();\r\n\r\n scene.resetCachedMaterial();\r\n\r\n // Fallbacks\r\n const fallbacks = new EffectFallbacks();\r\n if (defines.FOG) {\r\n fallbacks.addFallback(1, \"FOG\");\r\n }\r\n\r\n HandleFallbacksForShadows(defines, fallbacks);\r\n\r\n defines.IMAGEPROCESSINGPOSTPROCESS = scene.imageProcessingConfiguration.applyByPostProcess;\r\n\r\n //Attributes\r\n const attribs = [VertexBuffer.PositionKind];\r\n\r\n if (defines.NORMAL) {\r\n attribs.push(VertexBuffer.NormalKind);\r\n }\r\n\r\n if (defines.UV1) {\r\n attribs.push(VertexBuffer.UVKind);\r\n }\r\n\r\n if (defines.UV2) {\r\n attribs.push(VertexBuffer.UV2Kind);\r\n }\r\n\r\n if (defines.VERTEXCOLOR) {\r\n attribs.push(VertexBuffer.ColorKind);\r\n }\r\n\r\n if (defines.TANGENT) {\r\n attribs.push(VertexBuffer.TangentKind);\r\n }\r\n\r\n PrepareAttributesForInstances(attribs, defines);\r\n\r\n // Legacy browser patch\r\n const shaderName = \"mrdlFrontplate\";\r\n const join = defines.toString();\r\n\r\n const uniforms = [\r\n \"world\",\r\n \"worldView\",\r\n \"worldViewProjection\",\r\n \"view\",\r\n \"projection\",\r\n \"viewProjection\",\r\n \"cameraPosition\",\r\n \"_Radius_\",\r\n \"_Line_Width_\",\r\n \"_Relative_To_Height_\",\r\n \"_Filter_Width_\",\r\n \"_Edge_Color_\",\r\n \"_Fade_Out_\",\r\n \"_Smooth_Edges_\",\r\n \"_Blob_Enable_\",\r\n \"_Blob_Position_\",\r\n \"_Blob_Intensity_\",\r\n \"_Blob_Near_Size_\",\r\n \"_Blob_Far_Size_\",\r\n \"_Blob_Near_Distance_\",\r\n \"_Blob_Far_Distance_\",\r\n \"_Blob_Fade_Length_\",\r\n \"_Blob_Inner_Fade_\",\r\n \"_Blob_Pulse_\",\r\n \"_Blob_Fade_\",\r\n \"_Blob_Pulse_Max_Size_\",\r\n \"_Blob_Enable_2_\",\r\n \"_Blob_Position_2_\",\r\n \"_Blob_Near_Size_2_\",\r\n \"_Blob_Inner_Fade_2_\",\r\n \"_Blob_Pulse_2_\",\r\n \"_Blob_Fade_2_\",\r\n \"_Gaze_Intensity_\",\r\n \"_Gaze_Focus_\",\r\n \"_Blob_Texture_\",\r\n \"_Selection_Fuzz_\",\r\n \"_Selected_\",\r\n \"_Selection_Fade_\",\r\n \"_Selection_Fade_Size_\",\r\n \"_Selected_Distance_\",\r\n \"_Selected_Fade_Length_\",\r\n \"_Proximity_Max_Intensity_\",\r\n \"_Proximity_Far_Distance_\",\r\n \"_Proximity_Near_Radius_\",\r\n \"_Proximity_Anisotropy_\",\r\n \"Global_Left_Index_Tip_Position\",\r\n \"Global_Right_Index_Tip_Position\",\r\n \"_Use_Global_Left_Index_\",\r\n \"_Use_Global_Right_Index_\",\r\n ];\r\n const samplers: string[] = [];\r\n const uniformBuffers: string[] = [];\r\n\r\n PrepareUniformsAndSamplersList(<IEffectCreationOptions>{\r\n uniformsNames: uniforms,\r\n uniformBuffersNames: uniformBuffers,\r\n samplers: samplers,\r\n defines: defines,\r\n maxSimultaneousLights: 4,\r\n });\r\n\r\n subMesh.setEffect(\r\n scene.getEngine().createEffect(\r\n shaderName,\r\n <IEffectCreationOptions>{\r\n attributes: attribs,\r\n uniformsNames: uniforms,\r\n uniformBuffersNames: uniformBuffers,\r\n samplers: samplers,\r\n defines: join,\r\n fallbacks: fallbacks,\r\n onCompiled: this.onCompiled,\r\n onError: this.onError,\r\n indexParameters: { maxSimultaneousLights: 4 },\r\n },\r\n engine\r\n ),\r\n defines\r\n );\r\n }\r\n if (!subMesh.effect || !subMesh.effect.isReady()) {\r\n return false;\r\n }\r\n\r\n defines._renderId = scene.getRenderId();\r\n drawWrapper._wasPreviouslyReady = true;\r\n\r\n return true;\r\n }\r\n\r\n public override bindForSubMesh(world: Matrix, mesh: Mesh, subMesh: SubMesh): void {\r\n const scene = this.getScene();\r\n\r\n const defines = <MRDLFrontplateMaterialDefines>subMesh.materialDefines;\r\n if (!defines) {\r\n return;\r\n }\r\n\r\n const effect = subMesh.effect;\r\n if (!effect) {\r\n return;\r\n }\r\n\r\n this._activeEffect = effect;\r\n\r\n // Matrices\r\n this.bindOnlyWorldMatrix(world);\r\n this._activeEffect.setMatrix(\"viewProjection\", scene.getTransformMatrix());\r\n this._activeEffect.setVector3(\"cameraPosition\", scene.activeCamera!.position);\r\n\r\n // \"Round Rect\"\r\n this._activeEffect.setFloat(\"_Radius_\", this.radius);\r\n this._activeEffect.setFloat(\"_Line_Width_\", this.lineWidth);\r\n this._activeEffect.setFloat(\"_Relative_To_Height_\", this.relativeToHeight ? 1.0 : 0.0);\r\n this._activeEffect.setFloat(\"_Filter_Width_\", this._filterWidth);\r\n this._activeEffect.setDirectColor4(\"_Edge_Color_\", this.edgeColor);\r\n\r\n // \"Fade\"\r\n this._activeEffect.setFloat(\"_Fade_Out_\", this.fadeOut);\r\n\r\n // \"Blob\"\r\n this._activeEffect.setFloat(\"_Blob_Enable_\", this.blobEnable ? 1.0 : 0.0);\r\n this._activeEffect.setVector3(\"_Blob_Position_\", this.blobPosition);\r\n this._activeEffect.setFloat(\"_Blob_Intensity_\", this.blobIntensity);\r\n this._activeEffect.setFloat(\"_Blob_Near_Size_\", this.blobNearSize);\r\n this._activeEffect.setFloat(\"_Blob_Far_Size_\", this.blobFarSize);\r\n this._activeEffect.setFloat(\"_Blob_Near_Distance_\", this.blobNearDistance);\r\n this._activeEffect.setFloat(\"_Blob_Far_Distance_\", this.blobFarDistance);\r\n this._activeEffect.setFloat(\"_Blob_Fade_Length_\", this.blobFadeLength);\r\n this._activeEffect.setFloat(\"_Blob_Inner_Fade_\", this.blobInnerFade);\r\n this._activeEffect.setFloat(\"_Blob_Pulse_\", this.blobPulse);\r\n this._activeEffect.setFloat(\"_Blob_Fade_\", this.blobFade);\r\n this._activeEffect.setFloat(\"_Blob_Pulse_Max_Size_\", this.blobPulseMaxSize);\r\n\r\n // \"Blob 2\"\r\n this._activeEffect.setFloat(\"_Blob_Enable_2_\", this.blobEnable2 ? 1.0 : 0.0);\r\n this._activeEffect.setVector3(\"_Blob_Position_2_\", this.blobPosition2);\r\n this._activeEffect.setFloat(\"_Blob_Near_Size_2_\", this.blobNearSize2);\r\n this._activeEffect.setFloat(\"_Blob_Inner_Fade_2_\", this.blobInnerFade2);\r\n this._activeEffect.setFloat(\"_Blob_Pulse_2_\", this.blobPulse2);\r\n this._activeEffect.setFloat(\"_Blob_Fade_2_\", this.blobFade2);\r\n\r\n // \"Gaze\"\r\n this._activeEffect.setFloat(\"_Gaze_Intensity_\", this.gazeIntensity);\r\n this._activeEffect.setFloat(\"_Gaze_Focus_\", this.gazeFocus);\r\n\r\n // \"Blob Texture\"\r\n this._activeEffect.setTexture(\"_Blob_Texture_\", this._blobTexture);\r\n\r\n // \"Selection\"\r\n this._activeEffect.setFloat(\"_Selection_Fuzz_\", this.selectionFuzz);\r\n this._activeEffect.setFloat(\"_Selected_\", this.selected);\r\n this._activeEffect.setFloat(\"_Selection_Fade_\", this.selectionFade);\r\n this._activeEffect.setFloat(\"_Selection_Fade_Size_\", this.selectionFadeSize);\r\n this._activeEffect.setFloat(\"_Selected_Distance_\", this.selectedDistance);\r\n this._activeEffect.setFloat(\"_Selected_Fade_Length_\", this.selectedFadeLength);\r\n\r\n // \"Proximity\"\r\n this._activeEffect.setFloat(\"_Proximity_Max_Intensity_\", this.proximityMaxIntensity);\r\n this._activeEffect.setFloat(\"_Proximity_Far_Distance_\", this.proximityFarDistance);\r\n this._activeEffect.setFloat(\"_Proximity_Near_Radius_\", this.proximityNearRadius);\r\n this._activeEffect.setFloat(\"_Proximity_Anisotropy_\", this.proximityAnisotropy);\r\n\r\n // \"Global\"\r\n this._activeEffect.setFloat(\"_Use_Global_Left_Index_\", this.useGlobalLeftIndex ? 1.0 : 0.0);\r\n this._activeEffect.setFloat(\"_Use_Global_Right_Index_\", this.useGlobalRightIndex ? 1.0 : 0.0);\r\n\r\n // \"Antialiasing\"\r\n //define SMOOTH_EDGES true;\r\n\r\n this._afterBind(mesh, this._activeEffect, subMesh);\r\n }\r\n\r\n /**\r\n * Get the list of animatables in the material.\r\n * @returns the list of animatables object used in the material\r\n */\r\n public override getAnimatables(): IAnimatable[] {\r\n return [];\r\n }\r\n\r\n public override dispose(forceDisposeEffect?: boolean): void {\r\n super.dispose(forceDisposeEffect);\r\n }\r\n\r\n public override clone(name: string): MRDLFrontplateMaterial {\r\n return SerializationHelper.Clone(() => new MRDLFrontplateMaterial(name, this.getScene()), this);\r\n }\r\n\r\n public override serialize(): unknown {\r\n const serializationObject = SerializationHelper.Serialize(this);\r\n serializationObject.customType = \"BABYLON.MRDLFrontplateMaterial\";\r\n return serializationObject;\r\n }\r\n\r\n public override getClassName(): string {\r\n return \"MRDLFrontplateMaterial\";\r\n }\r\n\r\n // Statics\r\n public static override Parse(source: any, scene: Scene, rootUrl: string): MRDLFrontplateMaterial {\r\n return SerializationHelper.Parse(() => new MRDLFrontplateMaterial(source.name, scene), source, scene, rootUrl);\r\n }\r\n}\r\n\r\nlet _Registered = false;\r\n/**\r\n * Registers the MRDLFrontplateMaterial class with the type store for serialization support.\r\n * Safe to call multiple times; only the first call has an effect.\r\n */\r\nexport function RegisterMRDLFrontplateMaterial(): void {\r\n if (_Registered) {\r\n return;\r\n }\r\n _Registered = true;\r\n\r\n RegisterClass(\"BABYLON.GUI.MRDLFrontplateMaterial\", MRDLFrontplateMaterial);\r\n}\r\n"]}