@onerjs/gui 8.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/2D/FrameGraph/guiTask.d.ts +34 -0
- package/2D/FrameGraph/guiTask.js +62 -0
- package/2D/FrameGraph/guiTask.js.map +1 -0
- package/2D/FrameGraph/renderGraphGUIBlock.d.ts +43 -0
- package/2D/FrameGraph/renderGraphGUIBlock.js +66 -0
- package/2D/FrameGraph/renderGraphGUIBlock.js.map +1 -0
- package/2D/adtInstrumentation.d.ts +52 -0
- package/2D/adtInstrumentation.js +107 -0
- package/2D/adtInstrumentation.js.map +1 -0
- package/2D/advancedDynamicTexture.d.ts +548 -0
- package/2D/advancedDynamicTexture.js +1522 -0
- package/2D/advancedDynamicTexture.js.map +1 -0
- package/2D/controls/button.d.ts +109 -0
- package/2D/controls/button.js +246 -0
- package/2D/controls/button.js.map +1 -0
- package/2D/controls/checkbox.d.ts +53 -0
- package/2D/controls/checkbox.js +164 -0
- package/2D/controls/checkbox.js.map +1 -0
- package/2D/controls/colorpicker.d.ts +101 -0
- package/2D/controls/colorpicker.js +1396 -0
- package/2D/controls/colorpicker.js.map +1 -0
- package/2D/controls/container.d.ts +179 -0
- package/2D/controls/container.js +616 -0
- package/2D/controls/container.js.map +1 -0
- package/2D/controls/control.d.ts +943 -0
- package/2D/controls/control.js +2460 -0
- package/2D/controls/control.js.map +1 -0
- package/2D/controls/displayGrid.d.ts +53 -0
- package/2D/controls/displayGrid.js +202 -0
- package/2D/controls/displayGrid.js.map +1 -0
- package/2D/controls/ellipse.d.ts +25 -0
- package/2D/controls/ellipse.js +93 -0
- package/2D/controls/ellipse.js.map +1 -0
- package/2D/controls/focusableButton.d.ts +17 -0
- package/2D/controls/focusableButton.js +25 -0
- package/2D/controls/focusableButton.js.map +1 -0
- package/2D/controls/focusableControl.d.ts +43 -0
- package/2D/controls/focusableControl.js +2 -0
- package/2D/controls/focusableControl.js.map +1 -0
- package/2D/controls/gradient/BaseGradient.d.ts +69 -0
- package/2D/controls/gradient/BaseGradient.js +84 -0
- package/2D/controls/gradient/BaseGradient.js.map +1 -0
- package/2D/controls/gradient/LinearGradient.d.ts +45 -0
- package/2D/controls/gradient/LinearGradient.js +73 -0
- package/2D/controls/gradient/LinearGradient.js.map +1 -0
- package/2D/controls/gradient/RadialGradient.d.ts +53 -0
- package/2D/controls/gradient/RadialGradient.js +89 -0
- package/2D/controls/gradient/RadialGradient.js.map +1 -0
- package/2D/controls/grid.d.ts +151 -0
- package/2D/controls/grid.js +528 -0
- package/2D/controls/grid.js.map +1 -0
- package/2D/controls/image.d.ts +228 -0
- package/2D/controls/image.js +915 -0
- package/2D/controls/image.js.map +1 -0
- package/2D/controls/index.d.ts +34 -0
- package/2D/controls/index.js +35 -0
- package/2D/controls/index.js.map +1 -0
- package/2D/controls/inputPassword.d.ts +9 -0
- package/2D/controls/inputPassword.js +22 -0
- package/2D/controls/inputPassword.js.map +1 -0
- package/2D/controls/inputText.d.ts +197 -0
- package/2D/controls/inputText.js +1035 -0
- package/2D/controls/inputText.js.map +1 -0
- package/2D/controls/inputTextArea.d.ts +142 -0
- package/2D/controls/inputTextArea.js +1025 -0
- package/2D/controls/inputTextArea.js.map +1 -0
- package/2D/controls/line.d.ts +73 -0
- package/2D/controls/line.js +227 -0
- package/2D/controls/line.js.map +1 -0
- package/2D/controls/multiLine.d.ts +75 -0
- package/2D/controls/multiLine.js +237 -0
- package/2D/controls/multiLine.js.map +1 -0
- package/2D/controls/radioButton.d.ts +49 -0
- package/2D/controls/radioButton.js +185 -0
- package/2D/controls/radioButton.js.map +1 -0
- package/2D/controls/rectangle.d.ts +43 -0
- package/2D/controls/rectangle.js +204 -0
- package/2D/controls/rectangle.js.map +1 -0
- package/2D/controls/scrollViewers/scrollViewer.d.ts +178 -0
- package/2D/controls/scrollViewers/scrollViewer.js +587 -0
- package/2D/controls/scrollViewers/scrollViewer.js.map +1 -0
- package/2D/controls/scrollViewers/scrollViewerWindow.d.ts +51 -0
- package/2D/controls/scrollViewers/scrollViewerWindow.js +254 -0
- package/2D/controls/scrollViewers/scrollViewerWindow.js.map +1 -0
- package/2D/controls/selector.d.ts +237 -0
- package/2D/controls/selector.js +579 -0
- package/2D/controls/selector.js.map +1 -0
- package/2D/controls/sliders/baseSlider.d.ts +80 -0
- package/2D/controls/sliders/baseSlider.js +299 -0
- package/2D/controls/sliders/baseSlider.js.map +1 -0
- package/2D/controls/sliders/imageBasedSlider.d.ts +47 -0
- package/2D/controls/sliders/imageBasedSlider.js +168 -0
- package/2D/controls/sliders/imageBasedSlider.js.map +1 -0
- package/2D/controls/sliders/imageScrollBar.d.ts +67 -0
- package/2D/controls/sliders/imageScrollBar.js +248 -0
- package/2D/controls/sliders/imageScrollBar.js.map +1 -0
- package/2D/controls/sliders/scrollBar.d.ts +50 -0
- package/2D/controls/sliders/scrollBar.js +175 -0
- package/2D/controls/sliders/scrollBar.js.map +1 -0
- package/2D/controls/sliders/slider.d.ts +46 -0
- package/2D/controls/sliders/slider.js +281 -0
- package/2D/controls/sliders/slider.js.map +1 -0
- package/2D/controls/stackPanel.d.ts +64 -0
- package/2D/controls/stackPanel.js +244 -0
- package/2D/controls/stackPanel.js.map +1 -0
- package/2D/controls/statics.d.ts +6 -0
- package/2D/controls/statics.js +50 -0
- package/2D/controls/statics.js.map +1 -0
- package/2D/controls/textBlock.d.ts +219 -0
- package/2D/controls/textBlock.js +670 -0
- package/2D/controls/textBlock.js.map +1 -0
- package/2D/controls/textWrapper.d.ts +13 -0
- package/2D/controls/textWrapper.js +88 -0
- package/2D/controls/textWrapper.js.map +1 -0
- package/2D/controls/toggleButton.d.ts +93 -0
- package/2D/controls/toggleButton.js +229 -0
- package/2D/controls/toggleButton.js.map +1 -0
- package/2D/controls/virtualKeyboard.d.ts +102 -0
- package/2D/controls/virtualKeyboard.js +275 -0
- package/2D/controls/virtualKeyboard.js.map +1 -0
- package/2D/index.d.ts +11 -0
- package/2D/index.js +13 -0
- package/2D/index.js.map +1 -0
- package/2D/math2D.d.ts +136 -0
- package/2D/math2D.js +235 -0
- package/2D/math2D.js.map +1 -0
- package/2D/measure.d.ts +77 -0
- package/2D/measure.js +138 -0
- package/2D/measure.js.map +1 -0
- package/2D/multiLinePoint.d.ts +47 -0
- package/2D/multiLinePoint.js +110 -0
- package/2D/multiLinePoint.js.map +1 -0
- package/2D/style.d.ts +46 -0
- package/2D/style.js +80 -0
- package/2D/style.js.map +1 -0
- package/2D/valueAndUnit.d.ts +89 -0
- package/2D/valueAndUnit.js +194 -0
- package/2D/valueAndUnit.js.map +1 -0
- package/2D/xmlLoader.d.ts +60 -0
- package/2D/xmlLoader.js +348 -0
- package/2D/xmlLoader.js.map +1 -0
- package/3D/behaviors/defaultBehavior.d.ts +73 -0
- package/3D/behaviors/defaultBehavior.js +103 -0
- package/3D/behaviors/defaultBehavior.js.map +1 -0
- package/3D/controls/MRTK3/touchHolographicButton.d.ts +220 -0
- package/3D/controls/MRTK3/touchHolographicButton.js +868 -0
- package/3D/controls/MRTK3/touchHolographicButton.js.map +1 -0
- package/3D/controls/abstractButton3D.d.ts +15 -0
- package/3D/controls/abstractButton3D.js +22 -0
- package/3D/controls/abstractButton3D.js.map +1 -0
- package/3D/controls/button3D.d.ts +51 -0
- package/3D/controls/button3D.js +98 -0
- package/3D/controls/button3D.js.map +1 -0
- package/3D/controls/container3D.d.ts +72 -0
- package/3D/controls/container3D.js +126 -0
- package/3D/controls/container3D.js.map +1 -0
- package/3D/controls/contentDisplay3D.d.ts +42 -0
- package/3D/controls/contentDisplay3D.js +81 -0
- package/3D/controls/contentDisplay3D.js.map +1 -0
- package/3D/controls/control3D.d.ts +183 -0
- package/3D/controls/control3D.js +401 -0
- package/3D/controls/control3D.js.map +1 -0
- package/3D/controls/cylinderPanel.d.ts +17 -0
- package/3D/controls/cylinderPanel.js +57 -0
- package/3D/controls/cylinderPanel.js.map +1 -0
- package/3D/controls/handMenu.d.ts +28 -0
- package/3D/controls/handMenu.js +39 -0
- package/3D/controls/handMenu.js.map +1 -0
- package/3D/controls/holographicBackplate.d.ts +49 -0
- package/3D/controls/holographicBackplate.js +104 -0
- package/3D/controls/holographicBackplate.js.map +1 -0
- package/3D/controls/holographicButton.d.ts +84 -0
- package/3D/controls/holographicButton.js +300 -0
- package/3D/controls/holographicButton.js.map +1 -0
- package/3D/controls/holographicSlate.d.ts +134 -0
- package/3D/controls/holographicSlate.js +413 -0
- package/3D/controls/holographicSlate.js.map +1 -0
- package/3D/controls/index.d.ts +22 -0
- package/3D/controls/index.js +24 -0
- package/3D/controls/index.js.map +1 -0
- package/3D/controls/meshButton3D.d.ts +21 -0
- package/3D/controls/meshButton3D.js +58 -0
- package/3D/controls/meshButton3D.js.map +1 -0
- package/3D/controls/nearMenu.d.ts +44 -0
- package/3D/controls/nearMenu.js +103 -0
- package/3D/controls/nearMenu.js.map +1 -0
- package/3D/controls/planePanel.d.ts +9 -0
- package/3D/controls/planePanel.js +30 -0
- package/3D/controls/planePanel.js.map +1 -0
- package/3D/controls/scatterPanel.d.ts +18 -0
- package/3D/controls/scatterPanel.js +98 -0
- package/3D/controls/scatterPanel.js.map +1 -0
- package/3D/controls/slider3D.d.ts +95 -0
- package/3D/controls/slider3D.js +256 -0
- package/3D/controls/slider3D.js.map +1 -0
- package/3D/controls/spherePanel.d.ts +17 -0
- package/3D/controls/spherePanel.js +58 -0
- package/3D/controls/spherePanel.js.map +1 -0
- package/3D/controls/stackPanel3D.d.ts +22 -0
- package/3D/controls/stackPanel3D.js +95 -0
- package/3D/controls/stackPanel3D.js.map +1 -0
- package/3D/controls/touchButton3D.d.ts +77 -0
- package/3D/controls/touchButton3D.js +205 -0
- package/3D/controls/touchButton3D.js.map +1 -0
- package/3D/controls/touchHolographicButton.d.ts +110 -0
- package/3D/controls/touchHolographicButton.js +400 -0
- package/3D/controls/touchHolographicButton.js.map +1 -0
- package/3D/controls/touchHolographicMenu.d.ts +61 -0
- package/3D/controls/touchHolographicMenu.js +139 -0
- package/3D/controls/touchHolographicMenu.js.map +1 -0
- package/3D/controls/touchMeshButton3D.d.ts +21 -0
- package/3D/controls/touchMeshButton3D.js +58 -0
- package/3D/controls/touchMeshButton3D.js.map +1 -0
- package/3D/controls/volumeBasedPanel.d.ts +53 -0
- package/3D/controls/volumeBasedPanel.js +158 -0
- package/3D/controls/volumeBasedPanel.js.map +1 -0
- package/3D/gizmos/gizmoHandle.d.ts +108 -0
- package/3D/gizmos/gizmoHandle.js +175 -0
- package/3D/gizmos/gizmoHandle.js.map +1 -0
- package/3D/gizmos/index.d.ts +2 -0
- package/3D/gizmos/index.js +3 -0
- package/3D/gizmos/index.js.map +1 -0
- package/3D/gizmos/slateGizmo.d.ts +57 -0
- package/3D/gizmos/slateGizmo.js +353 -0
- package/3D/gizmos/slateGizmo.js.map +1 -0
- package/3D/gui3DManager.d.ts +94 -0
- package/3D/gui3DManager.js +233 -0
- package/3D/gui3DManager.js.map +1 -0
- package/3D/index.d.ts +5 -0
- package/3D/index.js +7 -0
- package/3D/index.js.map +1 -0
- package/3D/materials/fluent/fluentMaterial.d.ts +91 -0
- package/3D/materials/fluent/fluentMaterial.js +286 -0
- package/3D/materials/fluent/fluentMaterial.js.map +1 -0
- package/3D/materials/fluent/index.d.ts +1 -0
- package/3D/materials/fluent/index.js +2 -0
- package/3D/materials/fluent/index.js.map +1 -0
- package/3D/materials/fluent/shaders/fluent.fragment.d.ts +5 -0
- package/3D/materials/fluent/shaders/fluent.fragment.js +41 -0
- package/3D/materials/fluent/shaders/fluent.fragment.js.map +1 -0
- package/3D/materials/fluent/shaders/fluent.vertex.d.ts +5 -0
- package/3D/materials/fluent/shaders/fluent.vertex.js +40 -0
- package/3D/materials/fluent/shaders/fluent.vertex.js.map +1 -0
- package/3D/materials/fluentBackplate/fluentBackplateMaterial.d.ts +155 -0
- package/3D/materials/fluentBackplate/fluentBackplateMaterial.js +466 -0
- package/3D/materials/fluentBackplate/fluentBackplateMaterial.js.map +1 -0
- package/3D/materials/fluentBackplate/index.d.ts +1 -0
- package/3D/materials/fluentBackplate/index.js +2 -0
- package/3D/materials/fluentBackplate/index.js.map +1 -0
- package/3D/materials/fluentBackplate/shaders/fluentBackplate.fragment.d.ts +5 -0
- package/3D/materials/fluentBackplate/shaders/fluentBackplate.fragment.js +60 -0
- package/3D/materials/fluentBackplate/shaders/fluentBackplate.fragment.js.map +1 -0
- package/3D/materials/fluentBackplate/shaders/fluentBackplate.vertex.d.ts +5 -0
- package/3D/materials/fluentBackplate/shaders/fluentBackplate.vertex.js +127 -0
- package/3D/materials/fluentBackplate/shaders/fluentBackplate.vertex.js.map +1 -0
- package/3D/materials/fluentButton/fluentButtonMaterial.d.ts +190 -0
- package/3D/materials/fluentButton/fluentButtonMaterial.js +536 -0
- package/3D/materials/fluentButton/fluentButtonMaterial.js.map +1 -0
- package/3D/materials/fluentButton/index.d.ts +1 -0
- package/3D/materials/fluentButton/index.js +2 -0
- package/3D/materials/fluentButton/index.js.map +1 -0
- package/3D/materials/fluentButton/shaders/fluentButton.fragment.d.ts +5 -0
- package/3D/materials/fluentButton/shaders/fluentButton.fragment.js +57 -0
- package/3D/materials/fluentButton/shaders/fluentButton.fragment.js.map +1 -0
- package/3D/materials/fluentButton/shaders/fluentButton.vertex.d.ts +5 -0
- package/3D/materials/fluentButton/shaders/fluentButton.vertex.js +162 -0
- package/3D/materials/fluentButton/shaders/fluentButton.vertex.js.map +1 -0
- package/3D/materials/fluentMaterial.d.ts +4 -0
- package/3D/materials/fluentMaterial.js +5 -0
- package/3D/materials/fluentMaterial.js.map +1 -0
- package/3D/materials/handle/handleMaterial.d.ts +68 -0
- package/3D/materials/handle/handleMaterial.js +114 -0
- package/3D/materials/handle/handleMaterial.js.map +1 -0
- package/3D/materials/handle/index.d.ts +1 -0
- package/3D/materials/handle/index.js +2 -0
- package/3D/materials/handle/index.js.map +1 -0
- package/3D/materials/handle/shaders/handle.fragment.d.ts +5 -0
- package/3D/materials/handle/shaders/handle.fragment.js +11 -0
- package/3D/materials/handle/shaders/handle.fragment.js.map +1 -0
- package/3D/materials/handle/shaders/handle.vertex.d.ts +5 -0
- package/3D/materials/handle/shaders/handle.vertex.js +11 -0
- package/3D/materials/handle/shaders/handle.vertex.js.map +1 -0
- package/3D/materials/index.d.ts +5 -0
- package/3D/materials/index.js +7 -0
- package/3D/materials/index.js.map +1 -0
- package/3D/materials/mrdl/index.d.ts +3 -0
- package/3D/materials/mrdl/index.js +4 -0
- package/3D/materials/mrdl/index.js.map +1 -0
- package/3D/materials/mrdl/mrdlBackglowMaterial.d.ts +87 -0
- package/3D/materials/mrdl/mrdlBackglowMaterial.js +302 -0
- package/3D/materials/mrdl/mrdlBackglowMaterial.js.map +1 -0
- package/3D/materials/mrdl/mrdlBackplateMaterial.d.ts +148 -0
- package/3D/materials/mrdl/mrdlBackplateMaterial.js +433 -0
- package/3D/materials/mrdl/mrdlBackplateMaterial.js.map +1 -0
- package/3D/materials/mrdl/mrdlFrontplateMaterial.d.ts +186 -0
- package/3D/materials/mrdl/mrdlFrontplateMaterial.js +532 -0
- package/3D/materials/mrdl/mrdlFrontplateMaterial.js.map +1 -0
- package/3D/materials/mrdl/mrdlInnerquadMaterial.d.ts +56 -0
- package/3D/materials/mrdl/mrdlInnerquadMaterial.js +230 -0
- package/3D/materials/mrdl/mrdlInnerquadMaterial.js.map +1 -0
- package/3D/materials/mrdl/mrdlSliderBarMaterial.d.ts +337 -0
- package/3D/materials/mrdl/mrdlSliderBarMaterial.js +855 -0
- package/3D/materials/mrdl/mrdlSliderBarMaterial.js.map +1 -0
- package/3D/materials/mrdl/mrdlSliderThumbMaterial.d.ts +337 -0
- package/3D/materials/mrdl/mrdlSliderThumbMaterial.js +855 -0
- package/3D/materials/mrdl/mrdlSliderThumbMaterial.js.map +1 -0
- package/3D/materials/mrdl/shaders/mrdlBackglow.fragment.d.ts +5 -0
- package/3D/materials/mrdl/shaders/mrdlBackglow.fragment.js +25 -0
- package/3D/materials/mrdl/shaders/mrdlBackglow.fragment.js.map +1 -0
- package/3D/materials/mrdl/shaders/mrdlBackglow.vertex.d.ts +5 -0
- package/3D/materials/mrdl/shaders/mrdlBackglow.vertex.js +12 -0
- package/3D/materials/mrdl/shaders/mrdlBackglow.vertex.js.map +1 -0
- package/3D/materials/mrdl/shaders/mrdlBackplate.fragment.d.ts +5 -0
- package/3D/materials/mrdl/shaders/mrdlBackplate.fragment.js +88 -0
- package/3D/materials/mrdl/shaders/mrdlBackplate.fragment.js.map +1 -0
- package/3D/materials/mrdl/shaders/mrdlBackplate.vertex.d.ts +5 -0
- package/3D/materials/mrdl/shaders/mrdlBackplate.vertex.js +96 -0
- package/3D/materials/mrdl/shaders/mrdlBackplate.vertex.js.map +1 -0
- package/3D/materials/mrdl/shaders/mrdlFrontplate.fragment.d.ts +5 -0
- package/3D/materials/mrdl/shaders/mrdlFrontplate.fragment.js +48 -0
- package/3D/materials/mrdl/shaders/mrdlFrontplate.fragment.js.map +1 -0
- package/3D/materials/mrdl/shaders/mrdlFrontplate.vertex.d.ts +5 -0
- package/3D/materials/mrdl/shaders/mrdlFrontplate.vertex.js +158 -0
- package/3D/materials/mrdl/shaders/mrdlFrontplate.vertex.js.map +1 -0
- package/3D/materials/mrdl/shaders/mrdlInnerquad.fragment.d.ts +5 -0
- package/3D/materials/mrdl/shaders/mrdlInnerquad.fragment.js +27 -0
- package/3D/materials/mrdl/shaders/mrdlInnerquad.fragment.js.map +1 -0
- package/3D/materials/mrdl/shaders/mrdlInnerquad.vertex.d.ts +5 -0
- package/3D/materials/mrdl/shaders/mrdlInnerquad.vertex.js +13 -0
- package/3D/materials/mrdl/shaders/mrdlInnerquad.vertex.js.map +1 -0
- package/3D/materials/mrdl/shaders/mrdlSliderBar.fragment.d.ts +5 -0
- package/3D/materials/mrdl/shaders/mrdlSliderBar.fragment.js +236 -0
- package/3D/materials/mrdl/shaders/mrdlSliderBar.fragment.js.map +1 -0
- package/3D/materials/mrdl/shaders/mrdlSliderBar.vertex.d.ts +5 -0
- package/3D/materials/mrdl/shaders/mrdlSliderBar.vertex.js +137 -0
- package/3D/materials/mrdl/shaders/mrdlSliderBar.vertex.js.map +1 -0
- package/3D/materials/mrdl/shaders/mrdlSliderThumb.fragment.d.ts +5 -0
- package/3D/materials/mrdl/shaders/mrdlSliderThumb.fragment.js +236 -0
- package/3D/materials/mrdl/shaders/mrdlSliderThumb.fragment.js.map +1 -0
- package/3D/materials/mrdl/shaders/mrdlSliderThumb.vertex.d.ts +5 -0
- package/3D/materials/mrdl/shaders/mrdlSliderThumb.vertex.js +137 -0
- package/3D/materials/mrdl/shaders/mrdlSliderThumb.vertex.js.map +1 -0
- package/3D/vector3WithInfo.d.ts +16 -0
- package/3D/vector3WithInfo.js +18 -0
- package/3D/vector3WithInfo.js.map +1 -0
- package/index.d.ts +2 -0
- package/index.js +4 -0
- package/index.js.map +1 -0
- package/legacy/legacy.d.ts +1 -0
- package/legacy/legacy.js +17 -0
- package/legacy/legacy.js.map +1 -0
- package/license.md +71 -0
- package/package.json +47 -0
- package/readme.md +31 -0
|
@@ -0,0 +1,855 @@
|
|
|
1
|
+
import { __decorate } from "@babylonjs/core/tslib.es6.js";
|
|
2
|
+
import { serialize } from "@babylonjs/core/Misc/decorators.js";
|
|
3
|
+
import { SerializationHelper } from "@babylonjs/core/Misc/decorators.serialization.js";
|
|
4
|
+
import { Vector2, Vector3, Vector4 } from "@babylonjs/core/Maths/math.vector.js";
|
|
5
|
+
import { Texture } from "@babylonjs/core/Materials/Textures/texture.js";
|
|
6
|
+
import { MaterialDefines } from "@babylonjs/core/Materials/materialDefines.js";
|
|
7
|
+
import { PushMaterial } from "@babylonjs/core/Materials/pushMaterial.js";
|
|
8
|
+
import { VertexBuffer } from "@babylonjs/core/Buffers/buffer.js";
|
|
9
|
+
import { RegisterClass } from "@babylonjs/core/Misc/typeStore.js";
|
|
10
|
+
import { Color4 } from "@babylonjs/core/Maths/math.color.js";
|
|
11
|
+
import { EffectFallbacks } from "@babylonjs/core/Materials/effectFallbacks.js";
|
|
12
|
+
import { Constants } from "@babylonjs/core/Engines/constants.js";
|
|
13
|
+
import "./shaders/mrdlSliderThumb.fragment.js";
|
|
14
|
+
import "./shaders/mrdlSliderThumb.vertex.js";
|
|
15
|
+
import { HandleFallbacksForShadows, PrepareAttributesForInstances, PrepareDefinesForAttributes, PrepareUniformsAndSamplersList } from "@babylonjs/core/Materials/materialHelper.functions.js";
|
|
16
|
+
import { Tools } from "@babylonjs/core/Misc/tools.js";
|
|
17
|
+
/** @internal */
|
|
18
|
+
class MRDLSliderThumbMaterialDefines extends MaterialDefines {
|
|
19
|
+
constructor() {
|
|
20
|
+
super();
|
|
21
|
+
/*
|
|
22
|
+
"SKY_ENABLED", "BLOB_ENABLE_2", "IRIDESCENCE_ENABLED"
|
|
23
|
+
*/
|
|
24
|
+
this.SKY_ENABLED = true;
|
|
25
|
+
this.BLOB_ENABLE_2 = true;
|
|
26
|
+
this.IRIDESCENCE_ENABLED = true;
|
|
27
|
+
this._needNormals = true;
|
|
28
|
+
this._needUVs = true;
|
|
29
|
+
this.rebuild();
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Class used to render Slider Thumb material with MRDL
|
|
34
|
+
*/
|
|
35
|
+
export class MRDLSliderThumbMaterial extends PushMaterial {
|
|
36
|
+
constructor(name, scene) {
|
|
37
|
+
super(name, scene);
|
|
38
|
+
/**
|
|
39
|
+
* Gets or sets the corner Radius on the slider thumb.
|
|
40
|
+
*/
|
|
41
|
+
this.radius = 0.157;
|
|
42
|
+
/**
|
|
43
|
+
* Gets or sets the Bevel Front on the slider thumb.
|
|
44
|
+
*/
|
|
45
|
+
this.bevelFront = 0.065;
|
|
46
|
+
/**
|
|
47
|
+
* Gets or sets the Bevel Front Stretch on the slider thumb.
|
|
48
|
+
*/
|
|
49
|
+
this.bevelFrontStretch = 0.077;
|
|
50
|
+
/**
|
|
51
|
+
* Gets or sets the Bevel Back on the slider thumb.
|
|
52
|
+
*/
|
|
53
|
+
this.bevelBack = 0.031;
|
|
54
|
+
/**
|
|
55
|
+
* Gets or sets the Bevel Back Stretch on the slider thumb.
|
|
56
|
+
*/
|
|
57
|
+
this.bevelBackStretch = 0;
|
|
58
|
+
/**
|
|
59
|
+
* Gets or sets the top left Radii Multiplier.
|
|
60
|
+
*/
|
|
61
|
+
this.radiusTopLeft = 1.0;
|
|
62
|
+
/**
|
|
63
|
+
* Gets or sets the top left Radii Multiplier.
|
|
64
|
+
*/
|
|
65
|
+
this.radiusTopRight = 1.0;
|
|
66
|
+
/**
|
|
67
|
+
* Gets or sets the top left Radii Multiplier.
|
|
68
|
+
*/
|
|
69
|
+
this.radiusBottomLeft = 1.0;
|
|
70
|
+
/**
|
|
71
|
+
* Gets or sets the top left Radii Multiplier.
|
|
72
|
+
*/
|
|
73
|
+
this.radiusBottomRight = 1.0;
|
|
74
|
+
/**
|
|
75
|
+
* Gets or sets whether Bulge is enabled.
|
|
76
|
+
* Default is false.
|
|
77
|
+
*/
|
|
78
|
+
this.bulgeEnabled = false;
|
|
79
|
+
/**
|
|
80
|
+
* Gets or sets the Bulge Height.
|
|
81
|
+
*/
|
|
82
|
+
this.bulgeHeight = -0.323;
|
|
83
|
+
/**
|
|
84
|
+
* Gets or sets the Bulge Radius.
|
|
85
|
+
*/
|
|
86
|
+
this.bulgeRadius = 0.73;
|
|
87
|
+
/**
|
|
88
|
+
* Gets or sets the Sun Intensity.
|
|
89
|
+
*/
|
|
90
|
+
this.sunIntensity = 2;
|
|
91
|
+
/**
|
|
92
|
+
* Gets or sets the Sun Theta.
|
|
93
|
+
*/
|
|
94
|
+
this.sunTheta = 0.937;
|
|
95
|
+
/**
|
|
96
|
+
* Gets or sets the Sun Phi.
|
|
97
|
+
*/
|
|
98
|
+
this.sunPhi = 0.555;
|
|
99
|
+
/**
|
|
100
|
+
* Gets or sets the Indirect Diffuse.
|
|
101
|
+
*/
|
|
102
|
+
this.indirectDiffuse = 1;
|
|
103
|
+
/**
|
|
104
|
+
* Gets or sets the base albedo.
|
|
105
|
+
*/
|
|
106
|
+
this.albedo = new Color4(0.0117647, 0.505882, 0.996078, 1);
|
|
107
|
+
/**
|
|
108
|
+
* Gets or sets the Specular value.
|
|
109
|
+
*/
|
|
110
|
+
this.specular = 0;
|
|
111
|
+
/**
|
|
112
|
+
* Gets or sets the Shininess value.
|
|
113
|
+
*/
|
|
114
|
+
this.shininess = 10;
|
|
115
|
+
/**
|
|
116
|
+
* Gets or sets the Sharpness value.
|
|
117
|
+
*/
|
|
118
|
+
this.sharpness = 0;
|
|
119
|
+
/**
|
|
120
|
+
* Gets or sets the Subsurface value.
|
|
121
|
+
*/
|
|
122
|
+
this.subsurface = 0.31;
|
|
123
|
+
/**
|
|
124
|
+
* Gets or sets the left gradient color.
|
|
125
|
+
*/
|
|
126
|
+
this.leftGradientColor = new Color4(0.0117647, 0.505882, 0.996078, 1);
|
|
127
|
+
/**
|
|
128
|
+
* Gets or sets the right gradient color.
|
|
129
|
+
*/
|
|
130
|
+
this.rightGradientColor = new Color4(0.0117647, 0.505882, 0.996078, 1);
|
|
131
|
+
/**
|
|
132
|
+
* Gets or sets the reflection value.
|
|
133
|
+
*/
|
|
134
|
+
this.reflection = 0.749;
|
|
135
|
+
/**
|
|
136
|
+
* Gets or sets the front reflect value.
|
|
137
|
+
*/
|
|
138
|
+
this.frontReflect = 0;
|
|
139
|
+
/**
|
|
140
|
+
* Gets or sets the edge reflect value.
|
|
141
|
+
*/
|
|
142
|
+
this.edgeReflect = 0.09;
|
|
143
|
+
/**
|
|
144
|
+
* Gets or sets the power value.
|
|
145
|
+
*/
|
|
146
|
+
this.power = 8.1;
|
|
147
|
+
/**
|
|
148
|
+
* Gets or sets the sky color.
|
|
149
|
+
*/
|
|
150
|
+
this.skyColor = new Color4(0.0117647, 0.960784, 0.996078, 1);
|
|
151
|
+
/**
|
|
152
|
+
* Gets or sets the horizon color.
|
|
153
|
+
*/
|
|
154
|
+
this.horizonColor = new Color4(0.0117647, 0.333333, 0.996078, 1);
|
|
155
|
+
/**
|
|
156
|
+
* Gets or sets the ground color.
|
|
157
|
+
*/
|
|
158
|
+
this.groundColor = new Color4(0, 0.254902, 0.996078, 1);
|
|
159
|
+
/**
|
|
160
|
+
* Gets or sets the horizon power value.
|
|
161
|
+
*/
|
|
162
|
+
this.horizonPower = 1;
|
|
163
|
+
/**
|
|
164
|
+
* Gets or sets the finger occlusion width value.
|
|
165
|
+
*/
|
|
166
|
+
this.width = 0.02;
|
|
167
|
+
/**
|
|
168
|
+
* Gets or sets the finger occlusion fuzz value.
|
|
169
|
+
*/
|
|
170
|
+
this.fuzz = 0.5;
|
|
171
|
+
/**
|
|
172
|
+
* Gets or sets the minimum finger occlusion fuzz value.
|
|
173
|
+
*/
|
|
174
|
+
this.minFuzz = 0.001;
|
|
175
|
+
/**
|
|
176
|
+
* Gets or sets the finger occlusion clip fade value.
|
|
177
|
+
*/
|
|
178
|
+
this.clipFade = 0.01;
|
|
179
|
+
/**
|
|
180
|
+
* Gets or sets the hue shift value.
|
|
181
|
+
*/
|
|
182
|
+
this.hueShift = 0;
|
|
183
|
+
/**
|
|
184
|
+
* Gets or sets the saturation shift value.
|
|
185
|
+
*/
|
|
186
|
+
this.saturationShift = 0;
|
|
187
|
+
/**
|
|
188
|
+
* Gets or sets the value shift.
|
|
189
|
+
*/
|
|
190
|
+
this.valueShift = 0;
|
|
191
|
+
/**
|
|
192
|
+
* Gets or sets the position of the hover glow effect.
|
|
193
|
+
*/
|
|
194
|
+
this.blobPosition = new Vector3(0, 0, 0.1);
|
|
195
|
+
/**
|
|
196
|
+
* Gets or sets the intensity of the hover glow effect.
|
|
197
|
+
*/
|
|
198
|
+
this.blobIntensity = 0.5;
|
|
199
|
+
/**
|
|
200
|
+
* Gets or sets the near size of the hover glow effect.
|
|
201
|
+
*/
|
|
202
|
+
this.blobNearSize = 0.01;
|
|
203
|
+
/**
|
|
204
|
+
* Gets or sets the far size of the hover glow effect.
|
|
205
|
+
*/
|
|
206
|
+
this.blobFarSize = 0.03;
|
|
207
|
+
/**
|
|
208
|
+
* Gets or sets the distance considered "near" to the mesh, which controls the size of the hover glow effect (see blobNearSize).
|
|
209
|
+
*/
|
|
210
|
+
this.blobNearDistance = 0;
|
|
211
|
+
/**
|
|
212
|
+
* Gets or sets the distance considered "far" from the mesh, which controls the size of the hover glow effect (see blobFarSize).
|
|
213
|
+
*/
|
|
214
|
+
this.blobFarDistance = 0.08;
|
|
215
|
+
/**
|
|
216
|
+
* Gets or sets the length of the hover glow effect fade.
|
|
217
|
+
*/
|
|
218
|
+
this.blobFadeLength = 0.576;
|
|
219
|
+
/**
|
|
220
|
+
* Gets or sets the progress of the hover glow effect selection animation corresponding to the left pointer (0.0 - 1.0).
|
|
221
|
+
*/
|
|
222
|
+
this.blobPulse = 0;
|
|
223
|
+
/**
|
|
224
|
+
* Gets or sets the opacity of the hover glow effect corresponding to the left pointer (0.0 - 1.0). Default is 0.
|
|
225
|
+
*/
|
|
226
|
+
this.blobFade = 1;
|
|
227
|
+
/**
|
|
228
|
+
* Gets or sets the position of the hover glow effect.
|
|
229
|
+
*/
|
|
230
|
+
this.blobPosition2 = new Vector3(0.2, 0, 0.1);
|
|
231
|
+
/**
|
|
232
|
+
* Gets or sets the size of the hover glow effect when the right pointer is considered "near" to the mesh (see blobNearDistance).
|
|
233
|
+
*/
|
|
234
|
+
this.blobNearSize2 = 0.01;
|
|
235
|
+
/**
|
|
236
|
+
* Gets or sets the progress of the hover glow effect selection animation corresponding to the right pointer (0.0 - 1.0).
|
|
237
|
+
*/
|
|
238
|
+
this.blobPulse2 = 0;
|
|
239
|
+
/**
|
|
240
|
+
* Gets or sets the opacity of the hover glow effect corresponding to the right pointer (0.0 - 1.0). Default is 1.
|
|
241
|
+
*/
|
|
242
|
+
this.blobFade2 = 1;
|
|
243
|
+
/**
|
|
244
|
+
* Gets or sets the texture of the hover glow effect.
|
|
245
|
+
*/
|
|
246
|
+
this.blobTexture = new Texture("", this.getScene());
|
|
247
|
+
/**
|
|
248
|
+
* Gets or sets the finger position for left index.
|
|
249
|
+
*/
|
|
250
|
+
this.leftIndexPosition = new Vector3(0, 0, 1);
|
|
251
|
+
/**
|
|
252
|
+
* Gets or sets the finger position for right index.
|
|
253
|
+
*/
|
|
254
|
+
this.rightIndexPosition = new Vector3(-1, -1, -1);
|
|
255
|
+
/**
|
|
256
|
+
* Gets or sets the finger position for left index middle position.
|
|
257
|
+
*/
|
|
258
|
+
this.leftIndexMiddlePosition = new Vector3(0, 0, 0);
|
|
259
|
+
/**
|
|
260
|
+
* Gets or sets the finger position for right index middle position.
|
|
261
|
+
*/
|
|
262
|
+
this.rightIndexMiddlePosition = new Vector3(0, 0, 0);
|
|
263
|
+
/**
|
|
264
|
+
* Gets or sets the Decal Scale for XY.
|
|
265
|
+
*/
|
|
266
|
+
this.decalScaleXY = new Vector2(1.5, 1.5);
|
|
267
|
+
/**
|
|
268
|
+
* Gets or sets decalFrontOnly
|
|
269
|
+
* Default is true
|
|
270
|
+
*/
|
|
271
|
+
this.decalFrontOnly = true;
|
|
272
|
+
/**
|
|
273
|
+
* Gets or sets the Rim Light intensity.
|
|
274
|
+
*/
|
|
275
|
+
this.rimIntensity = 0.287;
|
|
276
|
+
/**
|
|
277
|
+
* Gets or sets the Rim Light hue shift value.
|
|
278
|
+
*/
|
|
279
|
+
this.rimHueShift = 0;
|
|
280
|
+
/**
|
|
281
|
+
* Gets or sets the Rim Light saturation shift value.
|
|
282
|
+
*/
|
|
283
|
+
this.rimSaturationShift = 0;
|
|
284
|
+
/**
|
|
285
|
+
* Gets or sets the Rim Light value shift.
|
|
286
|
+
*/
|
|
287
|
+
this.rimValueShift = -1;
|
|
288
|
+
/**
|
|
289
|
+
* Gets or sets the intensity of the iridescence effect.
|
|
290
|
+
*/
|
|
291
|
+
this.iridescenceIntensity = 0;
|
|
292
|
+
/**
|
|
293
|
+
* @internal
|
|
294
|
+
*/
|
|
295
|
+
this.useGlobalLeftIndex = 1.0;
|
|
296
|
+
/**
|
|
297
|
+
* @internal
|
|
298
|
+
*/
|
|
299
|
+
this.useGlobalRightIndex = 1.0;
|
|
300
|
+
/**
|
|
301
|
+
* @internal
|
|
302
|
+
*/
|
|
303
|
+
this.globalLeftIndexTipProximity = 0.0;
|
|
304
|
+
/**
|
|
305
|
+
* @internal
|
|
306
|
+
*/
|
|
307
|
+
this.globalRightIndexTipProximity = 0.0;
|
|
308
|
+
/**
|
|
309
|
+
* @internal
|
|
310
|
+
*/
|
|
311
|
+
this.globalLeftIndexTipPosition = new Vector4(0.5, 0.0, -0.55, 1.0);
|
|
312
|
+
/**
|
|
313
|
+
* @internal
|
|
314
|
+
*/
|
|
315
|
+
this.globaRightIndexTipPosition = new Vector4(0.0, 0.0, 0.0, 1.0);
|
|
316
|
+
/**
|
|
317
|
+
* @internal
|
|
318
|
+
*/
|
|
319
|
+
this.globalLeftThumbTipPosition = new Vector4(0.5, 0.0, -0.55, 1.0);
|
|
320
|
+
/**
|
|
321
|
+
* @internal
|
|
322
|
+
*/
|
|
323
|
+
this.globalRightThumbTipPosition = new Vector4(0.0, 0.0, 0.0, 1.0);
|
|
324
|
+
/**
|
|
325
|
+
* @internal
|
|
326
|
+
*/
|
|
327
|
+
this.globalLeftIndexMiddlePosition = new Vector4(0.5, 0.0, -0.55, 1.0);
|
|
328
|
+
/**
|
|
329
|
+
* @internal
|
|
330
|
+
*/
|
|
331
|
+
this.globalRightIndexMiddlePosition = new Vector4(0.0, 0.0, 0.0, 1.0);
|
|
332
|
+
this.alphaMode = Constants.ALPHA_DISABLE;
|
|
333
|
+
this.backFaceCulling = false;
|
|
334
|
+
const textureUrl = Tools.GetAssetUrl(MRDLSliderThumbMaterial.BLUE_GRADIENT_TEXTURE_URL);
|
|
335
|
+
this._blueGradientTexture = new Texture(textureUrl, scene, true, false, Texture.NEAREST_SAMPLINGMODE);
|
|
336
|
+
this._decalTexture = new Texture("", this.getScene());
|
|
337
|
+
this._reflectionMapTexture = new Texture("", this.getScene());
|
|
338
|
+
this._indirectEnvTexture = new Texture("", this.getScene());
|
|
339
|
+
}
|
|
340
|
+
needAlphaBlending() {
|
|
341
|
+
return false;
|
|
342
|
+
}
|
|
343
|
+
needAlphaTesting() {
|
|
344
|
+
return false;
|
|
345
|
+
}
|
|
346
|
+
getAlphaTestTexture() {
|
|
347
|
+
return null;
|
|
348
|
+
}
|
|
349
|
+
// Methods
|
|
350
|
+
isReadyForSubMesh(mesh, subMesh) {
|
|
351
|
+
const drawWrapper = subMesh._drawWrapper;
|
|
352
|
+
if (this.isFrozen) {
|
|
353
|
+
if (drawWrapper.effect && drawWrapper._wasPreviouslyReady) {
|
|
354
|
+
return true;
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
if (!subMesh.materialDefines) {
|
|
358
|
+
subMesh.materialDefines = new MRDLSliderThumbMaterialDefines();
|
|
359
|
+
}
|
|
360
|
+
const defines = subMesh.materialDefines;
|
|
361
|
+
const scene = this.getScene();
|
|
362
|
+
if (this._isReadyForSubMesh(subMesh)) {
|
|
363
|
+
return true;
|
|
364
|
+
}
|
|
365
|
+
const engine = scene.getEngine();
|
|
366
|
+
// Attribs
|
|
367
|
+
PrepareDefinesForAttributes(mesh, defines, false, false);
|
|
368
|
+
// Get correct effect
|
|
369
|
+
if (defines.isDirty) {
|
|
370
|
+
defines.markAsProcessed();
|
|
371
|
+
scene.resetCachedMaterial();
|
|
372
|
+
// Fallbacks
|
|
373
|
+
const fallbacks = new EffectFallbacks();
|
|
374
|
+
if (defines.FOG) {
|
|
375
|
+
fallbacks.addFallback(1, "FOG");
|
|
376
|
+
}
|
|
377
|
+
HandleFallbacksForShadows(defines, fallbacks);
|
|
378
|
+
defines.IMAGEPROCESSINGPOSTPROCESS = scene.imageProcessingConfiguration.applyByPostProcess;
|
|
379
|
+
//Attributes
|
|
380
|
+
const attribs = [VertexBuffer.PositionKind];
|
|
381
|
+
if (defines.NORMAL) {
|
|
382
|
+
attribs.push(VertexBuffer.NormalKind);
|
|
383
|
+
}
|
|
384
|
+
if (defines.UV1) {
|
|
385
|
+
attribs.push(VertexBuffer.UVKind);
|
|
386
|
+
}
|
|
387
|
+
if (defines.UV2) {
|
|
388
|
+
attribs.push(VertexBuffer.UV2Kind);
|
|
389
|
+
}
|
|
390
|
+
if (defines.VERTEXCOLOR) {
|
|
391
|
+
attribs.push(VertexBuffer.ColorKind);
|
|
392
|
+
}
|
|
393
|
+
if (defines.TANGENT) {
|
|
394
|
+
attribs.push(VertexBuffer.TangentKind);
|
|
395
|
+
}
|
|
396
|
+
PrepareAttributesForInstances(attribs, defines);
|
|
397
|
+
// Legacy browser patch
|
|
398
|
+
const shaderName = "mrdlSliderThumb";
|
|
399
|
+
const join = defines.toString();
|
|
400
|
+
const uniforms = [
|
|
401
|
+
"world",
|
|
402
|
+
"viewProjection",
|
|
403
|
+
"cameraPosition",
|
|
404
|
+
"_Radius_",
|
|
405
|
+
"_Bevel_Front_",
|
|
406
|
+
"_Bevel_Front_Stretch_",
|
|
407
|
+
"_Bevel_Back_",
|
|
408
|
+
"_Bevel_Back_Stretch_",
|
|
409
|
+
"_Radius_Top_Left_",
|
|
410
|
+
"_Radius_Top_Right_",
|
|
411
|
+
"_Radius_Bottom_Left_",
|
|
412
|
+
"_Radius_Bottom_Right_",
|
|
413
|
+
"_Bulge_Enabled_",
|
|
414
|
+
"_Bulge_Height_",
|
|
415
|
+
"_Bulge_Radius_",
|
|
416
|
+
"_Sun_Intensity_",
|
|
417
|
+
"_Sun_Theta_",
|
|
418
|
+
"_Sun_Phi_",
|
|
419
|
+
"_Indirect_Diffuse_",
|
|
420
|
+
"_Albedo_",
|
|
421
|
+
"_Specular_",
|
|
422
|
+
"_Shininess_",
|
|
423
|
+
"_Sharpness_",
|
|
424
|
+
"_Subsurface_",
|
|
425
|
+
"_Left_Color_",
|
|
426
|
+
"_Right_Color_",
|
|
427
|
+
"_Reflection_",
|
|
428
|
+
"_Front_Reflect_",
|
|
429
|
+
"_Edge_Reflect_",
|
|
430
|
+
"_Power_",
|
|
431
|
+
"_Sky_Color_",
|
|
432
|
+
"_Horizon_Color_",
|
|
433
|
+
"_Ground_Color_",
|
|
434
|
+
"_Horizon_Power_",
|
|
435
|
+
"_Reflection_Map_",
|
|
436
|
+
"_Indirect_Environment_",
|
|
437
|
+
"_Width_",
|
|
438
|
+
"_Fuzz_",
|
|
439
|
+
"_Min_Fuzz_",
|
|
440
|
+
"_Clip_Fade_",
|
|
441
|
+
"_Hue_Shift_",
|
|
442
|
+
"_Saturation_Shift_",
|
|
443
|
+
"_Value_Shift_",
|
|
444
|
+
"_Blob_Position_",
|
|
445
|
+
"_Blob_Intensity_",
|
|
446
|
+
"_Blob_Near_Size_",
|
|
447
|
+
"_Blob_Far_Size_",
|
|
448
|
+
"_Blob_Near_Distance_",
|
|
449
|
+
"_Blob_Far_Distance_",
|
|
450
|
+
"_Blob_Fade_Length_",
|
|
451
|
+
"_Blob_Pulse_",
|
|
452
|
+
"_Blob_Fade_",
|
|
453
|
+
"_Blob_Texture_",
|
|
454
|
+
"_Blob_Position_2_",
|
|
455
|
+
"_Blob_Near_Size_2_",
|
|
456
|
+
"_Blob_Pulse_2_",
|
|
457
|
+
"_Blob_Fade_2_",
|
|
458
|
+
"_Left_Index_Pos_",
|
|
459
|
+
"_Right_Index_Pos_",
|
|
460
|
+
"_Left_Index_Middle_Pos_",
|
|
461
|
+
"_Right_Index_Middle_Pos_",
|
|
462
|
+
"_Decal_",
|
|
463
|
+
"_Decal_Scale_XY_",
|
|
464
|
+
"_Decal_Front_Only_",
|
|
465
|
+
"_Rim_Intensity_",
|
|
466
|
+
"_Rim_Texture_",
|
|
467
|
+
"_Rim_Hue_Shift_",
|
|
468
|
+
"_Rim_Saturation_Shift_",
|
|
469
|
+
"_Rim_Value_Shift_",
|
|
470
|
+
"_Iridescence_Intensity_",
|
|
471
|
+
"_Iridescence_Texture_",
|
|
472
|
+
"Use_Global_Left_Index",
|
|
473
|
+
"Use_Global_Right_Index",
|
|
474
|
+
"Global_Left_Index_Tip_Position",
|
|
475
|
+
"Global_Right_Index_Tip_Position",
|
|
476
|
+
"Global_Left_Thumb_Tip_Position",
|
|
477
|
+
"Global_Right_Thumb_Tip_Position",
|
|
478
|
+
"Global_Left_Index_Middle_Position;",
|
|
479
|
+
"Global_Right_Index_Middle_Position",
|
|
480
|
+
"Global_Left_Index_Tip_Proximity",
|
|
481
|
+
"Global_Right_Index_Tip_Proximity",
|
|
482
|
+
];
|
|
483
|
+
const samplers = ["_Rim_Texture_", "_Iridescence_Texture_"];
|
|
484
|
+
const uniformBuffers = [];
|
|
485
|
+
PrepareUniformsAndSamplersList({
|
|
486
|
+
uniformsNames: uniforms,
|
|
487
|
+
uniformBuffersNames: uniformBuffers,
|
|
488
|
+
samplers: samplers,
|
|
489
|
+
defines: defines,
|
|
490
|
+
maxSimultaneousLights: 4,
|
|
491
|
+
});
|
|
492
|
+
subMesh.setEffect(scene.getEngine().createEffect(shaderName, {
|
|
493
|
+
attributes: attribs,
|
|
494
|
+
uniformsNames: uniforms,
|
|
495
|
+
uniformBuffersNames: uniformBuffers,
|
|
496
|
+
samplers: samplers,
|
|
497
|
+
defines: join,
|
|
498
|
+
fallbacks: fallbacks,
|
|
499
|
+
onCompiled: this.onCompiled,
|
|
500
|
+
onError: this.onError,
|
|
501
|
+
indexParameters: { maxSimultaneousLights: 4 },
|
|
502
|
+
}, engine), defines);
|
|
503
|
+
}
|
|
504
|
+
if (!subMesh.effect || !subMesh.effect.isReady()) {
|
|
505
|
+
return false;
|
|
506
|
+
}
|
|
507
|
+
defines._renderId = scene.getRenderId();
|
|
508
|
+
drawWrapper._wasPreviouslyReady = true;
|
|
509
|
+
return true;
|
|
510
|
+
}
|
|
511
|
+
bindForSubMesh(world, mesh, subMesh) {
|
|
512
|
+
const defines = subMesh.materialDefines;
|
|
513
|
+
if (!defines) {
|
|
514
|
+
return;
|
|
515
|
+
}
|
|
516
|
+
const effect = subMesh.effect;
|
|
517
|
+
if (!effect) {
|
|
518
|
+
return;
|
|
519
|
+
}
|
|
520
|
+
this._activeEffect = effect;
|
|
521
|
+
// Matrices
|
|
522
|
+
this.bindOnlyWorldMatrix(world);
|
|
523
|
+
this._activeEffect.setMatrix("viewProjection", this.getScene().getTransformMatrix());
|
|
524
|
+
this._activeEffect.setVector3("cameraPosition", this.getScene().activeCamera.position);
|
|
525
|
+
// "Round Rect"
|
|
526
|
+
this._activeEffect.setFloat("_Radius_", this.radius);
|
|
527
|
+
this._activeEffect.setFloat("_Bevel_Front_", this.bevelFront);
|
|
528
|
+
this._activeEffect.setFloat("_Bevel_Front_Stretch_", this.bevelFrontStretch);
|
|
529
|
+
this._activeEffect.setFloat("_Bevel_Back_", this.bevelBack);
|
|
530
|
+
this._activeEffect.setFloat("_Bevel_Back_Stretch_", this.bevelBackStretch);
|
|
531
|
+
// "Radii Multipliers"
|
|
532
|
+
this._activeEffect.setFloat("_Radius_Top_Left_", this.radiusTopLeft);
|
|
533
|
+
this._activeEffect.setFloat("_Radius_Top_Right_", this.radiusTopRight);
|
|
534
|
+
this._activeEffect.setFloat("_Radius_Bottom_Left_", this.radiusBottomLeft);
|
|
535
|
+
this._activeEffect.setFloat("_Radius_Bottom_Right_", this.radiusBottomRight);
|
|
536
|
+
// "Bulge"
|
|
537
|
+
this._activeEffect.setFloat("_Bulge_Enabled_", this.bulgeEnabled ? 1.0 : 0.0);
|
|
538
|
+
this._activeEffect.setFloat("_Bulge_Height_", this.bulgeHeight);
|
|
539
|
+
this._activeEffect.setFloat("_Bulge_Radius_", this.bulgeRadius);
|
|
540
|
+
// "Sun"
|
|
541
|
+
this._activeEffect.setFloat("_Sun_Intensity_", this.sunIntensity);
|
|
542
|
+
this._activeEffect.setFloat("_Sun_Theta_", this.sunTheta);
|
|
543
|
+
this._activeEffect.setFloat("_Sun_Phi_", this.sunPhi);
|
|
544
|
+
this._activeEffect.setFloat("_Indirect_Diffuse_", this.indirectDiffuse);
|
|
545
|
+
// "Diffuse And Specular"
|
|
546
|
+
this._activeEffect.setDirectColor4("_Albedo_", this.albedo);
|
|
547
|
+
this._activeEffect.setFloat("_Specular_", this.specular);
|
|
548
|
+
this._activeEffect.setFloat("_Shininess_", this.shininess);
|
|
549
|
+
this._activeEffect.setFloat("_Sharpness_", this.sharpness);
|
|
550
|
+
this._activeEffect.setFloat("_Subsurface_", this.subsurface);
|
|
551
|
+
// "Gradient"
|
|
552
|
+
this._activeEffect.setDirectColor4("_Left_Color_", this.leftGradientColor);
|
|
553
|
+
this._activeEffect.setDirectColor4("_Right_Color_", this.rightGradientColor);
|
|
554
|
+
// "Reflection"
|
|
555
|
+
this._activeEffect.setFloat("_Reflection_", this.reflection);
|
|
556
|
+
this._activeEffect.setFloat("_Front_Reflect_", this.frontReflect);
|
|
557
|
+
this._activeEffect.setFloat("_Edge_Reflect_", this.edgeReflect);
|
|
558
|
+
this._activeEffect.setFloat("_Power_", this.power);
|
|
559
|
+
// "Sky Environment"
|
|
560
|
+
//define SKY_ENABLED true;
|
|
561
|
+
this._activeEffect.setDirectColor4("_Sky_Color_", this.skyColor);
|
|
562
|
+
this._activeEffect.setDirectColor4("_Horizon_Color_", this.horizonColor);
|
|
563
|
+
this._activeEffect.setDirectColor4("_Ground_Color_", this.groundColor);
|
|
564
|
+
this._activeEffect.setFloat("_Horizon_Power_", this.horizonPower);
|
|
565
|
+
// "Mapped Environment"
|
|
566
|
+
//define ENV_ENABLE false;
|
|
567
|
+
this._activeEffect.setTexture("_Reflection_Map_", this._reflectionMapTexture);
|
|
568
|
+
this._activeEffect.setTexture("_Indirect_Environment_", this._indirectEnvTexture);
|
|
569
|
+
// "FingerOcclusion"
|
|
570
|
+
//define OCCLUSION_ENABLED false;
|
|
571
|
+
this._activeEffect.setFloat("_Width_", this.width);
|
|
572
|
+
this._activeEffect.setFloat("_Fuzz_", this.fuzz);
|
|
573
|
+
this._activeEffect.setFloat("_Min_Fuzz_", this.minFuzz);
|
|
574
|
+
this._activeEffect.setFloat("_Clip_Fade_", this.clipFade);
|
|
575
|
+
// "View Based Color Shift"
|
|
576
|
+
this._activeEffect.setFloat("_Hue_Shift_", this.hueShift);
|
|
577
|
+
this._activeEffect.setFloat("_Saturation_Shift_", this.saturationShift);
|
|
578
|
+
this._activeEffect.setFloat("_Value_Shift_", this.valueShift);
|
|
579
|
+
// "Blob"
|
|
580
|
+
//define BLOB_ENABLE false;
|
|
581
|
+
this._activeEffect.setVector3("_Blob_Position_", this.blobPosition);
|
|
582
|
+
this._activeEffect.setFloat("_Blob_Intensity_", this.blobIntensity);
|
|
583
|
+
this._activeEffect.setFloat("_Blob_Near_Size_", this.blobNearSize);
|
|
584
|
+
this._activeEffect.setFloat("_Blob_Far_Size_", this.blobFarSize);
|
|
585
|
+
this._activeEffect.setFloat("_Blob_Near_Distance_", this.blobNearDistance);
|
|
586
|
+
this._activeEffect.setFloat("_Blob_Far_Distance_", this.blobFarDistance);
|
|
587
|
+
this._activeEffect.setFloat("_Blob_Fade_Length_", this.blobFadeLength);
|
|
588
|
+
this._activeEffect.setFloat("_Blob_Pulse_", this.blobPulse);
|
|
589
|
+
this._activeEffect.setFloat("_Blob_Fade_", this.blobFade);
|
|
590
|
+
// "Blob Texture"
|
|
591
|
+
this._activeEffect.setTexture("_Blob_Texture_", this.blobTexture);
|
|
592
|
+
// "Blob 2"
|
|
593
|
+
//define BLOB_ENABLE_2 true;
|
|
594
|
+
this._activeEffect.setVector3("_Blob_Position_2_", this.blobPosition2);
|
|
595
|
+
this._activeEffect.setFloat("_Blob_Near_Size_2_", this.blobNearSize2);
|
|
596
|
+
this._activeEffect.setFloat("_Blob_Pulse_2_", this.blobPulse2);
|
|
597
|
+
this._activeEffect.setFloat("_Blob_Fade_2_", this.blobFade2);
|
|
598
|
+
// "Finger Positions"
|
|
599
|
+
this._activeEffect.setVector3("_Left_Index_Pos_", this.leftIndexPosition);
|
|
600
|
+
this._activeEffect.setVector3("_Right_Index_Pos_", this.rightIndexPosition);
|
|
601
|
+
this._activeEffect.setVector3("_Left_Index_Middle_Pos_", this.leftIndexMiddlePosition);
|
|
602
|
+
this._activeEffect.setVector3("_Right_Index_Middle_Pos_", this.rightIndexMiddlePosition);
|
|
603
|
+
// "Decal Texture"
|
|
604
|
+
//define DECAL_ENABLE false;
|
|
605
|
+
this._activeEffect.setTexture("_Decal_", this._decalTexture);
|
|
606
|
+
this._activeEffect.setVector2("_Decal_Scale_XY_", this.decalScaleXY);
|
|
607
|
+
this._activeEffect.setFloat("_Decal_Front_Only_", this.decalFrontOnly ? 1.0 : 0.0);
|
|
608
|
+
// "Rim Light"
|
|
609
|
+
this._activeEffect.setFloat("_Rim_Intensity_", this.rimIntensity);
|
|
610
|
+
this._activeEffect.setTexture("_Rim_Texture_", this._blueGradientTexture);
|
|
611
|
+
this._activeEffect.setFloat("_Rim_Hue_Shift_", this.rimHueShift);
|
|
612
|
+
this._activeEffect.setFloat("_Rim_Saturation_Shift_", this.rimSaturationShift);
|
|
613
|
+
this._activeEffect.setFloat("_Rim_Value_Shift_", this.rimValueShift);
|
|
614
|
+
// "Iridescence"
|
|
615
|
+
//define IRIDESCENCE_ENABLED true;
|
|
616
|
+
this._activeEffect.setFloat("_Iridescence_Intensity_", this.iridescenceIntensity);
|
|
617
|
+
this._activeEffect.setTexture("_Iridescence_Texture_", this._blueGradientTexture);
|
|
618
|
+
// Global inputs
|
|
619
|
+
this._activeEffect.setFloat("Use_Global_Left_Index", this.useGlobalLeftIndex);
|
|
620
|
+
this._activeEffect.setFloat("Use_Global_Right_Index", this.useGlobalRightIndex);
|
|
621
|
+
this._activeEffect.setVector4("Global_Left_Index_Tip_Position", this.globalLeftIndexTipPosition);
|
|
622
|
+
this._activeEffect.setVector4("Global_Right_Index_Tip_Position", this.globaRightIndexTipPosition);
|
|
623
|
+
this._activeEffect.setVector4("Global_Left_Thumb_Tip_Position", this.globalLeftThumbTipPosition);
|
|
624
|
+
this._activeEffect.setVector4("Global_Right_Thumb_Tip_Position", this.globalRightThumbTipPosition);
|
|
625
|
+
this._activeEffect.setVector4("Global_Left_Index_Middle_Position", this.globalLeftIndexMiddlePosition);
|
|
626
|
+
this._activeEffect.setVector4("Global_Right_Index_Middle_Position", this.globalRightIndexMiddlePosition);
|
|
627
|
+
this._activeEffect.setFloat("Global_Left_Index_Tip_Proximity", this.globalLeftIndexTipProximity);
|
|
628
|
+
this._activeEffect.setFloat("Global_Right_Index_Tip_Proximity", this.globalRightIndexTipProximity);
|
|
629
|
+
this._afterBind(mesh, this._activeEffect, subMesh);
|
|
630
|
+
}
|
|
631
|
+
/**
|
|
632
|
+
* Get the list of animatables in the material.
|
|
633
|
+
* @returns the list of animatables object used in the material
|
|
634
|
+
*/
|
|
635
|
+
getAnimatables() {
|
|
636
|
+
return [];
|
|
637
|
+
}
|
|
638
|
+
dispose(forceDisposeEffect) {
|
|
639
|
+
super.dispose(forceDisposeEffect);
|
|
640
|
+
this._reflectionMapTexture.dispose();
|
|
641
|
+
this._indirectEnvTexture.dispose();
|
|
642
|
+
this._blueGradientTexture.dispose();
|
|
643
|
+
this._decalTexture.dispose();
|
|
644
|
+
}
|
|
645
|
+
clone(name) {
|
|
646
|
+
return SerializationHelper.Clone(() => new MRDLSliderThumbMaterial(name, this.getScene()), this);
|
|
647
|
+
}
|
|
648
|
+
serialize() {
|
|
649
|
+
const serializationObject = super.serialize();
|
|
650
|
+
serializationObject.customType = "BABYLON.MRDLSliderThumbMaterial";
|
|
651
|
+
return serializationObject;
|
|
652
|
+
}
|
|
653
|
+
getClassName() {
|
|
654
|
+
return "MRDLSliderThumbMaterial";
|
|
655
|
+
}
|
|
656
|
+
// Statics
|
|
657
|
+
static Parse(source, scene, rootUrl) {
|
|
658
|
+
return SerializationHelper.Parse(() => new MRDLSliderThumbMaterial(source.name, scene), source, scene, rootUrl);
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
/**
|
|
662
|
+
* URL pointing to the texture used to define the coloring for the Iridescent Map effect.
|
|
663
|
+
*/
|
|
664
|
+
MRDLSliderThumbMaterial.BLUE_GRADIENT_TEXTURE_URL = "https://assets.babylonjs.com/core/MRTK/MRDL/mrtk-mrdl-blue-gradient.png";
|
|
665
|
+
__decorate([
|
|
666
|
+
serialize()
|
|
667
|
+
], MRDLSliderThumbMaterial.prototype, "radius", void 0);
|
|
668
|
+
__decorate([
|
|
669
|
+
serialize()
|
|
670
|
+
], MRDLSliderThumbMaterial.prototype, "bevelFront", void 0);
|
|
671
|
+
__decorate([
|
|
672
|
+
serialize()
|
|
673
|
+
], MRDLSliderThumbMaterial.prototype, "bevelFrontStretch", void 0);
|
|
674
|
+
__decorate([
|
|
675
|
+
serialize()
|
|
676
|
+
], MRDLSliderThumbMaterial.prototype, "bevelBack", void 0);
|
|
677
|
+
__decorate([
|
|
678
|
+
serialize()
|
|
679
|
+
], MRDLSliderThumbMaterial.prototype, "bevelBackStretch", void 0);
|
|
680
|
+
__decorate([
|
|
681
|
+
serialize()
|
|
682
|
+
], MRDLSliderThumbMaterial.prototype, "radiusTopLeft", void 0);
|
|
683
|
+
__decorate([
|
|
684
|
+
serialize()
|
|
685
|
+
], MRDLSliderThumbMaterial.prototype, "radiusTopRight", void 0);
|
|
686
|
+
__decorate([
|
|
687
|
+
serialize()
|
|
688
|
+
], MRDLSliderThumbMaterial.prototype, "radiusBottomLeft", void 0);
|
|
689
|
+
__decorate([
|
|
690
|
+
serialize()
|
|
691
|
+
], MRDLSliderThumbMaterial.prototype, "radiusBottomRight", void 0);
|
|
692
|
+
__decorate([
|
|
693
|
+
serialize()
|
|
694
|
+
], MRDLSliderThumbMaterial.prototype, "bulgeEnabled", void 0);
|
|
695
|
+
__decorate([
|
|
696
|
+
serialize()
|
|
697
|
+
], MRDLSliderThumbMaterial.prototype, "bulgeHeight", void 0);
|
|
698
|
+
__decorate([
|
|
699
|
+
serialize()
|
|
700
|
+
], MRDLSliderThumbMaterial.prototype, "bulgeRadius", void 0);
|
|
701
|
+
__decorate([
|
|
702
|
+
serialize()
|
|
703
|
+
], MRDLSliderThumbMaterial.prototype, "sunIntensity", void 0);
|
|
704
|
+
__decorate([
|
|
705
|
+
serialize()
|
|
706
|
+
], MRDLSliderThumbMaterial.prototype, "sunTheta", void 0);
|
|
707
|
+
__decorate([
|
|
708
|
+
serialize()
|
|
709
|
+
], MRDLSliderThumbMaterial.prototype, "sunPhi", void 0);
|
|
710
|
+
__decorate([
|
|
711
|
+
serialize()
|
|
712
|
+
], MRDLSliderThumbMaterial.prototype, "indirectDiffuse", void 0);
|
|
713
|
+
__decorate([
|
|
714
|
+
serialize()
|
|
715
|
+
], MRDLSliderThumbMaterial.prototype, "albedo", void 0);
|
|
716
|
+
__decorate([
|
|
717
|
+
serialize()
|
|
718
|
+
], MRDLSliderThumbMaterial.prototype, "specular", void 0);
|
|
719
|
+
__decorate([
|
|
720
|
+
serialize()
|
|
721
|
+
], MRDLSliderThumbMaterial.prototype, "shininess", void 0);
|
|
722
|
+
__decorate([
|
|
723
|
+
serialize()
|
|
724
|
+
], MRDLSliderThumbMaterial.prototype, "sharpness", void 0);
|
|
725
|
+
__decorate([
|
|
726
|
+
serialize()
|
|
727
|
+
], MRDLSliderThumbMaterial.prototype, "subsurface", void 0);
|
|
728
|
+
__decorate([
|
|
729
|
+
serialize()
|
|
730
|
+
], MRDLSliderThumbMaterial.prototype, "leftGradientColor", void 0);
|
|
731
|
+
__decorate([
|
|
732
|
+
serialize()
|
|
733
|
+
], MRDLSliderThumbMaterial.prototype, "rightGradientColor", void 0);
|
|
734
|
+
__decorate([
|
|
735
|
+
serialize()
|
|
736
|
+
], MRDLSliderThumbMaterial.prototype, "reflection", void 0);
|
|
737
|
+
__decorate([
|
|
738
|
+
serialize()
|
|
739
|
+
], MRDLSliderThumbMaterial.prototype, "frontReflect", void 0);
|
|
740
|
+
__decorate([
|
|
741
|
+
serialize()
|
|
742
|
+
], MRDLSliderThumbMaterial.prototype, "edgeReflect", void 0);
|
|
743
|
+
__decorate([
|
|
744
|
+
serialize()
|
|
745
|
+
], MRDLSliderThumbMaterial.prototype, "power", void 0);
|
|
746
|
+
__decorate([
|
|
747
|
+
serialize()
|
|
748
|
+
], MRDLSliderThumbMaterial.prototype, "skyColor", void 0);
|
|
749
|
+
__decorate([
|
|
750
|
+
serialize()
|
|
751
|
+
], MRDLSliderThumbMaterial.prototype, "horizonColor", void 0);
|
|
752
|
+
__decorate([
|
|
753
|
+
serialize()
|
|
754
|
+
], MRDLSliderThumbMaterial.prototype, "groundColor", void 0);
|
|
755
|
+
__decorate([
|
|
756
|
+
serialize()
|
|
757
|
+
], MRDLSliderThumbMaterial.prototype, "horizonPower", void 0);
|
|
758
|
+
__decorate([
|
|
759
|
+
serialize()
|
|
760
|
+
], MRDLSliderThumbMaterial.prototype, "width", void 0);
|
|
761
|
+
__decorate([
|
|
762
|
+
serialize()
|
|
763
|
+
], MRDLSliderThumbMaterial.prototype, "fuzz", void 0);
|
|
764
|
+
__decorate([
|
|
765
|
+
serialize()
|
|
766
|
+
], MRDLSliderThumbMaterial.prototype, "minFuzz", void 0);
|
|
767
|
+
__decorate([
|
|
768
|
+
serialize()
|
|
769
|
+
], MRDLSliderThumbMaterial.prototype, "clipFade", void 0);
|
|
770
|
+
__decorate([
|
|
771
|
+
serialize()
|
|
772
|
+
], MRDLSliderThumbMaterial.prototype, "hueShift", void 0);
|
|
773
|
+
__decorate([
|
|
774
|
+
serialize()
|
|
775
|
+
], MRDLSliderThumbMaterial.prototype, "saturationShift", void 0);
|
|
776
|
+
__decorate([
|
|
777
|
+
serialize()
|
|
778
|
+
], MRDLSliderThumbMaterial.prototype, "valueShift", void 0);
|
|
779
|
+
__decorate([
|
|
780
|
+
serialize()
|
|
781
|
+
], MRDLSliderThumbMaterial.prototype, "blobPosition", void 0);
|
|
782
|
+
__decorate([
|
|
783
|
+
serialize()
|
|
784
|
+
], MRDLSliderThumbMaterial.prototype, "blobIntensity", void 0);
|
|
785
|
+
__decorate([
|
|
786
|
+
serialize()
|
|
787
|
+
], MRDLSliderThumbMaterial.prototype, "blobNearSize", void 0);
|
|
788
|
+
__decorate([
|
|
789
|
+
serialize()
|
|
790
|
+
], MRDLSliderThumbMaterial.prototype, "blobFarSize", void 0);
|
|
791
|
+
__decorate([
|
|
792
|
+
serialize()
|
|
793
|
+
], MRDLSliderThumbMaterial.prototype, "blobNearDistance", void 0);
|
|
794
|
+
__decorate([
|
|
795
|
+
serialize()
|
|
796
|
+
], MRDLSliderThumbMaterial.prototype, "blobFarDistance", void 0);
|
|
797
|
+
__decorate([
|
|
798
|
+
serialize()
|
|
799
|
+
], MRDLSliderThumbMaterial.prototype, "blobFadeLength", void 0);
|
|
800
|
+
__decorate([
|
|
801
|
+
serialize()
|
|
802
|
+
], MRDLSliderThumbMaterial.prototype, "blobPulse", void 0);
|
|
803
|
+
__decorate([
|
|
804
|
+
serialize()
|
|
805
|
+
], MRDLSliderThumbMaterial.prototype, "blobFade", void 0);
|
|
806
|
+
__decorate([
|
|
807
|
+
serialize()
|
|
808
|
+
], MRDLSliderThumbMaterial.prototype, "blobPosition2", void 0);
|
|
809
|
+
__decorate([
|
|
810
|
+
serialize()
|
|
811
|
+
], MRDLSliderThumbMaterial.prototype, "blobNearSize2", void 0);
|
|
812
|
+
__decorate([
|
|
813
|
+
serialize()
|
|
814
|
+
], MRDLSliderThumbMaterial.prototype, "blobPulse2", void 0);
|
|
815
|
+
__decorate([
|
|
816
|
+
serialize()
|
|
817
|
+
], MRDLSliderThumbMaterial.prototype, "blobFade2", void 0);
|
|
818
|
+
__decorate([
|
|
819
|
+
serialize()
|
|
820
|
+
], MRDLSliderThumbMaterial.prototype, "blobTexture", void 0);
|
|
821
|
+
__decorate([
|
|
822
|
+
serialize()
|
|
823
|
+
], MRDLSliderThumbMaterial.prototype, "leftIndexPosition", void 0);
|
|
824
|
+
__decorate([
|
|
825
|
+
serialize()
|
|
826
|
+
], MRDLSliderThumbMaterial.prototype, "rightIndexPosition", void 0);
|
|
827
|
+
__decorate([
|
|
828
|
+
serialize()
|
|
829
|
+
], MRDLSliderThumbMaterial.prototype, "leftIndexMiddlePosition", void 0);
|
|
830
|
+
__decorate([
|
|
831
|
+
serialize()
|
|
832
|
+
], MRDLSliderThumbMaterial.prototype, "rightIndexMiddlePosition", void 0);
|
|
833
|
+
__decorate([
|
|
834
|
+
serialize()
|
|
835
|
+
], MRDLSliderThumbMaterial.prototype, "decalScaleXY", void 0);
|
|
836
|
+
__decorate([
|
|
837
|
+
serialize()
|
|
838
|
+
], MRDLSliderThumbMaterial.prototype, "decalFrontOnly", void 0);
|
|
839
|
+
__decorate([
|
|
840
|
+
serialize()
|
|
841
|
+
], MRDLSliderThumbMaterial.prototype, "rimIntensity", void 0);
|
|
842
|
+
__decorate([
|
|
843
|
+
serialize()
|
|
844
|
+
], MRDLSliderThumbMaterial.prototype, "rimHueShift", void 0);
|
|
845
|
+
__decorate([
|
|
846
|
+
serialize()
|
|
847
|
+
], MRDLSliderThumbMaterial.prototype, "rimSaturationShift", void 0);
|
|
848
|
+
__decorate([
|
|
849
|
+
serialize()
|
|
850
|
+
], MRDLSliderThumbMaterial.prototype, "rimValueShift", void 0);
|
|
851
|
+
__decorate([
|
|
852
|
+
serialize()
|
|
853
|
+
], MRDLSliderThumbMaterial.prototype, "iridescenceIntensity", void 0);
|
|
854
|
+
RegisterClass("BABYLON.GUI.MRDLSliderThumbMaterial", MRDLSliderThumbMaterial);
|
|
855
|
+
//# sourceMappingURL=mrdlSliderThumbMaterial.js.map
|