UNPKG

@babylonjs/gui

Version:

Babylon.js GUI module =====================

855 lines 32.2 kB
import { __decorate } from "@babylonjs/core/tslib.es6.js"; import { serialize } from "@babylonjs/core/Misc/decorators.js"; import { SerializationHelper } from "@babylonjs/core/Misc/decorators.serialization.js"; import { Vector2, Vector3, Vector4 } from "@babylonjs/core/Maths/math.vector.js"; import { Texture } from "@babylonjs/core/Materials/Textures/texture.js"; import { MaterialDefines } from "@babylonjs/core/Materials/materialDefines.js"; import { PushMaterial } from "@babylonjs/core/Materials/pushMaterial.js"; import { VertexBuffer } from "@babylonjs/core/Buffers/buffer.js"; import { RegisterClass } from "@babylonjs/core/Misc/typeStore.js"; import { Color4 } from "@babylonjs/core/Maths/math.color.js"; import { EffectFallbacks } from "@babylonjs/core/Materials/effectFallbacks.js"; import { Constants } from "@babylonjs/core/Engines/constants.js"; import "./shaders/mrdlSliderBar.fragment.js"; import "./shaders/mrdlSliderBar.vertex.js"; import { HandleFallbacksForShadows, PrepareAttributesForInstances, PrepareDefinesForAttributes, PrepareUniformsAndSamplersList } from "@babylonjs/core/Materials/materialHelper.functions.js"; import { Tools } from "@babylonjs/core/Misc/tools.js"; /** @internal */ class MRDLSliderBarMaterialDefines extends MaterialDefines { constructor() { super(); /* "SKY_ENABLED", "BLOB_ENABLE_2", "IRIDESCENCE_ENABLED" */ this.SKY_ENABLED = true; this.BLOB_ENABLE_2 = true; this.IRIDESCENCE_ENABLED = true; this._needNormals = true; this._needUVs = true; this.rebuild(); } } /** * Class used to render Slider Bar material with MRDL */ export class MRDLSliderBarMaterial extends PushMaterial { constructor(name, scene) { super(name, scene); /** * Gets or sets the corner Radius on the slider bar. */ this.radius = 0.6; /** * Gets or sets the Bevel Front on the slider bar. */ this.bevelFront = 0.6; /** * Gets or sets the Bevel Front Stretch on the slider bar. */ this.bevelFrontStretch = 0.077; /** * Gets or sets the Bevel Back on the slider bar. */ this.bevelBack = 0; /** * Gets or sets the Bevel Back Stretch on the slider bar. */ this.bevelBackStretch = 0; /** * Gets or sets the top left Radii Multiplier. */ this.radiusTopLeft = 1.0; /** * Gets or sets the top left Radii Multiplier. */ this.radiusTopRight = 1.0; /** * Gets or sets the top left Radii Multiplier. */ this.radiusBottomLeft = 1.0; /** * Gets or sets the top left Radii Multiplier. */ this.radiusBottomRight = 1.0; /** * Gets or sets whether Bulge is enabled. * Default is false. */ this.bulgeEnabled = false; /** * Gets or sets the Bulge Height. */ this.bulgeHeight = -0.323; /** * Gets or sets the Bulge Radius. */ this.bulgeRadius = 0.73; /** * Gets or sets the Sun Intensity. */ this.sunIntensity = 1.102; /** * Gets or sets the Sun Theta. */ this.sunTheta = 0.76; /** * Gets or sets the Sun Phi. */ this.sunPhi = 0.526; /** * Gets or sets the Indirect Diffuse. */ this.indirectDiffuse = 0.658; /** * Gets or sets the base albedo. */ this.albedo = new Color4(0.0117647, 0.505882, 0.996078, 1); /** * Gets or sets the Specular value. */ this.specular = 0; /** * Gets or sets the Shininess value. */ this.shininess = 10; /** * Gets or sets the Sharpness value. */ this.sharpness = 0; /** * Gets or sets the Subsurface value. */ this.subsurface = 0; /** * Gets or sets the left gradient color. */ this.leftGradientColor = new Color4(0.0117647, 0.505882, 0.996078, 1); /** * Gets or sets the right gradient color. */ this.rightGradientColor = new Color4(0.0117647, 0.505882, 0.996078, 1); /** * Gets or sets the reflection value. */ this.reflection = 0.749; /** * Gets or sets the front reflect value. */ this.frontReflect = 0; /** * Gets or sets the edge reflect value. */ this.edgeReflect = 0.09; /** * Gets or sets the power value. */ this.power = 8.13; /** * Gets or sets the sky color. */ this.skyColor = new Color4(0.0117647, 0.964706, 0.996078, 1); /** * Gets or sets the horizon color. */ this.horizonColor = new Color4(0.0117647, 0.333333, 0.996078, 1); /** * Gets or sets the ground color. */ this.groundColor = new Color4(0, 0.254902, 0.996078, 1); /** * Gets or sets the horizon power value. */ this.horizonPower = 1; /** * Gets or sets the finger occlusion width value. */ this.width = 0.02; /** * Gets or sets the finger occlusion fuzz value. */ this.fuzz = 0.5; /** * Gets or sets the minimum finger occlusion fuzz value. */ this.minFuzz = 0.001; /** * Gets or sets the finger occlusion clip fade value. */ this.clipFade = 0.01; /** * Gets or sets the hue shift value. */ this.hueShift = 0; /** * Gets or sets the saturation shift value. */ this.saturationShift = 0; /** * Gets or sets the value shift. */ this.valueShift = 0; /** * Gets or sets the position of the hover glow effect. */ this.blobPosition = new Vector3(0, 0, 0.1); /** * Gets or sets the intensity of the hover glow effect. */ this.blobIntensity = 0.5; /** * Gets or sets the near size of the hover glow effect. */ this.blobNearSize = 0.01; /** * Gets or sets the far size of the hover glow effect. */ this.blobFarSize = 0.03; /** * Gets or sets the distance considered "near" to the mesh, which controls the size of the hover glow effect (see blobNearSize). */ this.blobNearDistance = 0; /** * Gets or sets the distance considered "far" from the mesh, which controls the size of the hover glow effect (see blobFarSize). */ this.blobFarDistance = 0.08; /** * Gets or sets the length of the hover glow effect fade. */ this.blobFadeLength = 0.576; /** * Gets or sets the progress of the hover glow effect selection animation corresponding to the left pointer (0.0 - 1.0). */ this.blobPulse = 0; /** * Gets or sets the opacity of the hover glow effect corresponding to the left pointer (0.0 - 1.0). Default is 0. */ this.blobFade = 1; /** * Gets or sets the position of the hover glow effect. */ this.blobPosition2 = new Vector3(0.2, 0, 0.1); /** * Gets or sets the size of the hover glow effect when the right pointer is considered "near" to the mesh (see blobNearDistance). */ this.blobNearSize2 = 0.01; /** * Gets or sets the progress of the hover glow effect selection animation corresponding to the right pointer (0.0 - 1.0). */ this.blobPulse2 = 0; /** * Gets or sets the opacity of the hover glow effect corresponding to the right pointer (0.0 - 1.0). Default is 1. */ this.blobFade2 = 1; /** * Gets or sets the texture of the hover glow effect. */ this.blobTexture = new Texture("", this.getScene()); /** * Gets or sets the finger position for left index. */ this.leftIndexPosition = new Vector3(0, 0, 1); /** * Gets or sets the finger position for right index. */ this.rightIndexPosition = new Vector3(-1, -1, -1); /** * Gets or sets the finger position for left index middle position. */ this.leftIndexMiddlePosition = new Vector3(0, 0, 0); /** * Gets or sets the finger position for right index middle position. */ this.rightIndexMiddlePosition = new Vector3(0, 0, 0); /** * Gets or sets the Decal Scle for XY. */ this.decalScaleXY = new Vector2(1.5, 1.5); /** * Gets or sets decalFrontOnly * Default is true */ this.decalFrontOnly = true; /** * Gets or sets the Rim Light intensity. */ this.rimIntensity = 0.287; /** * Gets or sets the Rim Light hue shift value. */ this.rimHueShift = 0; /** * Gets or sets the Rim Light saturation shift value. */ this.rimSaturationShift = 0; /** * Gets or sets the Rim Light value shift. */ this.rimValueShift = -1; /** * Gets or sets the intensity of the iridescence effect. */ this.iridescenceIntensity = 0; /** * @internal */ this.useGlobalLeftIndex = 1.0; /** * @internal */ this.useGlobalRightIndex = 1.0; /** * @internal */ this.globalLeftIndexTipProximity = 0.0; /** * @internal */ this.globalRightIndexTipProximity = 0.0; /** * @internal */ this.globalLeftIndexTipPosition = new Vector4(0.5, 0.0, -0.55, 1.0); /** * @internal */ this.globaRightIndexTipPosition = new Vector4(0.0, 0.0, 0.0, 1.0); /** * @internal */ this.globalLeftThumbTipPosition = new Vector4(0.5, 0.0, -0.55, 1.0); /** * @internal */ this.globalRightThumbTipPosition = new Vector4(0.0, 0.0, 0.0, 1.0); /** * @internal */ this.globalLeftIndexMiddlePosition = new Vector4(0.5, 0.0, -0.55, 1.0); /** * @internal */ this.globalRightIndexMiddlePosition = new Vector4(0.0, 0.0, 0.0, 1.0); this.alphaMode = Constants.ALPHA_DISABLE; this.backFaceCulling = false; const textureUrl = Tools.GetAssetUrl(MRDLSliderBarMaterial.BLUE_GRADIENT_TEXTURE_URL); this._blueGradientTexture = new Texture(textureUrl, this.getScene(), true, false, Texture.NEAREST_SAMPLINGMODE); this._decalTexture = new Texture("", this.getScene()); this._reflectionMapTexture = new Texture("", this.getScene()); this._indirectEnvTexture = new Texture("", this.getScene()); } needAlphaBlending() { return false; } needAlphaTesting() { return false; } getAlphaTestTexture() { return null; } // Methods isReadyForSubMesh(mesh, subMesh) { const drawWrapper = subMesh._drawWrapper; if (this.isFrozen) { if (drawWrapper.effect && drawWrapper._wasPreviouslyReady) { return true; } } if (!subMesh.materialDefines) { subMesh.materialDefines = new MRDLSliderBarMaterialDefines(); } const defines = subMesh.materialDefines; const scene = this.getScene(); if (this._isReadyForSubMesh(subMesh)) { return true; } const engine = scene.getEngine(); // Attribs PrepareDefinesForAttributes(mesh, defines, false, false); // Get correct effect if (defines.isDirty) { defines.markAsProcessed(); scene.resetCachedMaterial(); // Fallbacks const fallbacks = new EffectFallbacks(); if (defines.FOG) { fallbacks.addFallback(1, "FOG"); } HandleFallbacksForShadows(defines, fallbacks); defines.IMAGEPROCESSINGPOSTPROCESS = scene.imageProcessingConfiguration.applyByPostProcess; //Attributes const attribs = [VertexBuffer.PositionKind]; if (defines.NORMAL) { attribs.push(VertexBuffer.NormalKind); } if (defines.UV1) { attribs.push(VertexBuffer.UVKind); } if (defines.UV2) { attribs.push(VertexBuffer.UV2Kind); } if (defines.VERTEXCOLOR) { attribs.push(VertexBuffer.ColorKind); } if (defines.TANGENT) { attribs.push(VertexBuffer.TangentKind); } PrepareAttributesForInstances(attribs, defines); // Legacy browser patch const shaderName = "mrdlSliderBar"; const join = defines.toString(); const uniforms = [ "world", "viewProjection", "cameraPosition", "_Radius_", "_Bevel_Front_", "_Bevel_Front_Stretch_", "_Bevel_Back_", "_Bevel_Back_Stretch_", "_Radius_Top_Left_", "_Radius_Top_Right_", "_Radius_Bottom_Left_", "_Radius_Bottom_Right_", "_Bulge_Enabled_", "_Bulge_Height_", "_Bulge_Radius_", "_Sun_Intensity_", "_Sun_Theta_", "_Sun_Phi_", "_Indirect_Diffuse_", "_Albedo_", "_Specular_", "_Shininess_", "_Sharpness_", "_Subsurface_", "_Left_Color_", "_Right_Color_", "_Reflection_", "_Front_Reflect_", "_Edge_Reflect_", "_Power_", "_Sky_Color_", "_Horizon_Color_", "_Ground_Color_", "_Horizon_Power_", "_Reflection_Map_", "_Indirect_Environment_", "_Width_", "_Fuzz_", "_Min_Fuzz_", "_Clip_Fade_", "_Hue_Shift_", "_Saturation_Shift_", "_Value_Shift_", "_Blob_Position_", "_Blob_Intensity_", "_Blob_Near_Size_", "_Blob_Far_Size_", "_Blob_Near_Distance_", "_Blob_Far_Distance_", "_Blob_Fade_Length_", "_Blob_Pulse_", "_Blob_Fade_", "_Blob_Texture_", "_Blob_Position_2_", "_Blob_Near_Size_2_", "_Blob_Pulse_2_", "_Blob_Fade_2_", "_Left_Index_Pos_", "_Right_Index_Pos_", "_Left_Index_Middle_Pos_", "_Right_Index_Middle_Pos_", "_Decal_", "_Decal_Scale_XY_", "_Decal_Front_Only_", "_Rim_Intensity_", "_Rim_Texture_", "_Rim_Hue_Shift_", "_Rim_Saturation_Shift_", "_Rim_Value_Shift_", "_Iridescence_Intensity_", "_Iridescence_Texture_", "Use_Global_Left_Index", "Use_Global_Right_Index", "Global_Left_Index_Tip_Position", "Global_Right_Index_Tip_Position", "Global_Left_Thumb_Tip_Position", "Global_Right_Thumb_Tip_Position", "Global_Left_Index_Middle_Position;", "Global_Right_Index_Middle_Position", "Global_Left_Index_Tip_Proximity", "Global_Right_Index_Tip_Proximity", ]; const samplers = ["_Rim_Texture_", "_Iridescence_Texture_"]; const uniformBuffers = []; PrepareUniformsAndSamplersList({ uniformsNames: uniforms, uniformBuffersNames: uniformBuffers, samplers: samplers, defines: defines, maxSimultaneousLights: 4, }); subMesh.setEffect(scene.getEngine().createEffect(shaderName, { attributes: attribs, uniformsNames: uniforms, uniformBuffersNames: uniformBuffers, samplers: samplers, defines: join, fallbacks: fallbacks, onCompiled: this.onCompiled, onError: this.onError, indexParameters: { maxSimultaneousLights: 4 }, }, engine), defines, this._materialContext); } if (!subMesh.effect || !subMesh.effect.isReady()) { return false; } defines._renderId = scene.getRenderId(); drawWrapper._wasPreviouslyReady = true; return true; } bindForSubMesh(world, mesh, subMesh) { const defines = subMesh.materialDefines; if (!defines) { return; } const effect = subMesh.effect; if (!effect) { return; } this._activeEffect = effect; // Matrices this.bindOnlyWorldMatrix(world); this._activeEffect.setMatrix("viewProjection", this.getScene().getTransformMatrix()); this._activeEffect.setVector3("cameraPosition", this.getScene().activeCamera.position); // "Round Rect" this._activeEffect.setFloat("_Radius_", this.radius); this._activeEffect.setFloat("_Bevel_Front_", this.bevelFront); this._activeEffect.setFloat("_Bevel_Front_Stretch_", this.bevelFrontStretch); this._activeEffect.setFloat("_Bevel_Back_", this.bevelBack); this._activeEffect.setFloat("_Bevel_Back_Stretch_", this.bevelBackStretch); // "Radii Multipliers" this._activeEffect.setFloat("_Radius_Top_Left_", this.radiusTopLeft); this._activeEffect.setFloat("_Radius_Top_Right_", this.radiusTopRight); this._activeEffect.setFloat("_Radius_Bottom_Left_", this.radiusBottomLeft); this._activeEffect.setFloat("_Radius_Bottom_Right_", this.radiusBottomRight); // "Bulge" this._activeEffect.setFloat("_Bulge_Enabled_", this.bulgeEnabled ? 1.0 : 0.0); this._activeEffect.setFloat("_Bulge_Height_", this.bulgeHeight); this._activeEffect.setFloat("_Bulge_Radius_", this.bulgeRadius); // "Sun" this._activeEffect.setFloat("_Sun_Intensity_", this.sunIntensity); this._activeEffect.setFloat("_Sun_Theta_", this.sunTheta); this._activeEffect.setFloat("_Sun_Phi_", this.sunPhi); this._activeEffect.setFloat("_Indirect_Diffuse_", this.indirectDiffuse); // "Diffuse And Specular" this._activeEffect.setDirectColor4("_Albedo_", this.albedo); this._activeEffect.setFloat("_Specular_", this.specular); this._activeEffect.setFloat("_Shininess_", this.shininess); this._activeEffect.setFloat("_Sharpness_", this.sharpness); this._activeEffect.setFloat("_Subsurface_", this.subsurface); // "Gradient" this._activeEffect.setDirectColor4("_Left_Color_", this.leftGradientColor); this._activeEffect.setDirectColor4("_Right_Color_", this.rightGradientColor); // "Reflection" this._activeEffect.setFloat("_Reflection_", this.reflection); this._activeEffect.setFloat("_Front_Reflect_", this.frontReflect); this._activeEffect.setFloat("_Edge_Reflect_", this.edgeReflect); this._activeEffect.setFloat("_Power_", this.power); // "Sky Environment" //define SKY_ENABLED true; this._activeEffect.setDirectColor4("_Sky_Color_", this.skyColor); this._activeEffect.setDirectColor4("_Horizon_Color_", this.horizonColor); this._activeEffect.setDirectColor4("_Ground_Color_", this.groundColor); this._activeEffect.setFloat("_Horizon_Power_", this.horizonPower); // "Mapped Environment" //define ENV_ENABLE false; this._activeEffect.setTexture("_Reflection_Map_", this._reflectionMapTexture); this._activeEffect.setTexture("_Indirect_Environment_", this._indirectEnvTexture); // "FingerOcclusion" //define OCCLUSION_ENABLED false; this._activeEffect.setFloat("_Width_", this.width); this._activeEffect.setFloat("_Fuzz_", this.fuzz); this._activeEffect.setFloat("_Min_Fuzz_", this.minFuzz); this._activeEffect.setFloat("_Clip_Fade_", this.clipFade); // "View Based Color Shift" this._activeEffect.setFloat("_Hue_Shift_", this.hueShift); this._activeEffect.setFloat("_Saturation_Shift_", this.saturationShift); this._activeEffect.setFloat("_Value_Shift_", this.valueShift); // "Blob" //define BLOB_ENABLE false; this._activeEffect.setVector3("_Blob_Position_", this.blobPosition); this._activeEffect.setFloat("_Blob_Intensity_", this.blobIntensity); this._activeEffect.setFloat("_Blob_Near_Size_", this.blobNearSize); this._activeEffect.setFloat("_Blob_Far_Size_", this.blobFarSize); this._activeEffect.setFloat("_Blob_Near_Distance_", this.blobNearDistance); this._activeEffect.setFloat("_Blob_Far_Distance_", this.blobFarDistance); this._activeEffect.setFloat("_Blob_Fade_Length_", this.blobFadeLength); this._activeEffect.setFloat("_Blob_Pulse_", this.blobPulse); this._activeEffect.setFloat("_Blob_Fade_", this.blobFade); // "Blob Texture" this._activeEffect.setTexture("_Blob_Texture_", this.blobTexture); // "Blob 2" //define BLOB_ENABLE_2 true; this._activeEffect.setVector3("_Blob_Position_2_", this.blobPosition2); this._activeEffect.setFloat("_Blob_Near_Size_2_", this.blobNearSize2); this._activeEffect.setFloat("_Blob_Pulse_2_", this.blobPulse2); this._activeEffect.setFloat("_Blob_Fade_2_", this.blobFade2); // "Finger Positions" this._activeEffect.setVector3("_Left_Index_Pos_", this.leftIndexPosition); this._activeEffect.setVector3("_Right_Index_Pos_", this.rightIndexPosition); this._activeEffect.setVector3("_Left_Index_Middle_Pos_", this.leftIndexMiddlePosition); this._activeEffect.setVector3("_Right_Index_Middle_Pos_", this.rightIndexMiddlePosition); // "Decal Texture" //define DECAL_ENABLE false; this._activeEffect.setTexture("_Decal_", this._decalTexture); this._activeEffect.setVector2("_Decal_Scale_XY_", this.decalScaleXY); this._activeEffect.setFloat("_Decal_Front_Only_", this.decalFrontOnly ? 1.0 : 0.0); // "Rim Light" this._activeEffect.setFloat("_Rim_Intensity_", this.rimIntensity); this._activeEffect.setTexture("_Rim_Texture_", this._blueGradientTexture); this._activeEffect.setFloat("_Rim_Hue_Shift_", this.rimHueShift); this._activeEffect.setFloat("_Rim_Saturation_Shift_", this.rimSaturationShift); this._activeEffect.setFloat("_Rim_Value_Shift_", this.rimValueShift); // "Iridescence" //define IRIDESCENCE_ENABLED true; this._activeEffect.setFloat("_Iridescence_Intensity_", this.iridescenceIntensity); this._activeEffect.setTexture("_Iridescence_Texture_", this._blueGradientTexture); // Global inputs this._activeEffect.setFloat("Use_Global_Left_Index", this.useGlobalLeftIndex); this._activeEffect.setFloat("Use_Global_Right_Index", this.useGlobalRightIndex); this._activeEffect.setVector4("Global_Left_Index_Tip_Position", this.globalLeftIndexTipPosition); this._activeEffect.setVector4("Global_Right_Index_Tip_Position", this.globaRightIndexTipPosition); this._activeEffect.setVector4("Global_Left_Thumb_Tip_Position", this.globalLeftThumbTipPosition); this._activeEffect.setVector4("Global_Right_Thumb_Tip_Position", this.globalRightThumbTipPosition); this._activeEffect.setVector4("Global_Left_Index_Middle_Position", this.globalLeftIndexMiddlePosition); this._activeEffect.setVector4("Global_Right_Index_Middle_Position", this.globalRightIndexMiddlePosition); this._activeEffect.setFloat("Global_Left_Index_Tip_Proximity", this.globalLeftIndexTipProximity); this._activeEffect.setFloat("Global_Right_Index_Tip_Proximity", this.globalRightIndexTipProximity); this._afterBind(mesh, this._activeEffect, subMesh); } /** * Get the list of animatables in the material. * @returns the list of animatables object used in the material */ getAnimatables() { return []; } dispose(forceDisposeEffect) { super.dispose(forceDisposeEffect); this._reflectionMapTexture.dispose(); this._indirectEnvTexture.dispose(); this._blueGradientTexture.dispose(); this._decalTexture.dispose(); } clone(name) { return SerializationHelper.Clone(() => new MRDLSliderBarMaterial(name, this.getScene()), this); } serialize() { const serializationObject = super.serialize(); serializationObject.customType = "BABYLON.MRDLSliderBarMaterial"; return serializationObject; } getClassName() { return "MRDLSliderBarMaterial"; } // Statics static Parse(source, scene, rootUrl) { return SerializationHelper.Parse(() => new MRDLSliderBarMaterial(source.name, scene), source, scene, rootUrl); } } /** * URL pointing to the texture used to define the coloring for the Iridescent Map effect. */ MRDLSliderBarMaterial.BLUE_GRADIENT_TEXTURE_URL = "https://assets.babylonjs.com/core/MRTK/MRDL/mrtk-mrdl-blue-gradient.png"; __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "radius", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "bevelFront", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "bevelFrontStretch", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "bevelBack", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "bevelBackStretch", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "radiusTopLeft", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "radiusTopRight", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "radiusBottomLeft", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "radiusBottomRight", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "bulgeEnabled", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "bulgeHeight", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "bulgeRadius", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "sunIntensity", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "sunTheta", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "sunPhi", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "indirectDiffuse", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "albedo", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "specular", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "shininess", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "sharpness", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "subsurface", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "leftGradientColor", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "rightGradientColor", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "reflection", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "frontReflect", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "edgeReflect", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "power", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "skyColor", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "horizonColor", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "groundColor", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "horizonPower", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "width", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "fuzz", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "minFuzz", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "clipFade", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "hueShift", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "saturationShift", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "valueShift", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "blobPosition", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "blobIntensity", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "blobNearSize", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "blobFarSize", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "blobNearDistance", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "blobFarDistance", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "blobFadeLength", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "blobPulse", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "blobFade", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "blobPosition2", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "blobNearSize2", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "blobPulse2", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "blobFade2", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "blobTexture", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "leftIndexPosition", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "rightIndexPosition", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "leftIndexMiddlePosition", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "rightIndexMiddlePosition", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "decalScaleXY", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "decalFrontOnly", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "rimIntensity", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "rimHueShift", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "rimSaturationShift", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "rimValueShift", void 0); __decorate([ serialize() ], MRDLSliderBarMaterial.prototype, "iridescenceIntensity", void 0); RegisterClass("BABYLON.GUI.MRDLSliderBarMaterial", MRDLSliderBarMaterial); //# sourceMappingURL=mrdlSliderBarMaterial.js.map