babylonjs-gui 5.23.0 → 5.25.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.
- package/babylon.gui.d.ts +268 -523
- package/babylon.gui.js +254 -509
- package/babylon.gui.js.map +1 -1
- package/babylon.gui.min.js.map +1 -1
- package/babylon.gui.module.d.ts +536 -1046
- package/package.json +2 -2
package/babylon.gui.js
CHANGED
|
@@ -501,15 +501,15 @@ var AdvancedDynamicTexture = /** @class */ (function (_super) {
|
|
|
501
501
|
if (invertY === void 0) { invertY = true; }
|
|
502
502
|
var _this = _super.call(this, name, { width: width, height: height }, scene, generateMipMaps, samplingMode, core_Misc_observable__WEBPACK_IMPORTED_MODULE_1__.Constants.TEXTUREFORMAT_RGBA, invertY) || this;
|
|
503
503
|
_this._isDirty = false;
|
|
504
|
-
/** @
|
|
504
|
+
/** @internal */
|
|
505
505
|
_this._rootContainer = new _controls_container__WEBPACK_IMPORTED_MODULE_2__.Container("root");
|
|
506
|
-
/** @
|
|
506
|
+
/** @internal */
|
|
507
507
|
_this._lastControlOver = {};
|
|
508
|
-
/** @
|
|
508
|
+
/** @internal */
|
|
509
509
|
_this._lastControlDown = {};
|
|
510
|
-
/** @
|
|
510
|
+
/** @internal */
|
|
511
511
|
_this._capturingControl = {};
|
|
512
|
-
/** @
|
|
512
|
+
/** @internal */
|
|
513
513
|
_this._linkedControls = new Array();
|
|
514
514
|
_this._isFullscreen = false;
|
|
515
515
|
_this._fullscreenViewport = new core_Misc_observable__WEBPACK_IMPORTED_MODULE_1__.Viewport(0, 0, 1, 1);
|
|
@@ -521,11 +521,11 @@ var AdvancedDynamicTexture = /** @class */ (function (_super) {
|
|
|
521
521
|
_this._renderScale = 1;
|
|
522
522
|
_this._cursorChanged = false;
|
|
523
523
|
_this._defaultMousePointerId = 0;
|
|
524
|
-
/** @
|
|
524
|
+
/** @internal */
|
|
525
525
|
_this._capturedPointerIds = new Set();
|
|
526
|
-
/** @
|
|
526
|
+
/** @internal */
|
|
527
527
|
_this._numLayoutCalls = 0;
|
|
528
|
-
/** @
|
|
528
|
+
/** @internal */
|
|
529
529
|
_this._numRenderCalls = 0;
|
|
530
530
|
/**
|
|
531
531
|
* Define type to string to ensure compatibility across browsers
|
|
@@ -576,8 +576,7 @@ var AdvancedDynamicTexture = /** @class */ (function (_super) {
|
|
|
576
576
|
_this._invalidatedRectangle = null;
|
|
577
577
|
_this._clearMeasure = new _measure__WEBPACK_IMPORTED_MODULE_5__.Measure(0, 0, 0, 0);
|
|
578
578
|
/**
|
|
579
|
-
* @
|
|
580
|
-
* @hidden
|
|
579
|
+
* @internal
|
|
581
580
|
*/
|
|
582
581
|
_this._onClipboardCopy = function (rawEvt) {
|
|
583
582
|
var evt = rawEvt;
|
|
@@ -586,8 +585,7 @@ var AdvancedDynamicTexture = /** @class */ (function (_super) {
|
|
|
586
585
|
evt.preventDefault();
|
|
587
586
|
};
|
|
588
587
|
/**
|
|
589
|
-
* @
|
|
590
|
-
* @hidden
|
|
588
|
+
* @internal
|
|
591
589
|
*/
|
|
592
590
|
_this._onClipboardCut = function (rawEvt) {
|
|
593
591
|
var evt = rawEvt;
|
|
@@ -596,8 +594,7 @@ var AdvancedDynamicTexture = /** @class */ (function (_super) {
|
|
|
596
594
|
evt.preventDefault();
|
|
597
595
|
};
|
|
598
596
|
/**
|
|
599
|
-
* @
|
|
600
|
-
* @hidden
|
|
597
|
+
* @internal
|
|
601
598
|
*/
|
|
602
599
|
_this._onClipboardPaste = function (rawEvt) {
|
|
603
600
|
var evt = rawEvt;
|
|
@@ -825,7 +822,7 @@ var AdvancedDynamicTexture = /** @class */ (function (_super) {
|
|
|
825
822
|
* Will return all controls that are inside this texture
|
|
826
823
|
* @param directDescendantsOnly defines if true only direct descendants of 'this' will be considered, if false direct and also indirect (children of children, an so on in a recursive manner) descendants of 'this' will be considered
|
|
827
824
|
* @param predicate defines an optional predicate that will be called on every evaluated child, the predicate must return true for a given child to be part of the result, otherwise it will be ignored
|
|
828
|
-
* @
|
|
825
|
+
* @returns all child controls
|
|
829
826
|
*/
|
|
830
827
|
AdvancedDynamicTexture.prototype.getDescendants = function (directDescendantsOnly, predicate) {
|
|
831
828
|
return this._rootContainer.getDescendants(directDescendantsOnly, predicate);
|
|
@@ -841,7 +838,7 @@ var AdvancedDynamicTexture = /** @class */ (function (_super) {
|
|
|
841
838
|
/**
|
|
842
839
|
* Will return the first control with the given name
|
|
843
840
|
* @param name defines the name to search for
|
|
844
|
-
* @
|
|
841
|
+
* @returns the first control found or null
|
|
845
842
|
*/
|
|
846
843
|
AdvancedDynamicTexture.prototype.getControlByName = function (name) {
|
|
847
844
|
return this._getControlByKey("name", name);
|
|
@@ -1118,7 +1115,7 @@ var AdvancedDynamicTexture = /** @class */ (function (_super) {
|
|
|
1118
1115
|
}
|
|
1119
1116
|
this.invalidateRect(0, 0, textureSize.width - 1, textureSize.height - 1);
|
|
1120
1117
|
};
|
|
1121
|
-
/** @
|
|
1118
|
+
/** @internal */
|
|
1122
1119
|
AdvancedDynamicTexture.prototype._getGlobalViewport = function () {
|
|
1123
1120
|
var size = this.getSize();
|
|
1124
1121
|
var globalViewPort = this._fullscreenViewport.toGlobal(size.width, size.height);
|
|
@@ -1235,8 +1232,7 @@ var AdvancedDynamicTexture = /** @class */ (function (_super) {
|
|
|
1235
1232
|
this._invalidatedRectangle = null;
|
|
1236
1233
|
};
|
|
1237
1234
|
/**
|
|
1238
|
-
* @
|
|
1239
|
-
* @hidden
|
|
1235
|
+
* @internal
|
|
1240
1236
|
*/
|
|
1241
1237
|
AdvancedDynamicTexture.prototype._changeCursor = function (cursor) {
|
|
1242
1238
|
if (this._rootElement) {
|
|
@@ -1245,9 +1241,7 @@ var AdvancedDynamicTexture = /** @class */ (function (_super) {
|
|
|
1245
1241
|
}
|
|
1246
1242
|
};
|
|
1247
1243
|
/**
|
|
1248
|
-
* @
|
|
1249
|
-
* @param pointerId
|
|
1250
|
-
* @hidden
|
|
1244
|
+
* @internal
|
|
1251
1245
|
*/
|
|
1252
1246
|
AdvancedDynamicTexture.prototype._registerLastControlDown = function (control, pointerId) {
|
|
1253
1247
|
this._lastControlDown[pointerId] = control;
|
|
@@ -1294,9 +1288,7 @@ var AdvancedDynamicTexture = /** @class */ (function (_super) {
|
|
|
1294
1288
|
this._manageFocus();
|
|
1295
1289
|
};
|
|
1296
1290
|
/**
|
|
1297
|
-
* @
|
|
1298
|
-
* @param control
|
|
1299
|
-
* @hidden
|
|
1291
|
+
* @internal
|
|
1300
1292
|
*/
|
|
1301
1293
|
AdvancedDynamicTexture.prototype._cleanControlAfterRemovalFromList = function (list, control) {
|
|
1302
1294
|
for (var pointerId in list) {
|
|
@@ -1310,8 +1302,7 @@ var AdvancedDynamicTexture = /** @class */ (function (_super) {
|
|
|
1310
1302
|
}
|
|
1311
1303
|
};
|
|
1312
1304
|
/**
|
|
1313
|
-
* @
|
|
1314
|
-
* @hidden
|
|
1305
|
+
* @internal
|
|
1315
1306
|
*/
|
|
1316
1307
|
AdvancedDynamicTexture.prototype._cleanControlAfterRemoval = function (control) {
|
|
1317
1308
|
this._cleanControlAfterRemovalFromList(this._lastControlDown, control);
|
|
@@ -1980,15 +1971,7 @@ var Button = /** @class */ (function (_super) {
|
|
|
1980
1971
|
};
|
|
1981
1972
|
// While being a container, the button behaves like a control.
|
|
1982
1973
|
/**
|
|
1983
|
-
* @
|
|
1984
|
-
* @param y
|
|
1985
|
-
* @param pi
|
|
1986
|
-
* @param type
|
|
1987
|
-
* @param pointerId
|
|
1988
|
-
* @param buttonIndex
|
|
1989
|
-
* @param deltaX
|
|
1990
|
-
* @param deltaY
|
|
1991
|
-
* @hidden
|
|
1974
|
+
* @internal
|
|
1992
1975
|
*/
|
|
1993
1976
|
Button.prototype._processPicking = function (x, y, pi, type, pointerId, buttonIndex, deltaX, deltaY) {
|
|
1994
1977
|
if (!this._isEnabled || !this.isHitTestVisible || !this.isVisible || this.notRenderable) {
|
|
@@ -2014,9 +1997,7 @@ var Button = /** @class */ (function (_super) {
|
|
|
2014
1997
|
return true;
|
|
2015
1998
|
};
|
|
2016
1999
|
/**
|
|
2017
|
-
* @
|
|
2018
|
-
* @param pi
|
|
2019
|
-
* @hidden
|
|
2000
|
+
* @internal
|
|
2020
2001
|
*/
|
|
2021
2002
|
Button.prototype._onPointerEnter = function (target, pi) {
|
|
2022
2003
|
if (!_super.prototype._onPointerEnter.call(this, target, pi)) {
|
|
@@ -2028,10 +2009,7 @@ var Button = /** @class */ (function (_super) {
|
|
|
2028
2009
|
return true;
|
|
2029
2010
|
};
|
|
2030
2011
|
/**
|
|
2031
|
-
* @
|
|
2032
|
-
* @param pi
|
|
2033
|
-
* @param force
|
|
2034
|
-
* @hidden
|
|
2012
|
+
* @internal
|
|
2035
2013
|
*/
|
|
2036
2014
|
Button.prototype._onPointerOut = function (target, pi, force) {
|
|
2037
2015
|
if (force === void 0) { force = false; }
|
|
@@ -2041,12 +2019,7 @@ var Button = /** @class */ (function (_super) {
|
|
|
2041
2019
|
_super.prototype._onPointerOut.call(this, target, pi, force);
|
|
2042
2020
|
};
|
|
2043
2021
|
/**
|
|
2044
|
-
* @
|
|
2045
|
-
* @param coordinates
|
|
2046
|
-
* @param pointerId
|
|
2047
|
-
* @param buttonIndex
|
|
2048
|
-
* @param pi
|
|
2049
|
-
* @hidden
|
|
2022
|
+
* @internal
|
|
2050
2023
|
*/
|
|
2051
2024
|
Button.prototype._onPointerDown = function (target, coordinates, pointerId, buttonIndex, pi) {
|
|
2052
2025
|
if (!_super.prototype._onPointerDown.call(this, target, coordinates, pointerId, buttonIndex, pi)) {
|
|
@@ -2058,13 +2031,7 @@ var Button = /** @class */ (function (_super) {
|
|
|
2058
2031
|
return true;
|
|
2059
2032
|
};
|
|
2060
2033
|
/**
|
|
2061
|
-
* @
|
|
2062
|
-
* @param coordinates
|
|
2063
|
-
* @param pointerId
|
|
2064
|
-
* @param buttonIndex
|
|
2065
|
-
* @param notifyClick
|
|
2066
|
-
* @param pi
|
|
2067
|
-
* @hidden
|
|
2034
|
+
* @internal
|
|
2068
2035
|
*/
|
|
2069
2036
|
Button.prototype._onPointerUp = function (target, coordinates, pointerId, buttonIndex, notifyClick, pi) {
|
|
2070
2037
|
if (!this.isReadOnly && this.pointerUpAnimation) {
|
|
@@ -2086,9 +2053,7 @@ var Button = /** @class */ (function (_super) {
|
|
|
2086
2053
|
}
|
|
2087
2054
|
};
|
|
2088
2055
|
/**
|
|
2089
|
-
* @
|
|
2090
|
-
* @param host
|
|
2091
|
-
* @hidden
|
|
2056
|
+
* @internal
|
|
2092
2057
|
*/
|
|
2093
2058
|
Button.prototype._parseFromContent = function (serializedObject, host) {
|
|
2094
2059
|
_super.prototype._parseFromContent.call(this, serializedObject, host);
|
|
@@ -2303,8 +2268,7 @@ var Checkbox = /** @class */ (function (_super) {
|
|
|
2303
2268
|
return "Checkbox";
|
|
2304
2269
|
};
|
|
2305
2270
|
/**
|
|
2306
|
-
* @
|
|
2307
|
-
* @hidden
|
|
2271
|
+
* @internal
|
|
2308
2272
|
*/
|
|
2309
2273
|
Checkbox.prototype._draw = function (context) {
|
|
2310
2274
|
context.save();
|
|
@@ -2337,12 +2301,7 @@ var Checkbox = /** @class */ (function (_super) {
|
|
|
2337
2301
|
};
|
|
2338
2302
|
// Events
|
|
2339
2303
|
/**
|
|
2340
|
-
* @
|
|
2341
|
-
* @param coordinates
|
|
2342
|
-
* @param pointerId
|
|
2343
|
-
* @param buttonIndex
|
|
2344
|
-
* @param pi
|
|
2345
|
-
* @hidden
|
|
2304
|
+
* @internal
|
|
2346
2305
|
*/
|
|
2347
2306
|
Checkbox.prototype._onPointerDown = function (target, coordinates, pointerId, buttonIndex, pi) {
|
|
2348
2307
|
if (!_super.prototype._onPointerDown.call(this, target, coordinates, pointerId, buttonIndex, pi)) {
|
|
@@ -2564,8 +2523,7 @@ var ColorPicker = /** @class */ (function (_super) {
|
|
|
2564
2523
|
return "ColorPicker";
|
|
2565
2524
|
};
|
|
2566
2525
|
/**
|
|
2567
|
-
* @
|
|
2568
|
-
* @hidden
|
|
2526
|
+
* @internal
|
|
2569
2527
|
*/
|
|
2570
2528
|
ColorPicker.prototype._preMeasure = function (parentMeasure) {
|
|
2571
2529
|
if (parentMeasure.width < parentMeasure.height) {
|
|
@@ -2668,8 +2626,7 @@ var ColorPicker = /** @class */ (function (_super) {
|
|
|
2668
2626
|
return canvas;
|
|
2669
2627
|
};
|
|
2670
2628
|
/**
|
|
2671
|
-
* @
|
|
2672
|
-
* @hidden
|
|
2629
|
+
* @internal
|
|
2673
2630
|
*/
|
|
2674
2631
|
ColorPicker.prototype._draw = function (context) {
|
|
2675
2632
|
context.save();
|
|
@@ -3876,19 +3833,19 @@ var Container = /** @class */ (function (_super) {
|
|
|
3876
3833
|
function Container(name) {
|
|
3877
3834
|
var _this = _super.call(this, name) || this;
|
|
3878
3835
|
_this.name = name;
|
|
3879
|
-
/** @
|
|
3836
|
+
/** @internal */
|
|
3880
3837
|
_this._children = new Array();
|
|
3881
|
-
/** @
|
|
3838
|
+
/** @internal */
|
|
3882
3839
|
_this._measureForChildren = _measure__WEBPACK_IMPORTED_MODULE_3__.Measure.Empty();
|
|
3883
|
-
/** @
|
|
3840
|
+
/** @internal */
|
|
3884
3841
|
_this._background = "";
|
|
3885
|
-
/** @
|
|
3842
|
+
/** @internal */
|
|
3886
3843
|
_this._adaptWidthToChildren = false;
|
|
3887
|
-
/** @
|
|
3844
|
+
/** @internal */
|
|
3888
3845
|
_this._adaptHeightToChildren = false;
|
|
3889
|
-
/** @
|
|
3846
|
+
/** @internal */
|
|
3890
3847
|
_this._renderToIntermediateTexture = false;
|
|
3891
|
-
/** @
|
|
3848
|
+
/** @internal */
|
|
3892
3849
|
_this._intermediateTexture = null;
|
|
3893
3850
|
/**
|
|
3894
3851
|
* Gets or sets a boolean indicating that layout cycle errors should be displayed on the console
|
|
@@ -4085,8 +4042,7 @@ var Container = /** @class */ (function (_super) {
|
|
|
4085
4042
|
return this;
|
|
4086
4043
|
};
|
|
4087
4044
|
/**
|
|
4088
|
-
* @
|
|
4089
|
-
* @hidden
|
|
4045
|
+
* @internal
|
|
4090
4046
|
*/
|
|
4091
4047
|
Container.prototype._reOrderControl = function (control) {
|
|
4092
4048
|
var linkedMesh = control.linkedMesh;
|
|
@@ -4109,8 +4065,7 @@ var Container = /** @class */ (function (_super) {
|
|
|
4109
4065
|
this._markAsDirty();
|
|
4110
4066
|
};
|
|
4111
4067
|
/**
|
|
4112
|
-
* @
|
|
4113
|
-
* @hidden
|
|
4068
|
+
* @internal
|
|
4114
4069
|
*/
|
|
4115
4070
|
Container.prototype._offsetLeft = function (offset) {
|
|
4116
4071
|
_super.prototype._offsetLeft.call(this, offset);
|
|
@@ -4120,8 +4075,7 @@ var Container = /** @class */ (function (_super) {
|
|
|
4120
4075
|
}
|
|
4121
4076
|
};
|
|
4122
4077
|
/**
|
|
4123
|
-
* @
|
|
4124
|
-
* @hidden
|
|
4078
|
+
* @internal
|
|
4125
4079
|
*/
|
|
4126
4080
|
Container.prototype._offsetTop = function (offset) {
|
|
4127
4081
|
_super.prototype._offsetTop.call(this, offset);
|
|
@@ -4130,7 +4084,7 @@ var Container = /** @class */ (function (_super) {
|
|
|
4130
4084
|
child._offsetTop(offset);
|
|
4131
4085
|
}
|
|
4132
4086
|
};
|
|
4133
|
-
/** @
|
|
4087
|
+
/** @internal */
|
|
4134
4088
|
Container.prototype._markAllAsDirty = function () {
|
|
4135
4089
|
_super.prototype._markAllAsDirty.call(this);
|
|
4136
4090
|
for (var index = 0; index < this._children.length; index++) {
|
|
@@ -4138,8 +4092,7 @@ var Container = /** @class */ (function (_super) {
|
|
|
4138
4092
|
}
|
|
4139
4093
|
};
|
|
4140
4094
|
/**
|
|
4141
|
-
* @
|
|
4142
|
-
* @hidden
|
|
4095
|
+
* @internal
|
|
4143
4096
|
*/
|
|
4144
4097
|
Container.prototype._localDraw = function (context) {
|
|
4145
4098
|
if (this._background) {
|
|
@@ -4156,8 +4109,7 @@ var Container = /** @class */ (function (_super) {
|
|
|
4156
4109
|
}
|
|
4157
4110
|
};
|
|
4158
4111
|
/**
|
|
4159
|
-
* @
|
|
4160
|
-
* @hidden
|
|
4112
|
+
* @internal
|
|
4161
4113
|
*/
|
|
4162
4114
|
Container.prototype._link = function (host) {
|
|
4163
4115
|
_super.prototype._link.call(this, host);
|
|
@@ -4166,14 +4118,12 @@ var Container = /** @class */ (function (_super) {
|
|
|
4166
4118
|
child._link(host);
|
|
4167
4119
|
}
|
|
4168
4120
|
};
|
|
4169
|
-
/** @
|
|
4121
|
+
/** @internal */
|
|
4170
4122
|
Container.prototype._beforeLayout = function () {
|
|
4171
4123
|
// Do nothing
|
|
4172
4124
|
};
|
|
4173
4125
|
/**
|
|
4174
|
-
* @
|
|
4175
|
-
* @param context
|
|
4176
|
-
* @hidden
|
|
4126
|
+
* @internal
|
|
4177
4127
|
*/
|
|
4178
4128
|
Container.prototype._processMeasures = function (parentMeasure, context) {
|
|
4179
4129
|
if (this._isDirty || !this._cachedParentMeasure.isEqualsTo(parentMeasure)) {
|
|
@@ -4195,9 +4145,7 @@ var Container = /** @class */ (function (_super) {
|
|
|
4195
4145
|
}
|
|
4196
4146
|
};
|
|
4197
4147
|
/**
|
|
4198
|
-
* @
|
|
4199
|
-
* @param context
|
|
4200
|
-
* @hidden
|
|
4148
|
+
* @internal
|
|
4201
4149
|
*/
|
|
4202
4150
|
Container.prototype._layout = function (parentMeasure, context) {
|
|
4203
4151
|
var _a, _b;
|
|
@@ -4268,9 +4216,7 @@ var Container = /** @class */ (function (_super) {
|
|
|
4268
4216
|
// Do nothing by default
|
|
4269
4217
|
};
|
|
4270
4218
|
/**
|
|
4271
|
-
* @
|
|
4272
|
-
* @param invalidatedRectangle
|
|
4273
|
-
* @hidden
|
|
4219
|
+
* @internal
|
|
4274
4220
|
*/
|
|
4275
4221
|
Container.prototype._draw = function (context, invalidatedRectangle) {
|
|
4276
4222
|
var renderToIntermediateTextureThisDraw = this._renderToIntermediateTexture && this._intermediateTexture;
|
|
@@ -4325,15 +4271,7 @@ var Container = /** @class */ (function (_super) {
|
|
|
4325
4271
|
}
|
|
4326
4272
|
};
|
|
4327
4273
|
/**
|
|
4328
|
-
* @
|
|
4329
|
-
* @param y
|
|
4330
|
-
* @param pi
|
|
4331
|
-
* @param type
|
|
4332
|
-
* @param pointerId
|
|
4333
|
-
* @param buttonIndex
|
|
4334
|
-
* @param deltaX
|
|
4335
|
-
* @param deltaY
|
|
4336
|
-
* @hidden
|
|
4274
|
+
* @internal
|
|
4337
4275
|
*/
|
|
4338
4276
|
Container.prototype._processPicking = function (x, y, pi, type, pointerId, buttonIndex, deltaX, deltaY) {
|
|
4339
4277
|
if (!this._isEnabled || !this.isVisible || this.notRenderable) {
|
|
@@ -4364,9 +4302,7 @@ var Container = /** @class */ (function (_super) {
|
|
|
4364
4302
|
return this._processObservables(type, x, y, pi, pointerId, buttonIndex, deltaX, deltaY);
|
|
4365
4303
|
};
|
|
4366
4304
|
/**
|
|
4367
|
-
* @
|
|
4368
|
-
* @param context
|
|
4369
|
-
* @hidden
|
|
4305
|
+
* @internal
|
|
4370
4306
|
*/
|
|
4371
4307
|
Container.prototype._additionalProcessing = function (parentMeasure, context) {
|
|
4372
4308
|
_super.prototype._additionalProcessing.call(this, parentMeasure, context);
|
|
@@ -4399,9 +4335,7 @@ var Container = /** @class */ (function (_super) {
|
|
|
4399
4335
|
(_a = this._intermediateTexture) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
4400
4336
|
};
|
|
4401
4337
|
/**
|
|
4402
|
-
* @
|
|
4403
|
-
* @param host
|
|
4404
|
-
* @hidden
|
|
4338
|
+
* @internal
|
|
4405
4339
|
*/
|
|
4406
4340
|
Container.prototype._parseFromContent = function (serializedObject, host) {
|
|
4407
4341
|
_super.prototype._parseFromContent.call(this, serializedObject, host);
|
|
@@ -4482,53 +4416,53 @@ var Control = /** @class */ (function () {
|
|
|
4482
4416
|
this._alpha = 1;
|
|
4483
4417
|
this._alphaSet = false;
|
|
4484
4418
|
this._zIndex = 0;
|
|
4485
|
-
/** @
|
|
4419
|
+
/** @internal */
|
|
4486
4420
|
this._currentMeasure = _measure__WEBPACK_IMPORTED_MODULE_3__.Measure.Empty();
|
|
4487
|
-
/** @
|
|
4421
|
+
/** @internal */
|
|
4488
4422
|
this._tempPaddingMeasure = _measure__WEBPACK_IMPORTED_MODULE_3__.Measure.Empty();
|
|
4489
4423
|
this._fontFamily = "Arial";
|
|
4490
4424
|
this._fontStyle = "";
|
|
4491
4425
|
this._fontWeight = "";
|
|
4492
4426
|
this._fontSize = new _valueAndUnit__WEBPACK_IMPORTED_MODULE_2__.ValueAndUnit(18, _valueAndUnit__WEBPACK_IMPORTED_MODULE_2__.ValueAndUnit.UNITMODE_PIXEL, false);
|
|
4493
|
-
/** @
|
|
4427
|
+
/** @internal */
|
|
4494
4428
|
this._width = new _valueAndUnit__WEBPACK_IMPORTED_MODULE_2__.ValueAndUnit(1, _valueAndUnit__WEBPACK_IMPORTED_MODULE_2__.ValueAndUnit.UNITMODE_PERCENTAGE, false);
|
|
4495
|
-
/** @
|
|
4429
|
+
/** @internal */
|
|
4496
4430
|
this._height = new _valueAndUnit__WEBPACK_IMPORTED_MODULE_2__.ValueAndUnit(1, _valueAndUnit__WEBPACK_IMPORTED_MODULE_2__.ValueAndUnit.UNITMODE_PERCENTAGE, false);
|
|
4497
4431
|
this._color = "";
|
|
4498
4432
|
this._style = null;
|
|
4499
|
-
/** @
|
|
4433
|
+
/** @internal */
|
|
4500
4434
|
this._horizontalAlignment = Control.HORIZONTAL_ALIGNMENT_CENTER;
|
|
4501
|
-
/** @
|
|
4435
|
+
/** @internal */
|
|
4502
4436
|
this._verticalAlignment = Control.VERTICAL_ALIGNMENT_CENTER;
|
|
4503
|
-
/** @
|
|
4437
|
+
/** @internal */
|
|
4504
4438
|
this._isDirty = true;
|
|
4505
|
-
/** @
|
|
4439
|
+
/** @internal */
|
|
4506
4440
|
this._wasDirty = false;
|
|
4507
|
-
/** @
|
|
4441
|
+
/** @internal */
|
|
4508
4442
|
this._tempParentMeasure = _measure__WEBPACK_IMPORTED_MODULE_3__.Measure.Empty();
|
|
4509
|
-
/** @
|
|
4443
|
+
/** @internal */
|
|
4510
4444
|
this._prevCurrentMeasureTransformedIntoGlobalSpace = _measure__WEBPACK_IMPORTED_MODULE_3__.Measure.Empty();
|
|
4511
|
-
/** @
|
|
4445
|
+
/** @internal */
|
|
4512
4446
|
this._cachedParentMeasure = _measure__WEBPACK_IMPORTED_MODULE_3__.Measure.Empty();
|
|
4513
4447
|
this._descendantsOnlyPadding = false;
|
|
4514
4448
|
this._paddingLeft = new _valueAndUnit__WEBPACK_IMPORTED_MODULE_2__.ValueAndUnit(0);
|
|
4515
4449
|
this._paddingRight = new _valueAndUnit__WEBPACK_IMPORTED_MODULE_2__.ValueAndUnit(0);
|
|
4516
4450
|
this._paddingTop = new _valueAndUnit__WEBPACK_IMPORTED_MODULE_2__.ValueAndUnit(0);
|
|
4517
4451
|
this._paddingBottom = new _valueAndUnit__WEBPACK_IMPORTED_MODULE_2__.ValueAndUnit(0);
|
|
4518
|
-
/** @
|
|
4452
|
+
/** @internal */
|
|
4519
4453
|
this._left = new _valueAndUnit__WEBPACK_IMPORTED_MODULE_2__.ValueAndUnit(0);
|
|
4520
|
-
/** @
|
|
4454
|
+
/** @internal */
|
|
4521
4455
|
this._top = new _valueAndUnit__WEBPACK_IMPORTED_MODULE_2__.ValueAndUnit(0);
|
|
4522
4456
|
this._scaleX = 1.0;
|
|
4523
4457
|
this._scaleY = 1.0;
|
|
4524
4458
|
this._rotation = 0;
|
|
4525
4459
|
this._transformCenterX = 0.5;
|
|
4526
4460
|
this._transformCenterY = 0.5;
|
|
4527
|
-
/** @
|
|
4461
|
+
/** @internal */
|
|
4528
4462
|
this._transformMatrix = _math2D__WEBPACK_IMPORTED_MODULE_4__.Matrix2D.Identity();
|
|
4529
|
-
/** @
|
|
4463
|
+
/** @internal */
|
|
4530
4464
|
this._invertTransformMatrix = _math2D__WEBPACK_IMPORTED_MODULE_4__.Matrix2D.Identity();
|
|
4531
|
-
/** @
|
|
4465
|
+
/** @internal */
|
|
4532
4466
|
this._transformedPosition = core_Misc_observable__WEBPACK_IMPORTED_MODULE_1__.Vector2.Zero();
|
|
4533
4467
|
this._isMatrixDirty = true;
|
|
4534
4468
|
this._isVisible = true;
|
|
@@ -4547,13 +4481,13 @@ var Control = /** @class */ (function () {
|
|
|
4547
4481
|
this._disabledColor = "#9a9a9a";
|
|
4548
4482
|
this._disabledColorItem = "#6a6a6a";
|
|
4549
4483
|
this._isReadOnly = false;
|
|
4550
|
-
/** @
|
|
4484
|
+
/** @internal */
|
|
4551
4485
|
this._rebuildLayout = false;
|
|
4552
|
-
/** @
|
|
4486
|
+
/** @internal */
|
|
4553
4487
|
this._customData = {};
|
|
4554
|
-
/** @
|
|
4488
|
+
/** @internal */
|
|
4555
4489
|
this._isClipped = false;
|
|
4556
|
-
/** @
|
|
4490
|
+
/** @internal */
|
|
4557
4491
|
this._automaticSize = false;
|
|
4558
4492
|
/**
|
|
4559
4493
|
* Gets or sets an object used to store user defined information for the node
|
|
@@ -4592,9 +4526,9 @@ var Control = /** @class */ (function () {
|
|
|
4592
4526
|
this._shadowColor = "black";
|
|
4593
4527
|
/** Gets or sets the cursor to use when the control is hovered */
|
|
4594
4528
|
this.hoverCursor = "";
|
|
4595
|
-
/** @
|
|
4529
|
+
/** @internal */
|
|
4596
4530
|
this._linkOffsetX = new _valueAndUnit__WEBPACK_IMPORTED_MODULE_2__.ValueAndUnit(0);
|
|
4597
|
-
/** @
|
|
4531
|
+
/** @internal */
|
|
4598
4532
|
this._linkOffsetY = new _valueAndUnit__WEBPACK_IMPORTED_MODULE_2__.ValueAndUnit(0);
|
|
4599
4533
|
/**
|
|
4600
4534
|
* An event triggered when pointer wheel is scrolled
|
|
@@ -5114,7 +5048,7 @@ var Control = /** @class */ (function () {
|
|
|
5114
5048
|
configurable: true
|
|
5115
5049
|
});
|
|
5116
5050
|
Object.defineProperty(Control.prototype, "_isFontSizeInPercentage", {
|
|
5117
|
-
/** @
|
|
5051
|
+
/** @internal */
|
|
5118
5052
|
get: function () {
|
|
5119
5053
|
return this._fontSize.isPercentage;
|
|
5120
5054
|
},
|
|
@@ -5288,7 +5222,7 @@ var Control = /** @class */ (function () {
|
|
|
5288
5222
|
configurable: true
|
|
5289
5223
|
});
|
|
5290
5224
|
Object.defineProperty(Control.prototype, "_paddingLeftInPixels", {
|
|
5291
|
-
/** @
|
|
5225
|
+
/** @internal */
|
|
5292
5226
|
get: function () {
|
|
5293
5227
|
if (this._descendantsOnlyPadding) {
|
|
5294
5228
|
return 0;
|
|
@@ -5332,7 +5266,7 @@ var Control = /** @class */ (function () {
|
|
|
5332
5266
|
configurable: true
|
|
5333
5267
|
});
|
|
5334
5268
|
Object.defineProperty(Control.prototype, "_paddingRightInPixels", {
|
|
5335
|
-
/** @
|
|
5269
|
+
/** @internal */
|
|
5336
5270
|
get: function () {
|
|
5337
5271
|
if (this._descendantsOnlyPadding) {
|
|
5338
5272
|
return 0;
|
|
@@ -5376,7 +5310,7 @@ var Control = /** @class */ (function () {
|
|
|
5376
5310
|
configurable: true
|
|
5377
5311
|
});
|
|
5378
5312
|
Object.defineProperty(Control.prototype, "_paddingTopInPixels", {
|
|
5379
|
-
/** @
|
|
5313
|
+
/** @internal */
|
|
5380
5314
|
get: function () {
|
|
5381
5315
|
if (this._descendantsOnlyPadding) {
|
|
5382
5316
|
return 0;
|
|
@@ -5420,7 +5354,7 @@ var Control = /** @class */ (function () {
|
|
|
5420
5354
|
configurable: true
|
|
5421
5355
|
});
|
|
5422
5356
|
Object.defineProperty(Control.prototype, "_paddingBottomInPixels", {
|
|
5423
|
-
/** @
|
|
5357
|
+
/** @internal */
|
|
5424
5358
|
get: function () {
|
|
5425
5359
|
if (this._descendantsOnlyPadding) {
|
|
5426
5360
|
return 0;
|
|
@@ -5640,7 +5574,7 @@ var Control = /** @class */ (function () {
|
|
|
5640
5574
|
enumerable: false,
|
|
5641
5575
|
configurable: true
|
|
5642
5576
|
});
|
|
5643
|
-
/** @
|
|
5577
|
+
/** @internal */
|
|
5644
5578
|
Control.prototype._getTypeName = function () {
|
|
5645
5579
|
return "Control";
|
|
5646
5580
|
};
|
|
@@ -5672,7 +5606,7 @@ var Control = /** @class */ (function () {
|
|
|
5672
5606
|
Control.prototype.markAllAsDirty = function () {
|
|
5673
5607
|
this._markAllAsDirty();
|
|
5674
5608
|
};
|
|
5675
|
-
/** @
|
|
5609
|
+
/** @internal */
|
|
5676
5610
|
Control.prototype._resetFontCache = function () {
|
|
5677
5611
|
this._fontSet = true;
|
|
5678
5612
|
this._markAsDirty();
|
|
@@ -5758,7 +5692,7 @@ var Control = /** @class */ (function () {
|
|
|
5758
5692
|
* Will return all controls that have this control as ascendant
|
|
5759
5693
|
* @param directDescendantsOnly defines if true only direct descendants of 'this' will be considered, if false direct and also indirect (children of children, an so on in a recursive manner) descendants of 'this' will be considered
|
|
5760
5694
|
* @param predicate defines an optional predicate that will be called on every evaluated child, the predicate must return true for a given child to be part of the result, otherwise it will be ignored
|
|
5761
|
-
* @
|
|
5695
|
+
* @returns all child controls
|
|
5762
5696
|
*/
|
|
5763
5697
|
Control.prototype.getDescendants = function (directDescendantsOnly, predicate) {
|
|
5764
5698
|
var results = new Array();
|
|
@@ -5830,8 +5764,7 @@ var Control = /** @class */ (function () {
|
|
|
5830
5764
|
this.paddingLeftInPixels = left;
|
|
5831
5765
|
};
|
|
5832
5766
|
/**
|
|
5833
|
-
* @
|
|
5834
|
-
* @hidden
|
|
5767
|
+
* @internal
|
|
5835
5768
|
*/
|
|
5836
5769
|
Control.prototype._moveToProjectedPosition = function (projectedPosition) {
|
|
5837
5770
|
var _a;
|
|
@@ -5858,34 +5791,30 @@ var Control = /** @class */ (function () {
|
|
|
5858
5791
|
this._markAsDirty();
|
|
5859
5792
|
};
|
|
5860
5793
|
/**
|
|
5861
|
-
* @
|
|
5862
|
-
* @hidden
|
|
5794
|
+
* @internal
|
|
5863
5795
|
*/
|
|
5864
5796
|
Control.prototype._offsetLeft = function (offset) {
|
|
5865
5797
|
this._isDirty = true;
|
|
5866
5798
|
this._currentMeasure.left += offset;
|
|
5867
5799
|
};
|
|
5868
5800
|
/**
|
|
5869
|
-
* @
|
|
5870
|
-
* @hidden
|
|
5801
|
+
* @internal
|
|
5871
5802
|
*/
|
|
5872
5803
|
Control.prototype._offsetTop = function (offset) {
|
|
5873
5804
|
this._isDirty = true;
|
|
5874
5805
|
this._currentMeasure.top += offset;
|
|
5875
5806
|
};
|
|
5876
|
-
/** @
|
|
5807
|
+
/** @internal */
|
|
5877
5808
|
Control.prototype._markMatrixAsDirty = function () {
|
|
5878
5809
|
this._isMatrixDirty = true;
|
|
5879
5810
|
this._flagDescendantsAsMatrixDirty();
|
|
5880
5811
|
};
|
|
5881
|
-
/** @
|
|
5812
|
+
/** @internal */
|
|
5882
5813
|
Control.prototype._flagDescendantsAsMatrixDirty = function () {
|
|
5883
5814
|
// No child
|
|
5884
5815
|
};
|
|
5885
5816
|
/**
|
|
5886
|
-
* @
|
|
5887
|
-
* @param context
|
|
5888
|
-
* @hidden
|
|
5817
|
+
* @internal
|
|
5889
5818
|
*/
|
|
5890
5819
|
Control.prototype._intersectsRect = function (rect, context) {
|
|
5891
5820
|
// make sure we are transformed correctly before checking intersections. no-op if nothing is dirty.
|
|
@@ -5904,15 +5833,15 @@ var Control = /** @class */ (function () {
|
|
|
5904
5833
|
}
|
|
5905
5834
|
return true;
|
|
5906
5835
|
};
|
|
5907
|
-
/** @
|
|
5836
|
+
/** @internal */
|
|
5908
5837
|
Control.prototype._computeAdditionnalOffsetX = function () {
|
|
5909
5838
|
return 0;
|
|
5910
5839
|
};
|
|
5911
|
-
/** @
|
|
5840
|
+
/** @internal */
|
|
5912
5841
|
Control.prototype._computeAdditionnalOffsetY = function () {
|
|
5913
5842
|
return 0;
|
|
5914
5843
|
};
|
|
5915
|
-
/** @
|
|
5844
|
+
/** @internal */
|
|
5916
5845
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
5917
5846
|
Control.prototype.invalidateRect = function () {
|
|
5918
5847
|
this._transform();
|
|
@@ -5936,8 +5865,7 @@ var Control = /** @class */ (function () {
|
|
|
5936
5865
|
}
|
|
5937
5866
|
};
|
|
5938
5867
|
/**
|
|
5939
|
-
* @
|
|
5940
|
-
* @hidden
|
|
5868
|
+
* @internal
|
|
5941
5869
|
*/
|
|
5942
5870
|
Control.prototype._markAsDirty = function (force) {
|
|
5943
5871
|
if (force === void 0) { force = false; }
|
|
@@ -5951,7 +5879,7 @@ var Control = /** @class */ (function () {
|
|
|
5951
5879
|
this._host.markAsDirty();
|
|
5952
5880
|
}
|
|
5953
5881
|
};
|
|
5954
|
-
/** @
|
|
5882
|
+
/** @internal */
|
|
5955
5883
|
Control.prototype._markAllAsDirty = function () {
|
|
5956
5884
|
this._markAsDirty();
|
|
5957
5885
|
if (this._font) {
|
|
@@ -5959,8 +5887,7 @@ var Control = /** @class */ (function () {
|
|
|
5959
5887
|
}
|
|
5960
5888
|
};
|
|
5961
5889
|
/**
|
|
5962
|
-
* @
|
|
5963
|
-
* @hidden
|
|
5890
|
+
* @internal
|
|
5964
5891
|
*/
|
|
5965
5892
|
Control.prototype._link = function (host) {
|
|
5966
5893
|
this._host = host;
|
|
@@ -5969,8 +5896,7 @@ var Control = /** @class */ (function () {
|
|
|
5969
5896
|
}
|
|
5970
5897
|
};
|
|
5971
5898
|
/**
|
|
5972
|
-
* @
|
|
5973
|
-
* @hidden
|
|
5899
|
+
* @internal
|
|
5974
5900
|
*/
|
|
5975
5901
|
Control.prototype._transform = function (context) {
|
|
5976
5902
|
if (!this._isMatrixDirty && this._scaleX === 1 && this._scaleY === 1 && this._rotation === 0) {
|
|
@@ -6000,8 +5926,7 @@ var Control = /** @class */ (function () {
|
|
|
6000
5926
|
}
|
|
6001
5927
|
};
|
|
6002
5928
|
/**
|
|
6003
|
-
* @
|
|
6004
|
-
* @hidden
|
|
5929
|
+
* @internal
|
|
6005
5930
|
*/
|
|
6006
5931
|
Control.prototype._renderHighlight = function (context) {
|
|
6007
5932
|
if (!this.isHighlighted) {
|
|
@@ -6014,15 +5939,13 @@ var Control = /** @class */ (function () {
|
|
|
6014
5939
|
context.restore();
|
|
6015
5940
|
};
|
|
6016
5941
|
/**
|
|
6017
|
-
* @
|
|
6018
|
-
* @hidden
|
|
5942
|
+
* @internal
|
|
6019
5943
|
*/
|
|
6020
5944
|
Control.prototype._renderHighlightSpecific = function (context) {
|
|
6021
5945
|
context.strokeRect(this._currentMeasure.left, this._currentMeasure.top, this._currentMeasure.width, this._currentMeasure.height);
|
|
6022
5946
|
};
|
|
6023
5947
|
/**
|
|
6024
|
-
* @
|
|
6025
|
-
* @hidden
|
|
5948
|
+
* @internal
|
|
6026
5949
|
*/
|
|
6027
5950
|
Control.prototype._applyStates = function (context) {
|
|
6028
5951
|
if (this._isFontSizeInPercentage) {
|
|
@@ -6049,9 +5972,7 @@ var Control = /** @class */ (function () {
|
|
|
6049
5972
|
}
|
|
6050
5973
|
};
|
|
6051
5974
|
/**
|
|
6052
|
-
* @
|
|
6053
|
-
* @param context
|
|
6054
|
-
* @hidden
|
|
5975
|
+
* @internal
|
|
6055
5976
|
*/
|
|
6056
5977
|
Control.prototype._layout = function (parentMeasure, context) {
|
|
6057
5978
|
if (!this.isDirty && (!this.isVisible || this.notRenderable)) {
|
|
@@ -6080,9 +6001,7 @@ var Control = /** @class */ (function () {
|
|
|
6080
6001
|
return true;
|
|
6081
6002
|
};
|
|
6082
6003
|
/**
|
|
6083
|
-
* @
|
|
6084
|
-
* @param context
|
|
6085
|
-
* @hidden
|
|
6004
|
+
* @internal
|
|
6086
6005
|
*/
|
|
6087
6006
|
Control.prototype._processMeasures = function (parentMeasure, context) {
|
|
6088
6007
|
this._tempPaddingMeasure.copyFrom(parentMeasure);
|
|
@@ -6135,7 +6054,7 @@ var Control = /** @class */ (function () {
|
|
|
6135
6054
|
}
|
|
6136
6055
|
this._isClipped = false;
|
|
6137
6056
|
};
|
|
6138
|
-
/** @
|
|
6057
|
+
/** @internal */
|
|
6139
6058
|
Control.prototype._measure = function () {
|
|
6140
6059
|
// Width / Height
|
|
6141
6060
|
if (this._width.isPixel) {
|
|
@@ -6160,9 +6079,7 @@ var Control = /** @class */ (function () {
|
|
|
6160
6079
|
}
|
|
6161
6080
|
};
|
|
6162
6081
|
/**
|
|
6163
|
-
* @
|
|
6164
|
-
* @param context
|
|
6165
|
-
* @hidden
|
|
6082
|
+
* @internal
|
|
6166
6083
|
*/
|
|
6167
6084
|
Control.prototype._computeAlignment = function (parentMeasure, context) {
|
|
6168
6085
|
var width = this._currentMeasure.width;
|
|
@@ -6240,24 +6157,19 @@ var Control = /** @class */ (function () {
|
|
|
6240
6157
|
this._currentMeasure.top += y;
|
|
6241
6158
|
};
|
|
6242
6159
|
/**
|
|
6243
|
-
* @
|
|
6244
|
-
* @param context
|
|
6245
|
-
* @hidden
|
|
6160
|
+
* @internal
|
|
6246
6161
|
*/
|
|
6247
6162
|
Control.prototype._preMeasure = function (parentMeasure, context) {
|
|
6248
6163
|
// Do nothing
|
|
6249
6164
|
};
|
|
6250
6165
|
/**
|
|
6251
|
-
* @
|
|
6252
|
-
* @param context
|
|
6253
|
-
* @hidden
|
|
6166
|
+
* @internal
|
|
6254
6167
|
*/
|
|
6255
6168
|
Control.prototype._additionalProcessing = function (parentMeasure, context) {
|
|
6256
6169
|
// Do nothing
|
|
6257
6170
|
};
|
|
6258
6171
|
/**
|
|
6259
|
-
* @
|
|
6260
|
-
* @hidden
|
|
6172
|
+
* @internal
|
|
6261
6173
|
*/
|
|
6262
6174
|
Control.prototype._clipForChildren = function (context) {
|
|
6263
6175
|
// DO nothing
|
|
@@ -6292,9 +6204,7 @@ var Control = /** @class */ (function () {
|
|
|
6292
6204
|
context.clip();
|
|
6293
6205
|
};
|
|
6294
6206
|
/**
|
|
6295
|
-
* @
|
|
6296
|
-
* @param invalidatedRectangle
|
|
6297
|
-
* @hidden
|
|
6207
|
+
* @internal
|
|
6298
6208
|
*/
|
|
6299
6209
|
Control.prototype._render = function (context, invalidatedRectangle) {
|
|
6300
6210
|
if (!this.isVisible || this.notRenderable || this._isClipped) {
|
|
@@ -6330,9 +6240,7 @@ var Control = /** @class */ (function () {
|
|
|
6330
6240
|
return true;
|
|
6331
6241
|
};
|
|
6332
6242
|
/**
|
|
6333
|
-
* @
|
|
6334
|
-
* @param invalidatedRectangle
|
|
6335
|
-
* @hidden
|
|
6243
|
+
* @internal
|
|
6336
6244
|
*/
|
|
6337
6245
|
Control.prototype._draw = function (context, invalidatedRectangle) {
|
|
6338
6246
|
// Do nothing
|
|
@@ -6367,15 +6275,7 @@ var Control = /** @class */ (function () {
|
|
|
6367
6275
|
return true;
|
|
6368
6276
|
};
|
|
6369
6277
|
/**
|
|
6370
|
-
* @
|
|
6371
|
-
* @param y
|
|
6372
|
-
* @param pi
|
|
6373
|
-
* @param type
|
|
6374
|
-
* @param pointerId
|
|
6375
|
-
* @param buttonIndex
|
|
6376
|
-
* @param deltaX
|
|
6377
|
-
* @param deltaY
|
|
6378
|
-
* @hidden
|
|
6278
|
+
* @internal
|
|
6379
6279
|
*/
|
|
6380
6280
|
Control.prototype._processPicking = function (x, y, pi, type, pointerId, buttonIndex, deltaX, deltaY) {
|
|
6381
6281
|
if (!this._isEnabled) {
|
|
@@ -6391,11 +6291,7 @@ var Control = /** @class */ (function () {
|
|
|
6391
6291
|
return true;
|
|
6392
6292
|
};
|
|
6393
6293
|
/**
|
|
6394
|
-
* @
|
|
6395
|
-
* @param coordinates
|
|
6396
|
-
* @param pointerId
|
|
6397
|
-
* @param pi
|
|
6398
|
-
* @hidden
|
|
6294
|
+
* @internal
|
|
6399
6295
|
*/
|
|
6400
6296
|
Control.prototype._onPointerMove = function (target, coordinates, pointerId, pi) {
|
|
6401
6297
|
var canNotify = this.onPointerMoveObservable.notifyObservers(coordinates, -1, target, this, pi);
|
|
@@ -6404,9 +6300,7 @@ var Control = /** @class */ (function () {
|
|
|
6404
6300
|
}
|
|
6405
6301
|
};
|
|
6406
6302
|
/**
|
|
6407
|
-
* @
|
|
6408
|
-
* @param pi
|
|
6409
|
-
* @hidden
|
|
6303
|
+
* @internal
|
|
6410
6304
|
*/
|
|
6411
6305
|
Control.prototype._onPointerEnter = function (target, pi) {
|
|
6412
6306
|
if (!this._isEnabled) {
|
|
@@ -6427,10 +6321,7 @@ var Control = /** @class */ (function () {
|
|
|
6427
6321
|
return true;
|
|
6428
6322
|
};
|
|
6429
6323
|
/**
|
|
6430
|
-
* @
|
|
6431
|
-
* @param pi
|
|
6432
|
-
* @param force
|
|
6433
|
-
* @hidden
|
|
6324
|
+
* @internal
|
|
6434
6325
|
*/
|
|
6435
6326
|
Control.prototype._onPointerOut = function (target, pi, force) {
|
|
6436
6327
|
if (force === void 0) { force = false; }
|
|
@@ -6447,12 +6338,7 @@ var Control = /** @class */ (function () {
|
|
|
6447
6338
|
}
|
|
6448
6339
|
};
|
|
6449
6340
|
/**
|
|
6450
|
-
* @
|
|
6451
|
-
* @param coordinates
|
|
6452
|
-
* @param pointerId
|
|
6453
|
-
* @param buttonIndex
|
|
6454
|
-
* @param pi
|
|
6455
|
-
* @hidden
|
|
6341
|
+
* @internal
|
|
6456
6342
|
*/
|
|
6457
6343
|
Control.prototype._onPointerDown = function (target, coordinates, pointerId, buttonIndex, pi) {
|
|
6458
6344
|
// Prevent pointerout to lose control context.
|
|
@@ -6473,13 +6359,7 @@ var Control = /** @class */ (function () {
|
|
|
6473
6359
|
return true;
|
|
6474
6360
|
};
|
|
6475
6361
|
/**
|
|
6476
|
-
* @
|
|
6477
|
-
* @param coordinates
|
|
6478
|
-
* @param pointerId
|
|
6479
|
-
* @param buttonIndex
|
|
6480
|
-
* @param notifyClick
|
|
6481
|
-
* @param pi
|
|
6482
|
-
* @hidden
|
|
6362
|
+
* @internal
|
|
6483
6363
|
*/
|
|
6484
6364
|
Control.prototype._onPointerUp = function (target, coordinates, pointerId, buttonIndex, notifyClick, pi) {
|
|
6485
6365
|
if (!this._isEnabled) {
|
|
@@ -6500,8 +6380,7 @@ var Control = /** @class */ (function () {
|
|
|
6500
6380
|
}
|
|
6501
6381
|
};
|
|
6502
6382
|
/**
|
|
6503
|
-
* @
|
|
6504
|
-
* @hidden
|
|
6383
|
+
* @internal
|
|
6505
6384
|
*/
|
|
6506
6385
|
Control.prototype._forcePointerUp = function (pointerId) {
|
|
6507
6386
|
if (pointerId === void 0) { pointerId = null; }
|
|
@@ -6515,9 +6394,7 @@ var Control = /** @class */ (function () {
|
|
|
6515
6394
|
}
|
|
6516
6395
|
};
|
|
6517
6396
|
/**
|
|
6518
|
-
* @
|
|
6519
|
-
* @param deltaY
|
|
6520
|
-
* @hidden
|
|
6397
|
+
* @internal
|
|
6521
6398
|
*/
|
|
6522
6399
|
Control.prototype._onWheelScroll = function (deltaX, deltaY) {
|
|
6523
6400
|
if (!this._isEnabled) {
|
|
@@ -6528,18 +6405,10 @@ var Control = /** @class */ (function () {
|
|
|
6528
6405
|
this.parent._onWheelScroll(deltaX, deltaY);
|
|
6529
6406
|
}
|
|
6530
6407
|
};
|
|
6531
|
-
/** @
|
|
6408
|
+
/** @internal */
|
|
6532
6409
|
Control.prototype._onCanvasBlur = function () { };
|
|
6533
6410
|
/**
|
|
6534
|
-
* @
|
|
6535
|
-
* @param x
|
|
6536
|
-
* @param y
|
|
6537
|
-
* @param pi
|
|
6538
|
-
* @param pointerId
|
|
6539
|
-
* @param buttonIndex
|
|
6540
|
-
* @param deltaX
|
|
6541
|
-
* @param deltaY
|
|
6542
|
-
* @hidden
|
|
6411
|
+
* @internal
|
|
6543
6412
|
*/
|
|
6544
6413
|
Control.prototype._processObservables = function (type, x, y, pi, pointerId, buttonIndex, deltaX, deltaY) {
|
|
6545
6414
|
if (!this._isEnabled) {
|
|
@@ -6609,9 +6478,7 @@ var Control = /** @class */ (function () {
|
|
|
6609
6478
|
}
|
|
6610
6479
|
};
|
|
6611
6480
|
/**
|
|
6612
|
-
* @
|
|
6613
|
-
* @param host
|
|
6614
|
-
* @hidden
|
|
6481
|
+
* @internal
|
|
6615
6482
|
*/
|
|
6616
6483
|
Control.prototype._parseFromContent = function (serializedObject, host) {
|
|
6617
6484
|
if (serializedObject.fontFamily) {
|
|
@@ -6706,8 +6573,7 @@ var Control = /** @class */ (function () {
|
|
|
6706
6573
|
configurable: true
|
|
6707
6574
|
});
|
|
6708
6575
|
/**
|
|
6709
|
-
* @
|
|
6710
|
-
* @hidden
|
|
6576
|
+
* @internal
|
|
6711
6577
|
*/
|
|
6712
6578
|
Control._GetFontOffset = function (font) {
|
|
6713
6579
|
if (Control._FontHeightSizes[font]) {
|
|
@@ -6735,12 +6601,7 @@ var Control = /** @class */ (function () {
|
|
|
6735
6601
|
return control;
|
|
6736
6602
|
};
|
|
6737
6603
|
/**
|
|
6738
|
-
* @
|
|
6739
|
-
* @param y
|
|
6740
|
-
* @param width
|
|
6741
|
-
* @param height
|
|
6742
|
-
* @param context
|
|
6743
|
-
* @hidden
|
|
6604
|
+
* @internal
|
|
6744
6605
|
*/
|
|
6745
6606
|
Control.drawEllipse = function (x, y, width, height, context) {
|
|
6746
6607
|
context.translate(x, y);
|
|
@@ -7309,7 +7170,7 @@ var FocusableButton = /** @class */ (function (_super) {
|
|
|
7309
7170
|
_this._unfocusedColor = _this.color;
|
|
7310
7171
|
return _this;
|
|
7311
7172
|
}
|
|
7312
|
-
/** @
|
|
7173
|
+
/** @internal */
|
|
7313
7174
|
FocusableButton.prototype.onBlur = function () {
|
|
7314
7175
|
if (this._isFocused) {
|
|
7315
7176
|
this._isFocused = false;
|
|
@@ -7320,7 +7181,7 @@ var FocusableButton = /** @class */ (function (_super) {
|
|
|
7320
7181
|
this.onBlurObservable.notifyObservers(this);
|
|
7321
7182
|
}
|
|
7322
7183
|
};
|
|
7323
|
-
/** @
|
|
7184
|
+
/** @internal */
|
|
7324
7185
|
FocusableButton.prototype.onFocus = function () {
|
|
7325
7186
|
this._isFocused = true;
|
|
7326
7187
|
if (this.focusedColor) {
|
|
@@ -7357,12 +7218,7 @@ var FocusableButton = /** @class */ (function (_super) {
|
|
|
7357
7218
|
this.onKeyboardEventProcessedObservable.notifyObservers(evt, -1, this);
|
|
7358
7219
|
};
|
|
7359
7220
|
/**
|
|
7360
|
-
* @
|
|
7361
|
-
* @param coordinates
|
|
7362
|
-
* @param pointerId
|
|
7363
|
-
* @param buttonIndex
|
|
7364
|
-
* @param pi
|
|
7365
|
-
* @hidden
|
|
7221
|
+
* @internal
|
|
7366
7222
|
*/
|
|
7367
7223
|
FocusableButton.prototype._onPointerDown = function (target, coordinates, pointerId, buttonIndex, pi) {
|
|
7368
7224
|
if (!this.isReadOnly) {
|
|
@@ -7371,7 +7227,7 @@ var FocusableButton = /** @class */ (function (_super) {
|
|
|
7371
7227
|
}
|
|
7372
7228
|
return _super.prototype._onPointerDown.call(this, target, coordinates, pointerId, buttonIndex, pi);
|
|
7373
7229
|
};
|
|
7374
|
-
/** @
|
|
7230
|
+
/** @internal */
|
|
7375
7231
|
FocusableButton.prototype.displose = function () {
|
|
7376
7232
|
_super.prototype.dispose.call(this);
|
|
7377
7233
|
this.onBlurObservable.clear();
|
|
@@ -7904,9 +7760,7 @@ var Grid = /** @class */ (function (_super) {
|
|
|
7904
7760
|
});
|
|
7905
7761
|
};
|
|
7906
7762
|
/**
|
|
7907
|
-
* @
|
|
7908
|
-
* @param host
|
|
7909
|
-
* @hidden
|
|
7763
|
+
* @internal
|
|
7910
7764
|
*/
|
|
7911
7765
|
Grid.prototype._parseFromContent = function (serializedObject, host) {
|
|
7912
7766
|
_super.prototype._parseFromContent.call(this, serializedObject, host);
|
|
@@ -8262,9 +8116,7 @@ var Image = /** @class */ (function (_super) {
|
|
|
8262
8116
|
configurable: true
|
|
8263
8117
|
});
|
|
8264
8118
|
/**
|
|
8265
|
-
* @
|
|
8266
|
-
* @param preserveProperties
|
|
8267
|
-
* @hidden
|
|
8119
|
+
* @internal
|
|
8268
8120
|
*/
|
|
8269
8121
|
Image.prototype._rotate90 = function (n, preserveProperties) {
|
|
8270
8122
|
var _a, _b;
|
|
@@ -9394,7 +9246,7 @@ var InputText = /** @class */ (function (_super) {
|
|
|
9394
9246
|
enumerable: false,
|
|
9395
9247
|
configurable: true
|
|
9396
9248
|
});
|
|
9397
|
-
/** @
|
|
9249
|
+
/** @internal */
|
|
9398
9250
|
InputText.prototype.onBlur = function () {
|
|
9399
9251
|
this._isFocused = false;
|
|
9400
9252
|
this._scrollLeft = null;
|
|
@@ -9411,7 +9263,7 @@ var InputText = /** @class */ (function (_super) {
|
|
|
9411
9263
|
scene.onPointerObservable.remove(this._onPointerDblTapObserver);
|
|
9412
9264
|
}
|
|
9413
9265
|
};
|
|
9414
|
-
/** @
|
|
9266
|
+
/** @internal */
|
|
9415
9267
|
InputText.prototype.onFocus = function () {
|
|
9416
9268
|
var _this = this;
|
|
9417
9269
|
if (!this._isEnabled) {
|
|
@@ -9493,10 +9345,7 @@ var InputText = /** @class */ (function (_super) {
|
|
|
9493
9345
|
return [this._connectedVirtualKeyboard];
|
|
9494
9346
|
};
|
|
9495
9347
|
/**
|
|
9496
|
-
* @
|
|
9497
|
-
* @param key
|
|
9498
|
-
* @param evt
|
|
9499
|
-
* @hidden
|
|
9348
|
+
* @internal
|
|
9500
9349
|
*/
|
|
9501
9350
|
InputText.prototype.processKey = function (keyCode, key, evt) {
|
|
9502
9351
|
if (this.isReadOnly) {
|
|
@@ -9776,8 +9625,7 @@ var InputText = /** @class */ (function (_super) {
|
|
|
9776
9625
|
}
|
|
9777
9626
|
};
|
|
9778
9627
|
/**
|
|
9779
|
-
* @
|
|
9780
|
-
* @hidden
|
|
9628
|
+
* @internal
|
|
9781
9629
|
*/
|
|
9782
9630
|
InputText.prototype._updateValueFromCursorIndex = function (offset) {
|
|
9783
9631
|
//update the cursor
|
|
@@ -9804,8 +9652,7 @@ var InputText = /** @class */ (function (_super) {
|
|
|
9804
9652
|
this._markAsDirty();
|
|
9805
9653
|
};
|
|
9806
9654
|
/**
|
|
9807
|
-
* @
|
|
9808
|
-
* @hidden
|
|
9655
|
+
* @internal
|
|
9809
9656
|
*/
|
|
9810
9657
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
9811
9658
|
InputText.prototype._processDblClick = function (evt) {
|
|
@@ -9825,7 +9672,7 @@ var InputText = /** @class */ (function (_super) {
|
|
|
9825
9672
|
this._cursorIndex = -1;
|
|
9826
9673
|
this._markAsDirty();
|
|
9827
9674
|
};
|
|
9828
|
-
/** @
|
|
9675
|
+
/** @internal */
|
|
9829
9676
|
InputText.prototype._selectAllText = function () {
|
|
9830
9677
|
this._blinkIsEven = true;
|
|
9831
9678
|
this._isTextHighlightOn = true;
|
|
@@ -9845,8 +9692,7 @@ var InputText = /** @class */ (function (_super) {
|
|
|
9845
9692
|
this.onKeyboardEventProcessedObservable.notifyObservers(evt);
|
|
9846
9693
|
};
|
|
9847
9694
|
/**
|
|
9848
|
-
* @
|
|
9849
|
-
* @hidden
|
|
9695
|
+
* @internal
|
|
9850
9696
|
*/
|
|
9851
9697
|
InputText.prototype._onCopyText = function (ev) {
|
|
9852
9698
|
this._isTextHighlightOn = false;
|
|
@@ -9858,8 +9704,7 @@ var InputText = /** @class */ (function (_super) {
|
|
|
9858
9704
|
this._host.clipboardData = this._highlightedText;
|
|
9859
9705
|
};
|
|
9860
9706
|
/**
|
|
9861
|
-
* @
|
|
9862
|
-
* @hidden
|
|
9707
|
+
* @internal
|
|
9863
9708
|
*/
|
|
9864
9709
|
InputText.prototype._onCutText = function (ev) {
|
|
9865
9710
|
if (!this._highlightedText) {
|
|
@@ -9878,8 +9723,7 @@ var InputText = /** @class */ (function (_super) {
|
|
|
9878
9723
|
this._highlightedText = "";
|
|
9879
9724
|
};
|
|
9880
9725
|
/**
|
|
9881
|
-
* @
|
|
9882
|
-
* @hidden
|
|
9726
|
+
* @internal
|
|
9883
9727
|
*/
|
|
9884
9728
|
InputText.prototype._onPasteText = function (ev) {
|
|
9885
9729
|
var data = "";
|
|
@@ -10332,7 +10176,7 @@ var InputTextArea = /** @class */ (function (_super) {
|
|
|
10332
10176
|
* @param code The ascii input number
|
|
10333
10177
|
* @param key The key string representation
|
|
10334
10178
|
* @param evt The keyboard event emits with input
|
|
10335
|
-
* @
|
|
10179
|
+
* @internal
|
|
10336
10180
|
*/
|
|
10337
10181
|
InputTextArea.prototype.alternativeProcessKey = function (code, key, evt) {
|
|
10338
10182
|
//return if clipboard event keys (i.e -ctr/cmd + c,v,x)
|
|
@@ -10708,7 +10552,7 @@ var InputTextArea = /** @class */ (function (_super) {
|
|
|
10708
10552
|
*
|
|
10709
10553
|
* @param parentMeasure The parent measure
|
|
10710
10554
|
* @param context The rendering canvas
|
|
10711
|
-
* @
|
|
10555
|
+
* @internal
|
|
10712
10556
|
*/
|
|
10713
10557
|
InputTextArea.prototype._preMeasure = function (parentMeasure, context) {
|
|
10714
10558
|
if (!this._fontOffset || this._wasDirty) {
|
|
@@ -10767,7 +10611,7 @@ var InputTextArea = /** @class */ (function (_super) {
|
|
|
10767
10611
|
*
|
|
10768
10612
|
* @param parentMeasure The parent measure
|
|
10769
10613
|
* @param context The rendering canvas
|
|
10770
|
-
* @
|
|
10614
|
+
* @internal
|
|
10771
10615
|
*/
|
|
10772
10616
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10773
10617
|
InputTextArea.prototype._additionalProcessing = function (parentMeasure, context) {
|
|
@@ -10825,7 +10669,7 @@ var InputTextArea = /** @class */ (function (_super) {
|
|
|
10825
10669
|
* Copy the text in the clipboard
|
|
10826
10670
|
*
|
|
10827
10671
|
* @param ev The clipboard event
|
|
10828
|
-
* @
|
|
10672
|
+
* @internal
|
|
10829
10673
|
*/
|
|
10830
10674
|
InputTextArea.prototype._onCopyText = function (ev) {
|
|
10831
10675
|
this._isTextHighlightOn = false;
|
|
@@ -10840,7 +10684,7 @@ var InputTextArea = /** @class */ (function (_super) {
|
|
|
10840
10684
|
* Cut the text and copy it in the clipboard
|
|
10841
10685
|
*
|
|
10842
10686
|
* @param ev The clipboard event
|
|
10843
|
-
* @
|
|
10687
|
+
* @internal
|
|
10844
10688
|
*/
|
|
10845
10689
|
InputTextArea.prototype._onCutText = function (ev) {
|
|
10846
10690
|
if (!this._highlightedText) {
|
|
@@ -10859,7 +10703,7 @@ var InputTextArea = /** @class */ (function (_super) {
|
|
|
10859
10703
|
* Paste the copied text from the clipboard
|
|
10860
10704
|
*
|
|
10861
10705
|
* @param ev The clipboard event
|
|
10862
|
-
* @
|
|
10706
|
+
* @internal
|
|
10863
10707
|
*/
|
|
10864
10708
|
InputTextArea.prototype._onPasteText = function (ev) {
|
|
10865
10709
|
var data = "";
|
|
@@ -11185,7 +11029,7 @@ var InputTextArea = /** @class */ (function (_super) {
|
|
|
11185
11029
|
* Update all values of cursor information based on cursorIndex value
|
|
11186
11030
|
*
|
|
11187
11031
|
* @param offset The index to take care of
|
|
11188
|
-
* @
|
|
11032
|
+
* @internal
|
|
11189
11033
|
*/
|
|
11190
11034
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
11191
11035
|
InputTextArea.prototype._updateValueFromCursorIndex = function (offset) {
|
|
@@ -11195,7 +11039,7 @@ var InputTextArea = /** @class */ (function (_super) {
|
|
|
11195
11039
|
* Select the word immediatly under the cursor on double click
|
|
11196
11040
|
*
|
|
11197
11041
|
* @param _evt Pointer informations of double click
|
|
11198
|
-
* @
|
|
11042
|
+
* @internal
|
|
11199
11043
|
*/
|
|
11200
11044
|
InputTextArea.prototype._processDblClick = function (_evt) {
|
|
11201
11045
|
//pre-find the start and end index of the word under cursor, speeds up the rendering
|
|
@@ -11212,7 +11056,7 @@ var InputTextArea = /** @class */ (function (_super) {
|
|
|
11212
11056
|
this._blinkIsEven = true;
|
|
11213
11057
|
this._markAsDirty();
|
|
11214
11058
|
};
|
|
11215
|
-
/** @
|
|
11059
|
+
/** @internal */
|
|
11216
11060
|
InputTextArea.prototype._selectAllText = function () {
|
|
11217
11061
|
this._isTextHighlightOn = true;
|
|
11218
11062
|
this._blinkIsEven = true;
|
|
@@ -12112,7 +11956,7 @@ var Rectangle = /** @class */ (function (_super) {
|
|
|
12112
11956
|
Rectangle.prototype._getTypeName = function () {
|
|
12113
11957
|
return "Rectangle";
|
|
12114
11958
|
};
|
|
12115
|
-
/** @
|
|
11959
|
+
/** @internal */
|
|
12116
11960
|
Rectangle.prototype._computeAdditionnalOffsetX = function () {
|
|
12117
11961
|
if (this._cornerRadius) {
|
|
12118
11962
|
// Take in account the aliasing
|
|
@@ -12120,7 +11964,7 @@ var Rectangle = /** @class */ (function (_super) {
|
|
|
12120
11964
|
}
|
|
12121
11965
|
return 0;
|
|
12122
11966
|
};
|
|
12123
|
-
/** @
|
|
11967
|
+
/** @internal */
|
|
12124
11968
|
Rectangle.prototype._computeAdditionnalOffsetY = function () {
|
|
12125
11969
|
if (this._cornerRadius) {
|
|
12126
11970
|
// Take in account the aliasing
|
|
@@ -12804,7 +12648,7 @@ var ScrollViewer = /** @class */ (function (_super) {
|
|
|
12804
12648
|
}
|
|
12805
12649
|
}
|
|
12806
12650
|
};
|
|
12807
|
-
/** @
|
|
12651
|
+
/** @internal */
|
|
12808
12652
|
ScrollViewer.prototype._updateScroller = function () {
|
|
12809
12653
|
var windowContentsWidth = this._window._currentMeasure.width;
|
|
12810
12654
|
var windowContentsHeight = this._window._currentMeasure.height;
|
|
@@ -12840,11 +12684,7 @@ var ScrollViewer = /** @class */ (function (_super) {
|
|
|
12840
12684
|
this._attachWheel();
|
|
12841
12685
|
};
|
|
12842
12686
|
/**
|
|
12843
|
-
* @
|
|
12844
|
-
* @param barContainer
|
|
12845
|
-
* @param isVertical
|
|
12846
|
-
* @param rotation
|
|
12847
|
-
* @hidden
|
|
12687
|
+
* @internal
|
|
12848
12688
|
*/
|
|
12849
12689
|
ScrollViewer.prototype._addBar = function (barControl, barContainer, isVertical, rotation) {
|
|
12850
12690
|
var _this = this;
|
|
@@ -12864,7 +12704,7 @@ var ScrollViewer = /** @class */ (function (_super) {
|
|
|
12864
12704
|
_this._setWindowPosition();
|
|
12865
12705
|
});
|
|
12866
12706
|
};
|
|
12867
|
-
/** @
|
|
12707
|
+
/** @internal */
|
|
12868
12708
|
ScrollViewer.prototype._attachWheel = function () {
|
|
12869
12709
|
var _this = this;
|
|
12870
12710
|
if (!this._host || this._onWheelObserver) {
|
|
@@ -12951,7 +12791,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12951
12791
|
|
|
12952
12792
|
/**
|
|
12953
12793
|
* Class used to hold a the container for ScrollViewer
|
|
12954
|
-
* @
|
|
12794
|
+
* @internal
|
|
12955
12795
|
*/
|
|
12956
12796
|
var _ScrollViewerWindow = /** @class */ (function (_super) {
|
|
12957
12797
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(_ScrollViewerWindow, _super);
|
|
@@ -13094,9 +12934,7 @@ var _ScrollViewerWindow = /** @class */ (function (_super) {
|
|
|
13094
12934
|
return "ScrollViewerWindow";
|
|
13095
12935
|
};
|
|
13096
12936
|
/**
|
|
13097
|
-
* @
|
|
13098
|
-
* @param context
|
|
13099
|
-
* @hidden
|
|
12937
|
+
* @internal
|
|
13100
12938
|
*/
|
|
13101
12939
|
_ScrollViewerWindow.prototype._additionalProcessing = function (parentMeasure, context) {
|
|
13102
12940
|
_super.prototype._additionalProcessing.call(this, parentMeasure, context);
|
|
@@ -13107,9 +12945,7 @@ var _ScrollViewerWindow = /** @class */ (function (_super) {
|
|
|
13107
12945
|
this._measureForChildren.height = parentMeasure.height;
|
|
13108
12946
|
};
|
|
13109
12947
|
/**
|
|
13110
|
-
* @
|
|
13111
|
-
* @param context
|
|
13112
|
-
* @hidden
|
|
12948
|
+
* @internal
|
|
13113
12949
|
*/
|
|
13114
12950
|
_ScrollViewerWindow.prototype._layout = function (parentMeasure, context) {
|
|
13115
12951
|
if (this._freezeControls) {
|
|
@@ -13148,9 +12984,7 @@ var _ScrollViewerWindow = /** @class */ (function (_super) {
|
|
|
13148
12984
|
}
|
|
13149
12985
|
};
|
|
13150
12986
|
/**
|
|
13151
|
-
* @
|
|
13152
|
-
* @param invalidatedRectangle
|
|
13153
|
-
* @hidden
|
|
12987
|
+
* @internal
|
|
13154
12988
|
*/
|
|
13155
12989
|
_ScrollViewerWindow.prototype._draw = function (context, invalidatedRectangle) {
|
|
13156
12990
|
if (!this._freezeControls) {
|
|
@@ -13307,8 +13141,7 @@ var SelectorGroup = /** @class */ (function () {
|
|
|
13307
13141
|
configurable: true
|
|
13308
13142
|
});
|
|
13309
13143
|
/**
|
|
13310
|
-
* @
|
|
13311
|
-
* @hidden
|
|
13144
|
+
* @internal
|
|
13312
13145
|
*/
|
|
13313
13146
|
SelectorGroup.prototype._addGroupHeader = function (text) {
|
|
13314
13147
|
var groupHeading = new _textBlock__WEBPACK_IMPORTED_MODULE_4__.TextBlock("groupHead", text);
|
|
@@ -13323,8 +13156,7 @@ var SelectorGroup = /** @class */ (function () {
|
|
|
13323
13156
|
return groupHeading;
|
|
13324
13157
|
};
|
|
13325
13158
|
/**
|
|
13326
|
-
* @
|
|
13327
|
-
* @hidden
|
|
13159
|
+
* @internal
|
|
13328
13160
|
*/
|
|
13329
13161
|
SelectorGroup.prototype._getSelector = function (selectorNb) {
|
|
13330
13162
|
if (selectorNb < 0 || selectorNb >= this._selectors.length) {
|
|
@@ -13385,33 +13217,25 @@ var CheckboxGroup = /** @class */ (function (_super) {
|
|
|
13385
13217
|
}
|
|
13386
13218
|
};
|
|
13387
13219
|
/**
|
|
13388
|
-
* @
|
|
13389
|
-
* @param label
|
|
13390
|
-
* @hidden
|
|
13220
|
+
* @internal
|
|
13391
13221
|
*/
|
|
13392
13222
|
CheckboxGroup.prototype._setSelectorLabel = function (selectorNb, label) {
|
|
13393
13223
|
this.selectors[selectorNb].children[1].text = label;
|
|
13394
13224
|
};
|
|
13395
13225
|
/**
|
|
13396
|
-
* @
|
|
13397
|
-
* @param color
|
|
13398
|
-
* @hidden
|
|
13226
|
+
* @internal
|
|
13399
13227
|
*/
|
|
13400
13228
|
CheckboxGroup.prototype._setSelectorLabelColor = function (selectorNb, color) {
|
|
13401
13229
|
this.selectors[selectorNb].children[1].color = color;
|
|
13402
13230
|
};
|
|
13403
13231
|
/**
|
|
13404
|
-
* @
|
|
13405
|
-
* @param color
|
|
13406
|
-
* @hidden
|
|
13232
|
+
* @internal
|
|
13407
13233
|
*/
|
|
13408
13234
|
CheckboxGroup.prototype._setSelectorButtonColor = function (selectorNb, color) {
|
|
13409
13235
|
this.selectors[selectorNb].children[0].color = color;
|
|
13410
13236
|
};
|
|
13411
13237
|
/**
|
|
13412
|
-
* @
|
|
13413
|
-
* @param color
|
|
13414
|
-
* @hidden
|
|
13238
|
+
* @internal
|
|
13415
13239
|
*/
|
|
13416
13240
|
CheckboxGroup.prototype._setSelectorButtonBackground = function (selectorNb, color) {
|
|
13417
13241
|
this.selectors[selectorNb].children[0].background = color;
|
|
@@ -13465,33 +13289,25 @@ var RadioGroup = /** @class */ (function (_super) {
|
|
|
13465
13289
|
}
|
|
13466
13290
|
};
|
|
13467
13291
|
/**
|
|
13468
|
-
* @
|
|
13469
|
-
* @param label
|
|
13470
|
-
* @hidden
|
|
13292
|
+
* @internal
|
|
13471
13293
|
*/
|
|
13472
13294
|
RadioGroup.prototype._setSelectorLabel = function (selectorNb, label) {
|
|
13473
13295
|
this.selectors[selectorNb].children[1].text = label;
|
|
13474
13296
|
};
|
|
13475
13297
|
/**
|
|
13476
|
-
* @
|
|
13477
|
-
* @param color
|
|
13478
|
-
* @hidden
|
|
13298
|
+
* @internal
|
|
13479
13299
|
*/
|
|
13480
13300
|
RadioGroup.prototype._setSelectorLabelColor = function (selectorNb, color) {
|
|
13481
13301
|
this.selectors[selectorNb].children[1].color = color;
|
|
13482
13302
|
};
|
|
13483
13303
|
/**
|
|
13484
|
-
* @
|
|
13485
|
-
* @param color
|
|
13486
|
-
* @hidden
|
|
13304
|
+
* @internal
|
|
13487
13305
|
*/
|
|
13488
13306
|
RadioGroup.prototype._setSelectorButtonColor = function (selectorNb, color) {
|
|
13489
13307
|
this.selectors[selectorNb].children[0].color = color;
|
|
13490
13308
|
};
|
|
13491
13309
|
/**
|
|
13492
|
-
* @
|
|
13493
|
-
* @param color
|
|
13494
|
-
* @hidden
|
|
13310
|
+
* @internal
|
|
13495
13311
|
*/
|
|
13496
13312
|
RadioGroup.prototype._setSelectorButtonBackground = function (selectorNb, color) {
|
|
13497
13313
|
this.selectors[selectorNb].children[0].background = color;
|
|
@@ -13558,9 +13374,7 @@ var SliderGroup = /** @class */ (function (_super) {
|
|
|
13558
13374
|
}
|
|
13559
13375
|
};
|
|
13560
13376
|
/**
|
|
13561
|
-
* @
|
|
13562
|
-
* @param label
|
|
13563
|
-
* @hidden
|
|
13377
|
+
* @internal
|
|
13564
13378
|
*/
|
|
13565
13379
|
SliderGroup.prototype._setSelectorLabel = function (selectorNb, label) {
|
|
13566
13380
|
this.selectors[selectorNb].children[0].name = label;
|
|
@@ -13568,25 +13382,19 @@ var SliderGroup = /** @class */ (function (_super) {
|
|
|
13568
13382
|
label + ": " + this.selectors[selectorNb].children[1].value + " " + this.selectors[selectorNb].children[1].name;
|
|
13569
13383
|
};
|
|
13570
13384
|
/**
|
|
13571
|
-
* @
|
|
13572
|
-
* @param color
|
|
13573
|
-
* @hidden
|
|
13385
|
+
* @internal
|
|
13574
13386
|
*/
|
|
13575
13387
|
SliderGroup.prototype._setSelectorLabelColor = function (selectorNb, color) {
|
|
13576
13388
|
this.selectors[selectorNb].children[0].color = color;
|
|
13577
13389
|
};
|
|
13578
13390
|
/**
|
|
13579
|
-
* @
|
|
13580
|
-
* @param color
|
|
13581
|
-
* @hidden
|
|
13391
|
+
* @internal
|
|
13582
13392
|
*/
|
|
13583
13393
|
SliderGroup.prototype._setSelectorButtonColor = function (selectorNb, color) {
|
|
13584
13394
|
this.selectors[selectorNb].children[1].color = color;
|
|
13585
13395
|
};
|
|
13586
13396
|
/**
|
|
13587
|
-
* @
|
|
13588
|
-
* @param color
|
|
13589
|
-
* @hidden
|
|
13397
|
+
* @internal
|
|
13590
13398
|
*/
|
|
13591
13399
|
SliderGroup.prototype._setSelectorButtonBackground = function (selectorNb, color) {
|
|
13592
13400
|
this.selectors[selectorNb].children[1].background = color;
|
|
@@ -14226,9 +14034,7 @@ var BaseSlider = /** @class */ (function (_super) {
|
|
|
14226
14034
|
}
|
|
14227
14035
|
};
|
|
14228
14036
|
/**
|
|
14229
|
-
* @
|
|
14230
|
-
* @param y
|
|
14231
|
-
* @hidden
|
|
14037
|
+
* @internal
|
|
14232
14038
|
*/
|
|
14233
14039
|
BaseSlider.prototype._updateValueFromPointer = function (x, y) {
|
|
14234
14040
|
if (this.rotation != 0) {
|
|
@@ -14502,9 +14308,7 @@ var ImageBasedSlider = /** @class */ (function (_super) {
|
|
|
14502
14308
|
serializationObject.valueBarImage = valueBarImage;
|
|
14503
14309
|
};
|
|
14504
14310
|
/**
|
|
14505
|
-
* @
|
|
14506
|
-
* @param host
|
|
14507
|
-
* @hidden
|
|
14311
|
+
* @internal
|
|
14508
14312
|
*/
|
|
14509
14313
|
ImageBasedSlider.prototype._parseFromContent = function (serializedObject, host) {
|
|
14510
14314
|
_super.prototype._parseFromContent.call(this, serializedObject, host);
|
|
@@ -14764,9 +14568,7 @@ var ImageScrollBar = /** @class */ (function (_super) {
|
|
|
14764
14568
|
context.restore();
|
|
14765
14569
|
};
|
|
14766
14570
|
/**
|
|
14767
|
-
* @
|
|
14768
|
-
* @param y
|
|
14769
|
-
* @hidden
|
|
14571
|
+
* @internal
|
|
14770
14572
|
*/
|
|
14771
14573
|
ImageScrollBar.prototype._updateValueFromPointer = function (x, y) {
|
|
14772
14574
|
if (this.rotation != 0) {
|
|
@@ -14939,9 +14741,7 @@ var ScrollBar = /** @class */ (function (_super) {
|
|
|
14939
14741
|
context.restore();
|
|
14940
14742
|
};
|
|
14941
14743
|
/**
|
|
14942
|
-
* @
|
|
14943
|
-
* @param y
|
|
14944
|
-
* @hidden
|
|
14744
|
+
* @internal
|
|
14945
14745
|
*/
|
|
14946
14746
|
ScrollBar.prototype._updateValueFromPointer = function (x, y) {
|
|
14947
14747
|
if (this.rotation != 0) {
|
|
@@ -15412,9 +15212,7 @@ var StackPanel = /** @class */ (function (_super) {
|
|
|
15412
15212
|
return "StackPanel";
|
|
15413
15213
|
};
|
|
15414
15214
|
/**
|
|
15415
|
-
* @
|
|
15416
|
-
* @param context
|
|
15417
|
-
* @hidden
|
|
15215
|
+
* @internal
|
|
15418
15216
|
*/
|
|
15419
15217
|
StackPanel.prototype._preMeasure = function (parentMeasure, context) {
|
|
15420
15218
|
for (var _i = 0, _a = this._children; _i < _a.length; _i++) {
|
|
@@ -15521,9 +15319,7 @@ var StackPanel = /** @class */ (function (_super) {
|
|
|
15521
15319
|
serializationObject.manualHeight = this._manualHeight;
|
|
15522
15320
|
};
|
|
15523
15321
|
/**
|
|
15524
|
-
* @
|
|
15525
|
-
* @param host
|
|
15526
|
-
* @hidden
|
|
15322
|
+
* @internal
|
|
15527
15323
|
*/
|
|
15528
15324
|
StackPanel.prototype._parseFromContent = function (serializedObject, host) {
|
|
15529
15325
|
this._manualWidth = serializedObject.manualWidth;
|
|
@@ -15571,7 +15367,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15571
15367
|
|
|
15572
15368
|
/**
|
|
15573
15369
|
* Forcing an export so that this code will execute
|
|
15574
|
-
* @
|
|
15370
|
+
* @internal
|
|
15575
15371
|
*/
|
|
15576
15372
|
var name = "Statics";
|
|
15577
15373
|
|
|
@@ -16022,8 +15818,7 @@ var TextBlock = /** @class */ (function (_super) {
|
|
|
16022
15818
|
}
|
|
16023
15819
|
};
|
|
16024
15820
|
/**
|
|
16025
|
-
* @
|
|
16026
|
-
* @hidden
|
|
15821
|
+
* @internal
|
|
16027
15822
|
*/
|
|
16028
15823
|
TextBlock.prototype._draw = function (context) {
|
|
16029
15824
|
context.save();
|
|
@@ -16279,7 +16074,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16279
16074
|
/* harmony export */ });
|
|
16280
16075
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../../../node_modules/tslib/tslib.es6.js");
|
|
16281
16076
|
|
|
16282
|
-
/** @
|
|
16077
|
+
/** @internal */
|
|
16283
16078
|
var TextWrapper = /** @class */ (function () {
|
|
16284
16079
|
function TextWrapper() {
|
|
16285
16080
|
}
|
|
@@ -16531,15 +16326,7 @@ var ToggleButton = /** @class */ (function (_super) {
|
|
|
16531
16326
|
};
|
|
16532
16327
|
// While being a container, the toggle button behaves like a control.
|
|
16533
16328
|
/**
|
|
16534
|
-
* @
|
|
16535
|
-
* @param y
|
|
16536
|
-
* @param pi
|
|
16537
|
-
* @param type
|
|
16538
|
-
* @param pointerId
|
|
16539
|
-
* @param buttonIndex
|
|
16540
|
-
* @param deltaX
|
|
16541
|
-
* @param deltaY
|
|
16542
|
-
* @hidden
|
|
16329
|
+
* @internal
|
|
16543
16330
|
*/
|
|
16544
16331
|
ToggleButton.prototype._processPicking = function (x, y, pi, type, pointerId, buttonIndex, deltaX, deltaY) {
|
|
16545
16332
|
if (!this._isEnabled || !this.isHitTestVisible || !this.isVisible || this.notRenderable) {
|
|
@@ -16565,9 +16352,7 @@ var ToggleButton = /** @class */ (function (_super) {
|
|
|
16565
16352
|
return true;
|
|
16566
16353
|
};
|
|
16567
16354
|
/**
|
|
16568
|
-
* @
|
|
16569
|
-
* @param pi
|
|
16570
|
-
* @hidden
|
|
16355
|
+
* @internal
|
|
16571
16356
|
*/
|
|
16572
16357
|
ToggleButton.prototype._onPointerEnter = function (target, pi) {
|
|
16573
16358
|
if (!_super.prototype._onPointerEnter.call(this, target, pi)) {
|
|
@@ -16589,10 +16374,7 @@ var ToggleButton = /** @class */ (function (_super) {
|
|
|
16589
16374
|
return true;
|
|
16590
16375
|
};
|
|
16591
16376
|
/**
|
|
16592
|
-
* @
|
|
16593
|
-
* @param pi
|
|
16594
|
-
* @param force
|
|
16595
|
-
* @hidden
|
|
16377
|
+
* @internal
|
|
16596
16378
|
*/
|
|
16597
16379
|
ToggleButton.prototype._onPointerOut = function (target, pi, force) {
|
|
16598
16380
|
if (force === void 0) { force = false; }
|
|
@@ -16611,12 +16393,7 @@ var ToggleButton = /** @class */ (function (_super) {
|
|
|
16611
16393
|
_super.prototype._onPointerOut.call(this, target, pi, force);
|
|
16612
16394
|
};
|
|
16613
16395
|
/**
|
|
16614
|
-
* @
|
|
16615
|
-
* @param coordinates
|
|
16616
|
-
* @param pointerId
|
|
16617
|
-
* @param buttonIndex
|
|
16618
|
-
* @param pi
|
|
16619
|
-
* @hidden
|
|
16396
|
+
* @internal
|
|
16620
16397
|
*/
|
|
16621
16398
|
ToggleButton.prototype._onPointerDown = function (target, coordinates, pointerId, buttonIndex, pi) {
|
|
16622
16399
|
if (!_super.prototype._onPointerDown.call(this, target, coordinates, pointerId, buttonIndex, pi)) {
|
|
@@ -16638,13 +16415,7 @@ var ToggleButton = /** @class */ (function (_super) {
|
|
|
16638
16415
|
return true;
|
|
16639
16416
|
};
|
|
16640
16417
|
/**
|
|
16641
|
-
* @
|
|
16642
|
-
* @param coordinates
|
|
16643
|
-
* @param pointerId
|
|
16644
|
-
* @param buttonIndex
|
|
16645
|
-
* @param notifyClick
|
|
16646
|
-
* @param pi
|
|
16647
|
-
* @hidden
|
|
16418
|
+
* @internal
|
|
16648
16419
|
*/
|
|
16649
16420
|
ToggleButton.prototype._onPointerUp = function (target, coordinates, pointerId, buttonIndex, notifyClick, pi) {
|
|
16650
16421
|
if (!this.isReadOnly) {
|
|
@@ -16955,9 +16726,7 @@ var VirtualKeyboard = /** @class */ (function (_super) {
|
|
|
16955
16726
|
return returnValue;
|
|
16956
16727
|
};
|
|
16957
16728
|
/**
|
|
16958
|
-
* @
|
|
16959
|
-
* @param host
|
|
16960
|
-
* @hidden
|
|
16729
|
+
* @internal
|
|
16961
16730
|
*/
|
|
16962
16731
|
VirtualKeyboard.prototype._parseFromContent = function (serializedObject, host) {
|
|
16963
16732
|
var _this = this;
|
|
@@ -17631,7 +17400,7 @@ var Style = /** @class */ (function () {
|
|
|
17631
17400
|
this._fontFamily = "Arial";
|
|
17632
17401
|
this._fontStyle = "";
|
|
17633
17402
|
this._fontWeight = "";
|
|
17634
|
-
/** @
|
|
17403
|
+
/** @internal */
|
|
17635
17404
|
this._fontSize = new _valueAndUnit__WEBPACK_IMPORTED_MODULE_1__.ValueAndUnit(18, _valueAndUnit__WEBPACK_IMPORTED_MODULE_1__.ValueAndUnit.UNITMODE_PIXEL, false);
|
|
17636
17405
|
/**
|
|
17637
17406
|
* Observable raised when the style values are changed
|
|
@@ -18904,7 +18673,7 @@ var Control3D = /** @class */ (function () {
|
|
|
18904
18673
|
this._enterCount = -1;
|
|
18905
18674
|
this._downPointerIds = {}; // Store number of pointer downs per ID, from near and far interactions
|
|
18906
18675
|
this._isVisible = true;
|
|
18907
|
-
/** @
|
|
18676
|
+
/** @internal */
|
|
18908
18677
|
this._isScaledByManager = false;
|
|
18909
18678
|
/**
|
|
18910
18679
|
* An event triggered when the pointer moves over the control
|
|
@@ -19108,8 +18877,7 @@ var Control3D = /** @class */ (function () {
|
|
|
19108
18877
|
return this;
|
|
19109
18878
|
};
|
|
19110
18879
|
/**
|
|
19111
|
-
* @
|
|
19112
|
-
* @hidden*
|
|
18880
|
+
* @internal*
|
|
19113
18881
|
*/
|
|
19114
18882
|
Control3D.prototype._prepareNode = function (scene) {
|
|
19115
18883
|
if (!this._node) {
|
|
@@ -19154,16 +18922,13 @@ var Control3D = /** @class */ (function () {
|
|
|
19154
18922
|
};
|
|
19155
18923
|
// Pointers
|
|
19156
18924
|
/**
|
|
19157
|
-
* @
|
|
19158
|
-
* @param coordinates
|
|
19159
|
-
* @hidden
|
|
18925
|
+
* @internal
|
|
19160
18926
|
*/
|
|
19161
18927
|
Control3D.prototype._onPointerMove = function (target, coordinates) {
|
|
19162
18928
|
this.onPointerMoveObservable.notifyObservers(coordinates, -1, target, this);
|
|
19163
18929
|
};
|
|
19164
18930
|
/**
|
|
19165
|
-
* @
|
|
19166
|
-
* @hidden
|
|
18931
|
+
* @internal
|
|
19167
18932
|
*/
|
|
19168
18933
|
Control3D.prototype._onPointerEnter = function (target) {
|
|
19169
18934
|
if (this._enterCount === -1) {
|
|
@@ -19181,8 +18946,7 @@ var Control3D = /** @class */ (function () {
|
|
|
19181
18946
|
return true;
|
|
19182
18947
|
};
|
|
19183
18948
|
/**
|
|
19184
|
-
* @
|
|
19185
|
-
* @hidden
|
|
18949
|
+
* @internal
|
|
19186
18950
|
*/
|
|
19187
18951
|
Control3D.prototype._onPointerOut = function (target) {
|
|
19188
18952
|
this._enterCount--;
|
|
@@ -19196,11 +18960,7 @@ var Control3D = /** @class */ (function () {
|
|
|
19196
18960
|
}
|
|
19197
18961
|
};
|
|
19198
18962
|
/**
|
|
19199
|
-
* @
|
|
19200
|
-
* @param coordinates
|
|
19201
|
-
* @param pointerId
|
|
19202
|
-
* @param buttonIndex
|
|
19203
|
-
* @hidden
|
|
18963
|
+
* @internal
|
|
19204
18964
|
*/
|
|
19205
18965
|
Control3D.prototype._onPointerDown = function (target, coordinates, pointerId, buttonIndex) {
|
|
19206
18966
|
this._downCount++;
|
|
@@ -19215,12 +18975,7 @@ var Control3D = /** @class */ (function () {
|
|
|
19215
18975
|
return true;
|
|
19216
18976
|
};
|
|
19217
18977
|
/**
|
|
19218
|
-
* @
|
|
19219
|
-
* @param coordinates
|
|
19220
|
-
* @param pointerId
|
|
19221
|
-
* @param buttonIndex
|
|
19222
|
-
* @param notifyClick
|
|
19223
|
-
* @hidden
|
|
18978
|
+
* @internal
|
|
19224
18979
|
*/
|
|
19225
18980
|
Control3D.prototype._onPointerUp = function (target, coordinates, pointerId, buttonIndex, notifyClick) {
|
|
19226
18981
|
this._downCount--;
|
|
@@ -19244,8 +18999,7 @@ var Control3D = /** @class */ (function () {
|
|
|
19244
18999
|
}
|
|
19245
19000
|
};
|
|
19246
19001
|
/**
|
|
19247
|
-
* @
|
|
19248
|
-
* @hidden
|
|
19002
|
+
* @internal
|
|
19249
19003
|
*/
|
|
19250
19004
|
Control3D.prototype.forcePointerUp = function (pointerId) {
|
|
19251
19005
|
if (pointerId === void 0) { pointerId = null; }
|
|
@@ -19263,12 +19017,7 @@ var Control3D = /** @class */ (function () {
|
|
|
19263
19017
|
}
|
|
19264
19018
|
};
|
|
19265
19019
|
/**
|
|
19266
|
-
* @
|
|
19267
|
-
* @param pickedPoint
|
|
19268
|
-
* @param originMeshPosition
|
|
19269
|
-
* @param pointerId
|
|
19270
|
-
* @param buttonIndex
|
|
19271
|
-
* @hidden
|
|
19020
|
+
* @internal
|
|
19272
19021
|
*/
|
|
19273
19022
|
Control3D.prototype._processObservables = function (type, pickedPoint, originMeshPosition, pointerId, buttonIndex) {
|
|
19274
19023
|
if (this._isTouchButton3D(this) && originMeshPosition) {
|
|
@@ -19301,7 +19050,7 @@ var Control3D = /** @class */ (function () {
|
|
|
19301
19050
|
}
|
|
19302
19051
|
return false;
|
|
19303
19052
|
};
|
|
19304
|
-
/** @
|
|
19053
|
+
/** @internal */
|
|
19305
19054
|
Control3D.prototype._disposeNode = function () {
|
|
19306
19055
|
if (this._node) {
|
|
19307
19056
|
this._node.dispose();
|
|
@@ -20171,7 +19920,7 @@ var HolographicSlate = /** @class */ (function (_super) {
|
|
|
20171
19920
|
return "HolographicSlate";
|
|
20172
19921
|
};
|
|
20173
19922
|
/**
|
|
20174
|
-
* @
|
|
19923
|
+
* @internal
|
|
20175
19924
|
*/
|
|
20176
19925
|
HolographicSlate.prototype._positionElements = function () {
|
|
20177
19926
|
var followButton = this._followButton;
|
|
@@ -20226,7 +19975,7 @@ var HolographicSlate = /** @class */ (function (_super) {
|
|
|
20226
19975
|
this._contentScaleRatio = 1;
|
|
20227
19976
|
};
|
|
20228
19977
|
/**
|
|
20229
|
-
* @
|
|
19978
|
+
* @internal
|
|
20230
19979
|
*/
|
|
20231
19980
|
HolographicSlate.prototype._updatePivot = function () {
|
|
20232
19981
|
if (!this.mesh) {
|
|
@@ -20358,8 +20107,7 @@ var HolographicSlate = /** @class */ (function (_super) {
|
|
|
20358
20107
|
this._applyContentViewport();
|
|
20359
20108
|
};
|
|
20360
20109
|
/**
|
|
20361
|
-
* @
|
|
20362
|
-
* @hidden*
|
|
20110
|
+
* @internal*
|
|
20363
20111
|
*/
|
|
20364
20112
|
HolographicSlate.prototype._prepareNode = function (scene) {
|
|
20365
20113
|
var _this = this;
|
|
@@ -21623,10 +21371,7 @@ var TouchButton3D = /** @class */ (function (_super) {
|
|
|
21623
21371
|
return abc - d;
|
|
21624
21372
|
};
|
|
21625
21373
|
/**
|
|
21626
|
-
* @
|
|
21627
|
-
* @param nearMeshPosition
|
|
21628
|
-
* @param activeInteractionCount
|
|
21629
|
-
* @hidden
|
|
21374
|
+
* @internal
|
|
21630
21375
|
*/
|
|
21631
21376
|
TouchButton3D.prototype._generatePointerEventType = function (providedType, nearMeshPosition, activeInteractionCount) {
|
|
21632
21377
|
if (providedType === core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.PointerEventTypes.POINTERDOWN || providedType === core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.PointerEventTypes.POINTERMOVE) {
|
|
@@ -23254,9 +22999,9 @@ var GUI3DManager = /** @class */ (function () {
|
|
|
23254
22999
|
function GUI3DManager(scene) {
|
|
23255
23000
|
var _this = this;
|
|
23256
23001
|
this._customControlScaling = 1.0;
|
|
23257
|
-
/** @
|
|
23002
|
+
/** @internal */
|
|
23258
23003
|
this._lastControlOver = {};
|
|
23259
|
-
/** @
|
|
23004
|
+
/** @internal */
|
|
23260
23005
|
this._lastControlDown = {};
|
|
23261
23006
|
/**
|
|
23262
23007
|
* Observable raised when the point picked by the pointer events changed
|
|
@@ -23267,9 +23012,9 @@ var GUI3DManager = /** @class */ (function () {
|
|
|
23267
23012
|
*/
|
|
23268
23013
|
this.onPickingObservable = new core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__.Observable();
|
|
23269
23014
|
// Shared resources
|
|
23270
|
-
/** @
|
|
23015
|
+
/** @internal */
|
|
23271
23016
|
this._sharedMaterials = {};
|
|
23272
|
-
/** @
|
|
23017
|
+
/** @internal */
|
|
23273
23018
|
this._touchSharedMaterials = {};
|
|
23274
23019
|
this._scene = scene || core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__.EngineStore.LastCreatedScene;
|
|
23275
23020
|
this._sceneDisposeObserver = this._scene.onDisposeObservable.add(function () {
|
|
@@ -23583,7 +23328,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
23583
23328
|
|
|
23584
23329
|
|
|
23585
23330
|
|
|
23586
|
-
/** @
|
|
23331
|
+
/** @internal */
|
|
23587
23332
|
var FluentMaterialDefines = /** @class */ (function (_super) {
|
|
23588
23333
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(FluentMaterialDefines, _super);
|
|
23589
23334
|
function FluentMaterialDefines() {
|
|
@@ -23903,7 +23648,7 @@ var name = "fluentPixelShader";
|
|
|
23903
23648
|
var shader = "precision highp float;\nvarying vec2 vUV;\nuniform vec4 albedoColor;\n#ifdef INNERGLOW\nuniform vec4 innerGlowColor;\n#endif\n#ifdef BORDER\nvarying vec2 scaleInfo;\nuniform float edgeSmoothingValue;\nuniform float borderMinValue;\n#endif\n#ifdef HOVERLIGHT\nvarying vec3 worldPosition;\nuniform vec3 hoverPosition;\nuniform vec4 hoverColor;\nuniform float hoverRadius;\n#endif\n#ifdef TEXTURE\nuniform sampler2D albedoSampler;\nuniform mat4 textureMatrix;\nvec2 finalUV;\n#endif\nvoid main(void) {\nvec3 albedo=albedoColor.rgb;\nfloat alpha=albedoColor.a;\n#ifdef TEXTURE\nfinalUV=vec2(textureMatrix*vec4(vUV,1.0,0.0));\nalbedo=texture2D(albedoSampler,finalUV).rgb;\n#endif\n#ifdef HOVERLIGHT\nfloat pointToHover=(1.0-clamp(length(hoverPosition-worldPosition)/hoverRadius,0.,1.))*hoverColor.a;\nalbedo=clamp(albedo+hoverColor.rgb*pointToHover,0.,1.);\n#else\nfloat pointToHover=1.0;\n#endif\n#ifdef BORDER \nfloat borderPower=10.0;\nfloat inverseBorderPower=1.0/borderPower;\nvec3 borderColor=albedo*borderPower;\nvec2 distanceToEdge;\ndistanceToEdge.x=abs(vUV.x-0.5)*2.0;\ndistanceToEdge.y=abs(vUV.y-0.5)*2.0;\nfloat borderValue=max(smoothstep(scaleInfo.x-edgeSmoothingValue,scaleInfo.x+edgeSmoothingValue,distanceToEdge.x),\nsmoothstep(scaleInfo.y-edgeSmoothingValue,scaleInfo.y+edgeSmoothingValue,distanceToEdge.y));\nborderColor=borderColor*borderValue*max(borderMinValue*inverseBorderPower,pointToHover); \nalbedo+=borderColor;\nalpha=max(alpha,borderValue);\n#endif\n#ifdef INNERGLOW\nvec2 uvGlow=(vUV-vec2(0.5,0.5))*(innerGlowColor.a*2.0);\nuvGlow=uvGlow*uvGlow;\nuvGlow=uvGlow*uvGlow;\nalbedo+=mix(vec3(0.0,0.0,0.0),innerGlowColor.rgb,uvGlow.x+uvGlow.y); \n#endif\ngl_FragColor=vec4(albedo,alpha);\n}";
|
|
23904
23649
|
// Sideeffect
|
|
23905
23650
|
core_Engines_shaderStore__WEBPACK_IMPORTED_MODULE_0__.ShaderStore.ShadersStore[name] = shader;
|
|
23906
|
-
/** @
|
|
23651
|
+
/** @internal */
|
|
23907
23652
|
var fluentPixelShader = { name: name, shader: shader };
|
|
23908
23653
|
|
|
23909
23654
|
|
|
@@ -23927,7 +23672,7 @@ var name = "fluentVertexShader";
|
|
|
23927
23672
|
var shader = "precision highp float;\nattribute vec3 position;\nattribute vec3 normal;\nattribute vec2 uv;\nuniform mat4 world;\nuniform mat4 viewProjection;\nvarying vec2 vUV;\n#ifdef BORDER\nvarying vec2 scaleInfo;\nuniform float borderWidth;\nuniform vec3 scaleFactor;\n#endif\n#ifdef HOVERLIGHT\nvarying vec3 worldPosition;\n#endif\nvoid main(void) {\nvUV=uv;\n#ifdef BORDER\nvec3 scale=scaleFactor;\nfloat minScale=min(min(scale.x,scale.y),scale.z);\nfloat maxScale=max(max(scale.x,scale.y),scale.z);\nfloat minOverMiddleScale=minScale/(scale.x+scale.y+scale.z-minScale-maxScale);\nfloat areaYZ=scale.y*scale.z;\nfloat areaXZ=scale.x*scale.z;\nfloat areaXY=scale.x*scale.y;\nfloat scaledBorderWidth=borderWidth; \nif (abs(normal.x)==1.0) \n{\nscale.x=scale.y;\nscale.y=scale.z;\nif (areaYZ>areaXZ && areaYZ>areaXY)\n{\nscaledBorderWidth*=minOverMiddleScale;\n}\n}\nelse if (abs(normal.y)==1.0) \n{\nscale.x=scale.z;\nif (areaXZ>areaXY && areaXZ>areaYZ)\n{\nscaledBorderWidth*=minOverMiddleScale;\n}\n}\nelse \n{\nif (areaXY>areaYZ && areaXY>areaXZ)\n{\nscaledBorderWidth*=minOverMiddleScale;\n}\n}\nfloat scaleRatio=min(scale.x,scale.y)/max(scale.x,scale.y);\nif (scale.x>scale.y)\n{\nscaleInfo.x=1.0-(scaledBorderWidth*scaleRatio);\nscaleInfo.y=1.0-scaledBorderWidth;\n}\nelse\n{\nscaleInfo.x=1.0-scaledBorderWidth;\nscaleInfo.y=1.0-(scaledBorderWidth*scaleRatio);\n} \n#endif \nvec4 worldPos=world*vec4(position,1.0);\n#ifdef HOVERLIGHT\nworldPosition=worldPos.xyz;\n#endif\ngl_Position=viewProjection*worldPos;\n}\n";
|
|
23928
23673
|
// Sideeffect
|
|
23929
23674
|
core_Engines_shaderStore__WEBPACK_IMPORTED_MODULE_0__.ShaderStore.ShadersStore[name] = shader;
|
|
23930
|
-
/** @
|
|
23675
|
+
/** @internal */
|
|
23931
23676
|
var fluentVertexShader = { name: name, shader: shader };
|
|
23932
23677
|
|
|
23933
23678
|
|
|
@@ -23962,7 +23707,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
23962
23707
|
|
|
23963
23708
|
|
|
23964
23709
|
|
|
23965
|
-
/** @
|
|
23710
|
+
/** @internal */
|
|
23966
23711
|
var FluentBackplateMaterialDefines = /** @class */ (function (_super) {
|
|
23967
23712
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(FluentBackplateMaterialDefines, _super);
|
|
23968
23713
|
function FluentBackplateMaterialDefines() {
|
|
@@ -23997,7 +23742,7 @@ var FluentBackplateMaterial = /** @class */ (function (_super) {
|
|
|
23997
23742
|
* Since desktop and VR/AR have different relative sizes, it's usually best to keep this false.
|
|
23998
23743
|
*/
|
|
23999
23744
|
_this.absoluteSizes = false;
|
|
24000
|
-
/** @
|
|
23745
|
+
/** @internal */
|
|
24001
23746
|
_this._filterWidth = 1;
|
|
24002
23747
|
/**
|
|
24003
23748
|
* Gets or sets the base color of the backplate.
|
|
@@ -24051,7 +23796,7 @@ var FluentBackplateMaterial = /** @class */ (function (_super) {
|
|
|
24051
23796
|
* Gets or sets the opacity of the fluent hover glow effect corresponding to the right pointer (0.0 - 1.0). Default is 0.
|
|
24052
23797
|
*/
|
|
24053
23798
|
_this.blobFade2 = 0;
|
|
24054
|
-
/** @
|
|
23799
|
+
/** @internal */
|
|
24055
23800
|
_this._rate = 0.135;
|
|
24056
23801
|
/**
|
|
24057
23802
|
* Gets or sets the color of the highlights on the backplate line.
|
|
@@ -24061,9 +23806,9 @@ var FluentBackplateMaterial = /** @class */ (function (_super) {
|
|
|
24061
23806
|
* Gets or sets the width of the highlights on the backplate line.
|
|
24062
23807
|
*/
|
|
24063
23808
|
_this.highlightWidth = 0.25;
|
|
24064
|
-
/** @
|
|
23809
|
+
/** @internal */
|
|
24065
23810
|
_this._highlightTransform = new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_1__.Vector4(1, 1, 0, 0);
|
|
24066
|
-
/** @
|
|
23811
|
+
/** @internal */
|
|
24067
23812
|
_this._highlight = 1;
|
|
24068
23813
|
/**
|
|
24069
23814
|
* Gets or sets the intensity of the iridescence effect.
|
|
@@ -24073,17 +23818,17 @@ var FluentBackplateMaterial = /** @class */ (function (_super) {
|
|
|
24073
23818
|
* Gets or sets the intensity of the iridescence effect on the backplate edges.
|
|
24074
23819
|
*/
|
|
24075
23820
|
_this.iridescenceEdgeIntensity = 1;
|
|
24076
|
-
/** @
|
|
23821
|
+
/** @internal */
|
|
24077
23822
|
_this._angle = -45;
|
|
24078
23823
|
/**
|
|
24079
23824
|
* Gets or sets the opacity of the backplate (0.0 - 1.0).
|
|
24080
23825
|
*/
|
|
24081
23826
|
_this.fadeOut = 1;
|
|
24082
|
-
/** @
|
|
23827
|
+
/** @internal */
|
|
24083
23828
|
_this._reflected = true;
|
|
24084
|
-
/** @
|
|
23829
|
+
/** @internal */
|
|
24085
23830
|
_this._frequency = 1;
|
|
24086
|
-
/** @
|
|
23831
|
+
/** @internal */
|
|
24087
23832
|
_this._verticalOffset = 0;
|
|
24088
23833
|
/**
|
|
24089
23834
|
* Gets or sets the world-space position of the tip of the left index finger.
|
|
@@ -24455,7 +24200,7 @@ var name = "fluentBackplatePixelShader";
|
|
|
24455
24200
|
var shader = "uniform vec3 cameraPosition;\nvarying vec3 vPosition;\nvarying vec3 vNormal;\nvarying vec2 vUV;\nvarying vec3 vTangent;\nvarying vec3 vBinormal;\nvarying vec4 vColor;\nvarying vec4 vExtra1;\nvarying vec4 vExtra2;\nvarying vec4 vExtra3;\nuniform float _Radius_;\nuniform float _Line_Width_;\nuniform bool _Absolute_Sizes_;\nuniform float _Filter_Width_;\nuniform vec4 _Base_Color_;\nuniform vec4 _Line_Color_;\nuniform float _Radius_Top_Left_;\nuniform float _Radius_Top_Right_;\nuniform float _Radius_Bottom_Left_;\nuniform float _Radius_Bottom_Right_;\nuniform vec3 _Blob_Position_;\nuniform float _Blob_Intensity_;\nuniform float _Blob_Near_Size_;\nuniform float _Blob_Far_Size_;\nuniform float _Blob_Near_Distance_;\nuniform float _Blob_Far_Distance_;\nuniform float _Blob_Fade_Length_;\nuniform float _Blob_Pulse_;\nuniform float _Blob_Fade_;\nuniform sampler2D _Blob_Texture_;\nuniform vec3 _Blob_Position_2_;\nuniform float _Blob_Near_Size_2_;\nuniform float _Blob_Pulse_2_;\nuniform float _Blob_Fade_2_;\nuniform float _Rate_;\nuniform vec4 _Highlight_Color_;\nuniform float _Highlight_Width_;\nuniform vec4 _Highlight_Transform_;\nuniform float _Highlight_;\nuniform float _Iridescence_Intensity_;\nuniform float _Iridescence_Edge_Intensity_;\nuniform float _Angle_;\nuniform float _Fade_Out_;\nuniform bool _Reflected_;\nuniform float _Frequency_;\nuniform float _Vertical_Offset_;\nuniform sampler2D _Iridescent_Map_;\nuniform bool _Use_Global_Left_Index_;\nuniform bool _Use_Global_Right_Index_;\nuniform vec4 Global_Left_Index_Tip_Position;\nuniform vec4 Global_Right_Index_Tip_Position;\nvoid Round_Rect_Fragment_B31(\nfloat Radius,\nfloat Line_Width,\nvec4 Line_Color,\nfloat Filter_Width,\nvec2 UV,\nfloat Line_Visibility,\nvec4 Rect_Parms,\nvec4 Fill_Color,\nout vec4 Color)\n{\nfloat d=length(max(abs(UV)-Rect_Parms.xy,0.0));\nfloat dx=max(fwidth(d)*Filter_Width,0.00001);\nfloat g=min(Rect_Parms.z,Rect_Parms.w);\nfloat dgrad=max(fwidth(g)*Filter_Width,0.00001);\nfloat Inside_Rect=clamp(g/dgrad,0.0,1.0);\nfloat inner=clamp((d+dx*0.5-max(Radius-Line_Width,d-dx*0.5))/dx,0.0,1.0);\nColor=clamp(mix(Fill_Color,Line_Color,inner),0.0,1.0)*Inside_Rect;\n}\nvoid Blob_Fragment_B71(\nsampler2D Blob_Texture,\nvec4 Blob_Info1,\nvec4 Blob_Info2,\nout vec4 Blob_Color)\n{\nfloat k1=dot(Blob_Info1.xy,Blob_Info1.xy);\nfloat k2=dot(Blob_Info2.xy,Blob_Info2.xy);\nvec3 closer=k1<k2 ? vec3(k1,Blob_Info1.z,Blob_Info1.w) : vec3(k2,Blob_Info2.z,Blob_Info2.w);\nBlob_Color=closer.z*texture(Blob_Texture,vec2(vec2(sqrt(closer.x),closer.y).x,1.0-vec2(sqrt(closer.x),closer.y).y))*clamp(1.0-closer.x,0.0,1.0);\n}\nvoid Line_Fragment_B48(\nvec4 Base_Color,\nvec4 Highlight_Color,\nfloat Highlight_Width,\nvec3 Line_Vertex,\nfloat Highlight,\nout vec4 Line_Color)\n{\nfloat k2=1.0-clamp(abs(Line_Vertex.y/Highlight_Width),0.0,1.0);\nLine_Color=mix(Base_Color,Highlight_Color,Highlight*k2);\n}\nvoid Scale_RGB_B54(\nvec4 Color,\nfloat Scalar,\nout vec4 Result)\n{\nResult=vec4(Scalar,Scalar,Scalar,1)*Color;\n}\nvoid Conditional_Float_B38(\nbool Which,\nfloat If_True,\nfloat If_False,\nout float Result)\n{\nResult=Which ? If_True : If_False;\n}\nvoid main()\n{\nfloat R_Q72;\nfloat G_Q72;\nfloat B_Q72;\nfloat A_Q72;\nR_Q72=vColor.r; G_Q72=vColor.g; B_Q72=vColor.b; A_Q72=vColor.a;\nvec4 Blob_Color_Q71;\n#if BLOB_ENABLE\nfloat k1=dot(vExtra2.xy,vExtra2.xy);\nfloat k2=dot(vExtra3.xy,vExtra3.xy);\nvec3 closer=k1<k2 ? vec3(k1,vExtra2.z,vExtra2.w) : vec3(k2,vExtra3.z,vExtra3.w);\nBlob_Color_Q71=closer.z*texture(_Blob_Texture_,vec2(vec2(sqrt(closer.x),closer.y).x,1.0-vec2(sqrt(closer.x),closer.y).y))*clamp(1.0-closer.x,0.0,1.0);\n#else\nBlob_Color_Q71=vec4(0,0,0,0);\n#endif\nvec4 Line_Color_Q48;\nLine_Fragment_B48(_Line_Color_,_Highlight_Color_,_Highlight_Width_,vTangent,_Highlight_,Line_Color_Q48);\nfloat X_Q67;\nfloat Y_Q67;\nX_Q67=vUV.x;\nY_Q67=vUV.y;\nvec3 Incident_Q66=normalize(vPosition-cameraPosition);\nvec3 Reflected_Q60=reflect(Incident_Q66,vBinormal);\nfloat Product_Q63=Y_Q67*_Vertical_Offset_;\nfloat Dot_Q68=dot(Incident_Q66, Reflected_Q60);\nfloat Dot_Q57=dot(vNormal, Incident_Q66);\nfloat Result_Q38;\nConditional_Float_B38(_Reflected_,Dot_Q68,Dot_Q57,Result_Q38);\nfloat Product_Q64=Result_Q38*_Frequency_;\nfloat Sum_Q69=Product_Q64+1.0;\nfloat Product_Q70=Sum_Q69*0.5;\nfloat Sum_Q62=Product_Q63+Product_Q70;\nfloat FractF_Q59=fract(Sum_Q62);\nvec2 Vec2_Q65=vec2(FractF_Q59,0.5);\nvec4 Color_Q58;\n#if IRIDESCENT_MAP_ENABLE\nColor_Q58=texture(_Iridescent_Map_,Vec2_Q65);\n#else\nColor_Q58=vec4(0,0,0,0);\n#endif\nvec4 Result_Q54;\nScale_RGB_B54(Color_Q58,_Iridescence_Edge_Intensity_,Result_Q54);\nvec4 Result_Q55;\nScale_RGB_B54(Color_Q58,_Iridescence_Intensity_,Result_Q55);\nvec4 Base_And_Iridescent_Q53;\nBase_And_Iridescent_Q53=Line_Color_Q48+vec4(Result_Q54.rgb,0.0);\nvec4 Base_And_Iridescent_Q56;\nBase_And_Iridescent_Q56=_Base_Color_+vec4(Result_Q55.rgb,0.0);\nvec4 Result_Q52=Base_And_Iridescent_Q53; Result_Q52.a=1.0;\nvec4 Result_Q35=Blob_Color_Q71+(1.0-Blob_Color_Q71.a)*Base_And_Iridescent_Q56;\nvec4 Color_Q31;\nRound_Rect_Fragment_B31(R_Q72,G_Q72,Result_Q52,_Filter_Width_,vUV,1.0,vExtra1,Result_Q35,Color_Q31);\nvec4 Result_Q47=_Fade_Out_*Color_Q31;\nvec4 Out_Color=Result_Q47;\nfloat Clip_Threshold=0.001;\nbool To_sRGB=false;\ngl_FragColor=Out_Color;\n}";
|
|
24456
24201
|
// Sideeffect
|
|
24457
24202
|
core_Engines_shaderStore__WEBPACK_IMPORTED_MODULE_0__.ShaderStore.ShadersStore[name] = shader;
|
|
24458
|
-
/** @
|
|
24203
|
+
/** @internal */
|
|
24459
24204
|
var fluentBackplatePixelShader = { name: name, shader: shader };
|
|
24460
24205
|
|
|
24461
24206
|
|
|
@@ -24479,7 +24224,7 @@ var name = "fluentBackplateVertexShader";
|
|
|
24479
24224
|
var shader = "uniform mat4 world;\nuniform mat4 viewProjection;\nuniform vec3 cameraPosition;\nattribute vec3 position;\nattribute vec3 normal;\n#ifdef TANGENT\nattribute vec3 tangent;\n#else\nconst vec3 tangent=vec3(0.);\n#endif\nuniform float _Radius_;\nuniform float _Line_Width_;\nuniform bool _Absolute_Sizes_;\nuniform float _Filter_Width_;\nuniform vec4 _Base_Color_;\nuniform vec4 _Line_Color_;\nuniform float _Radius_Top_Left_;\nuniform float _Radius_Top_Right_;\nuniform float _Radius_Bottom_Left_;\nuniform float _Radius_Bottom_Right_;\nuniform vec3 _Blob_Position_;\nuniform float _Blob_Intensity_;\nuniform float _Blob_Near_Size_;\nuniform float _Blob_Far_Size_;\nuniform float _Blob_Near_Distance_;\nuniform float _Blob_Far_Distance_;\nuniform float _Blob_Fade_Length_;\nuniform float _Blob_Pulse_;\nuniform float _Blob_Fade_;\nuniform sampler2D _Blob_Texture_;\nuniform vec3 _Blob_Position_2_;\nuniform float _Blob_Near_Size_2_;\nuniform float _Blob_Pulse_2_;\nuniform float _Blob_Fade_2_;\nuniform float _Rate_;\nuniform vec4 _Highlight_Color_;\nuniform float _Highlight_Width_;\nuniform vec4 _Highlight_Transform_;\nuniform float _Highlight_;\nuniform float _Iridescence_Intensity_;\nuniform float _Iridescence_Edge_Intensity_;\nuniform float _Angle_;\nuniform float _Fade_Out_;\nuniform bool _Reflected_;\nuniform float _Frequency_;\nuniform float _Vertical_Offset_;\nuniform sampler2D _Iridescent_Map_;\nuniform bool _Use_Global_Left_Index_;\nuniform bool _Use_Global_Right_Index_;\nuniform vec4 Global_Left_Index_Tip_Position;\nuniform vec4 Global_Right_Index_Tip_Position;\nvarying vec3 vPosition;\nvarying vec3 vNormal;\nvarying vec2 vUV;\nvarying vec3 vTangent;\nvarying vec3 vBinormal;\nvarying vec4 vColor;\nvarying vec4 vExtra1;\nvarying vec4 vExtra2;\nvarying vec4 vExtra3;\nvoid Object_To_World_Pos_B115(\nvec3 Pos_Object,\nout vec3 Pos_World)\n{\nPos_World=(world*vec4(Pos_Object,1.0)).xyz;\n}\nvoid PickDir_B140(\nfloat Degrees,\nvec3 DirX,\nvec3 DirY,\nout vec3 Dir)\n{\nfloat a=Degrees*3.14159/180.0;\nDir=cos(a)*DirX+sin(a)*DirY;\n}\nvoid Round_Rect_Vertex_B139(\nvec2 UV,\nfloat Radius,\nfloat Margin,\nfloat Anisotropy,\nfloat Gradient1,\nfloat Gradient2,\nout vec2 Rect_UV,\nout vec4 Rect_Parms,\nout vec2 Scale_XY,\nout vec2 Line_UV)\n{\nScale_XY=vec2(Anisotropy,1.0);\nLine_UV=(UV-vec2(0.5,0.5));\nRect_UV=Line_UV*Scale_XY;\nRect_Parms.xy=Scale_XY*0.5-vec2(Radius,Radius)-vec2(Margin,Margin);\nRect_Parms.z=Gradient1; \nRect_Parms.w=Gradient2;\n}\nvoid Line_Vertex_B135(\nvec2 Scale_XY,\nvec2 UV,\nfloat Time,\nfloat Rate,\nvec4 Highlight_Transform,\nout vec3 Line_Vertex)\n{\nfloat angle2=(Rate*Time)*2.0*3.1416;\nfloat sinAngle2=sin(angle2);\nfloat cosAngle2=cos(angle2);\nvec2 xformUV=UV*Highlight_Transform.xy+Highlight_Transform.zw;\nLine_Vertex.x=0.0;\nLine_Vertex.y=cosAngle2*xformUV.x-sinAngle2*xformUV.y;\nLine_Vertex.z=0.0; \n}\nvoid Blob_Vertex_B180(\nvec3 Position,\nvec3 Normal,\nvec3 Tangent,\nvec3 Bitangent,\nvec3 Blob_Position,\nfloat Intensity,\nfloat Blob_Near_Size,\nfloat Blob_Far_Size,\nfloat Blob_Near_Distance,\nfloat Blob_Far_Distance,\nfloat Blob_Fade_Length,\nfloat Blob_Pulse,\nfloat Blob_Fade,\nout vec4 Blob_Info)\n{\nvec3 blob=Blob_Position;\nvec3 delta=blob-Position;\nfloat dist=dot(Normal,delta);\nfloat lerpValue=clamp((abs(dist)-Blob_Near_Distance)/(Blob_Far_Distance-Blob_Near_Distance),0.0,1.0);\nfloat fadeValue=1.0-clamp((abs(dist)-Blob_Far_Distance)/Blob_Fade_Length,0.0,1.0);\nfloat size=Blob_Near_Size+(Blob_Far_Size-Blob_Near_Size)*lerpValue;\nvec2 blobXY=vec2(dot(delta,Tangent),dot(delta,Bitangent))/(0.0001+size);\nfloat Fade=fadeValue*Intensity*Blob_Fade;\nfloat Distance=(lerpValue*0.5+0.5)*(1.0-Blob_Pulse);\nBlob_Info=vec4(blobXY.x,blobXY.y,Distance,Fade);\n}\nvoid Move_Verts_B129(\nfloat Anisotropy,\nvec3 P,\nfloat Radius,\nout vec3 New_P,\nout vec2 New_UV,\nout float Radial_Gradient,\nout vec3 Radial_Dir)\n{\nvec2 UV=P.xy*2.0+0.5;\nvec2 center=clamp(UV,0.0,1.0);\nvec2 delta=UV-center;\nvec2 r2=2.0*vec2(Radius/Anisotropy,Radius);\nNew_UV=center+r2*(UV-2.0*center+0.5);\nNew_P=vec3(New_UV-0.5,P.z);\nRadial_Gradient=1.0-length(delta)*2.0;\nRadial_Dir=vec3(delta*r2,0.0);\n}\nvoid Object_To_World_Dir_B132(\nvec3 Dir_Object,\nout vec3 Binormal_World,\nout vec3 Binormal_World_N,\nout float Binormal_Length)\n{\nBinormal_World=(world*vec4(Dir_Object,0.0)).xyz;\nBinormal_Length=length(Binormal_World);\nBinormal_World_N=Binormal_World/Binormal_Length;\n}\nvoid RelativeOrAbsoluteDetail_B147(\nfloat Nominal_Radius,\nfloat Nominal_LineWidth,\nbool Absolute_Measurements,\nfloat Height,\nout float Radius,\nout float Line_Width)\n{\nfloat scale=Absolute_Measurements ? 1.0/Height : 1.0;\nRadius=Nominal_Radius*scale;\nLine_Width=Nominal_LineWidth*scale;\n}\nvoid Edge_AA_Vertex_B130(\nvec3 Position_World,\nvec3 Position_Object,\nvec3 Normal_Object,\nvec3 Eye,\nfloat Radial_Gradient,\nvec3 Radial_Dir,\nvec3 Tangent,\nout float Gradient1,\nout float Gradient2)\n{\nvec3 I=(Eye-Position_World);\nvec3 T=(world* vec4(Tangent,0.0)).xyz;\nfloat g=(dot(T,I)<0.0) ? 0.0 : 1.0;\nif (Normal_Object.z==0.0) { \nGradient1=Position_Object.z>0.0 ? g : 1.0;\nGradient2=Position_Object.z>0.0 ? 1.0 : g;\n} else {\nGradient1=g+(1.0-g)*(Radial_Gradient);\nGradient2=1.0;\n}\n}\nvoid Pick_Radius_B144(\nfloat Radius,\nfloat Radius_Top_Left,\nfloat Radius_Top_Right,\nfloat Radius_Bottom_Left,\nfloat Radius_Bottom_Right,\nvec3 Position,\nout float Result)\n{\nbool whichY=Position.y>0.0;\nResult=Position.x<0.0 ? (whichY ? Radius_Top_Left : Radius_Bottom_Left) : (whichY ? Radius_Top_Right : Radius_Bottom_Right);\nResult*=Radius;\n}\nvoid main()\n{\nvec3 Nrm_World_Q128;\nNrm_World_Q128=normalize((world*vec4(normal,0.0)).xyz);\nvec3 Tangent_World_Q131;\nvec3 Tangent_World_N_Q131;\nfloat Tangent_Length_Q131;\nTangent_World_Q131=(world*vec4(vec3(1,0,0),0.0)).xyz;\nTangent_Length_Q131=length(Tangent_World_Q131);\nTangent_World_N_Q131=Tangent_World_Q131/Tangent_Length_Q131;\nvec3 Binormal_World_Q132;\nvec3 Binormal_World_N_Q132;\nfloat Binormal_Length_Q132;\nObject_To_World_Dir_B132(vec3(0,1,0),Binormal_World_Q132,Binormal_World_N_Q132,Binormal_Length_Q132);\nfloat Anisotropy_Q133=Tangent_Length_Q131/Binormal_Length_Q132;\nvec3 Result_Q177;\nResult_Q177=mix(_Blob_Position_,Global_Left_Index_Tip_Position.xyz,float(_Use_Global_Left_Index_));\nvec3 Result_Q178;\nResult_Q178=mix(_Blob_Position_2_,Global_Right_Index_Tip_Position.xyz,float(_Use_Global_Right_Index_));\nfloat Result_Q144;\nPick_Radius_B144(_Radius_,_Radius_Top_Left_,_Radius_Top_Right_,_Radius_Bottom_Left_,_Radius_Bottom_Right_,position,Result_Q144);\nvec3 Dir_Q140;\nPickDir_B140(_Angle_,Tangent_World_N_Q131,Binormal_World_N_Q132,Dir_Q140);\nfloat Radius_Q147;\nfloat Line_Width_Q147;\nRelativeOrAbsoluteDetail_B147(Result_Q144,_Line_Width_,_Absolute_Sizes_,Binormal_Length_Q132,Radius_Q147,Line_Width_Q147);\nvec4 Out_Color_Q145=vec4(Radius_Q147,Line_Width_Q147,0,1);\nvec3 New_P_Q129;\nvec2 New_UV_Q129;\nfloat Radial_Gradient_Q129;\nvec3 Radial_Dir_Q129;\nMove_Verts_B129(Anisotropy_Q133,position,Radius_Q147,New_P_Q129,New_UV_Q129,Radial_Gradient_Q129,Radial_Dir_Q129);\nvec3 Pos_World_Q115;\nObject_To_World_Pos_B115(New_P_Q129,Pos_World_Q115);\nvec4 Blob_Info_Q180;\n#if BLOB_ENABLE\nBlob_Vertex_B180(Pos_World_Q115,Nrm_World_Q128,Tangent_World_N_Q131,Binormal_World_N_Q132,Result_Q177,_Blob_Intensity_,_Blob_Near_Size_,_Blob_Far_Size_,_Blob_Near_Distance_,_Blob_Far_Distance_,_Blob_Fade_Length_,_Blob_Pulse_,_Blob_Fade_,Blob_Info_Q180);\n#else\nBlob_Info_Q180=vec4(0,0,0,0);\n#endif\nvec4 Blob_Info_Q181;\n#if BLOB_ENABLE_2\nBlob_Vertex_B180(Pos_World_Q115,Nrm_World_Q128,Tangent_World_N_Q131,Binormal_World_N_Q132,Result_Q178,_Blob_Intensity_,_Blob_Near_Size_2_,_Blob_Far_Size_,_Blob_Near_Distance_,_Blob_Far_Distance_,_Blob_Fade_Length_,_Blob_Pulse_2_,_Blob_Fade_2_,Blob_Info_Q181);\n#else\nBlob_Info_Q181=vec4(0,0,0,0);\n#endif\nfloat Gradient1_Q130;\nfloat Gradient2_Q130;\n#if SMOOTH_EDGES\nEdge_AA_Vertex_B130(Pos_World_Q115,position,normal,cameraPosition,Radial_Gradient_Q129,Radial_Dir_Q129,tangent,Gradient1_Q130,Gradient2_Q130);\n#else\nGradient1_Q130=1.0;\nGradient2_Q130=1.0;\n#endif\nvec2 Rect_UV_Q139;\nvec4 Rect_Parms_Q139;\nvec2 Scale_XY_Q139;\nvec2 Line_UV_Q139;\nRound_Rect_Vertex_B139(New_UV_Q129,Radius_Q147,0.0,Anisotropy_Q133,Gradient1_Q130,Gradient2_Q130,Rect_UV_Q139,Rect_Parms_Q139,Scale_XY_Q139,Line_UV_Q139);\nvec3 Line_Vertex_Q135;\nLine_Vertex_B135(Scale_XY_Q139,Line_UV_Q139,0.0,_Rate_,_Highlight_Transform_,Line_Vertex_Q135);\nvec3 Position=Pos_World_Q115;\nvec3 Normal=Dir_Q140;\nvec2 UV=Rect_UV_Q139;\nvec3 Tangent=Line_Vertex_Q135;\nvec3 Binormal=Nrm_World_Q128;\nvec4 Color=Out_Color_Q145;\nvec4 Extra1=Rect_Parms_Q139;\nvec4 Extra2=Blob_Info_Q180;\nvec4 Extra3=Blob_Info_Q181;\ngl_Position=viewProjection*vec4(Position,1);\nvPosition=Position;\nvNormal=Normal;\nvUV=UV;\nvTangent=Tangent;\nvBinormal=Binormal;\nvColor=Color;\nvExtra1=Extra1;\nvExtra2=Extra2;\nvExtra3=Extra3;\n}";
|
|
24480
24225
|
// Sideeffect
|
|
24481
24226
|
core_Engines_shaderStore__WEBPACK_IMPORTED_MODULE_0__.ShaderStore.ShadersStore[name] = shader;
|
|
24482
|
-
/** @
|
|
24227
|
+
/** @internal */
|
|
24483
24228
|
var fluentBackplateVertexShader = { name: name, shader: shader };
|
|
24484
24229
|
|
|
24485
24230
|
|
|
@@ -24514,7 +24259,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
24514
24259
|
|
|
24515
24260
|
|
|
24516
24261
|
|
|
24517
|
-
/** @
|
|
24262
|
+
/** @internal */
|
|
24518
24263
|
var FluentButtonMaterialDefines = /** @class */ (function (_super) {
|
|
24519
24264
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(FluentButtonMaterialDefines, _super);
|
|
24520
24265
|
function FluentButtonMaterialDefines() {
|
|
@@ -25077,7 +24822,7 @@ var name = "fluentButtonPixelShader";
|
|
|
25077
24822
|
var shader = "uniform vec3 cameraPosition;\nvarying vec3 vPosition;\nvarying vec3 vNormal;\nvarying vec2 vUV;\nvarying vec3 vTangent;\nvarying vec3 vBinormal;\nvarying vec4 vColor;\nvarying vec4 vExtra1;\nuniform float _Edge_Width_;\nuniform vec4 _Edge_Color_;\nuniform bool _Relative_Width_;\nuniform float _Proximity_Max_Intensity_;\nuniform float _Proximity_Far_Distance_;\nuniform float _Proximity_Near_Radius_;\nuniform float _Proximity_Anisotropy_;\nuniform float _Selection_Fuzz_;\nuniform float _Selected_;\nuniform float _Selection_Fade_;\nuniform float _Selection_Fade_Size_;\nuniform float _Selected_Distance_;\nuniform float _Selected_Fade_Length_;\nuniform bool _Blob_Enable_;\nuniform vec3 _Blob_Position_;\nuniform float _Blob_Intensity_;\nuniform float _Blob_Near_Size_;\nuniform float _Blob_Far_Size_;\nuniform float _Blob_Near_Distance_;\nuniform float _Blob_Far_Distance_;\nuniform float _Blob_Fade_Length_;\nuniform float _Blob_Inner_Fade_;\nuniform float _Blob_Pulse_;\nuniform float _Blob_Fade_;\nuniform sampler2D _Blob_Texture_;\nuniform bool _Blob_Enable_2_;\nuniform vec3 _Blob_Position_2_;\nuniform float _Blob_Near_Size_2_;\nuniform float _Blob_Inner_Fade_2_;\nuniform float _Blob_Pulse_2_;\nuniform float _Blob_Fade_2_;\nuniform vec3 _Active_Face_Dir_;\nuniform vec3 _Active_Face_Up_;\nuniform bool Enable_Fade;\nuniform float _Fade_Width_;\nuniform bool _Smooth_Active_Face_;\nuniform bool _Show_Frame_;\nuniform bool _Use_Blob_Texture_;\nuniform bool Use_Global_Left_Index;\nuniform bool Use_Global_Right_Index;\nuniform vec4 Global_Left_Index_Tip_Position;\nuniform vec4 Global_Right_Index_Tip_Position;\nuniform vec4 Global_Left_Thumb_Tip_Position;\nuniform vec4 Global_Right_Thumb_Tip_Position;\nuniform float Global_Left_Index_Tip_Proximity;\nuniform float Global_Right_Index_Tip_Proximity;\nvoid Holo_Edge_Fragment_B35(\nvec4 Edges,\nfloat Edge_Width,\nout float NotEdge)\n{\nvec2 c=vec2(min(Edges.r,Edges.g),min(Edges.b,Edges.a));\nvec2 df=fwidth(c)*Edge_Width;\nvec2 g=clamp(c/df,0.0,1.0);\nNotEdge=g.x*g.y;\n}\nvoid Blob_Fragment_B39(\nvec2 UV,\nvec3 Blob_Info,\nsampler2D Blob_Texture,\nout vec4 Blob_Color)\n{\nfloat k=dot(UV,UV);\nBlob_Color=Blob_Info.y*texture(Blob_Texture,vec2(vec2(sqrt(k),Blob_Info.x).x,1.0-vec2(sqrt(k),Blob_Info.x).y))*(1.0-clamp(k,0.0,1.0));\n}\nvec2 FilterStep(vec2 Edge,vec2 X)\n{\nvec2 dX=max(fwidth(X),vec2(0.00001,0.00001));\nreturn clamp( (X+dX-max(Edge,X-dX))/(dX*2.0),0.0,1.0);\n}\nvoid Wireframe_Fragment_B59(\nvec3 Widths,\nvec2 UV,\nfloat Proximity,\nvec4 Edge_Color,\nout vec4 Wireframe)\n{\nvec2 c=min(UV,vec2(1.0,1.0)-UV);\nvec2 g=FilterStep(Widths.xy*0.5,c); \nWireframe=(1.0-min(g.x,g.y))*Proximity*Edge_Color;\n}\nvoid Proximity_B53(\nvec3 Proximity_Center,\nvec3 Proximity_Center_2,\nfloat Proximity_Max_Intensity,\nfloat Proximity_Near_Radius,\nvec3 Position,\nvec3 Show_Selection,\nvec4 Extra1,\nfloat Dist_To_Face,\nfloat Intensity,\nout float Proximity)\n{\nvec2 delta1=Extra1.xy;\nvec2 delta2=Extra1.zw;\nfloat d2=sqrt(min(dot(delta1,delta1),dot(delta2,delta2))+Dist_To_Face*Dist_To_Face);\nProximity=Intensity*Proximity_Max_Intensity*(1.0-clamp(d2/Proximity_Near_Radius,0.0,1.0))*(1.0-Show_Selection.x)+Show_Selection.x;\n}\nvoid To_XYZ_B46(\nvec3 Vec3,\nout float X,\nout float Y,\nout float Z)\n{\nX=Vec3.x;\nY=Vec3.y;\nZ=Vec3.z;\n}\nvoid main()\n{\nfloat NotEdge_Q35;\n#if ENABLE_FADE\nHolo_Edge_Fragment_B35(vColor,_Fade_Width_,NotEdge_Q35);\n#else\nNotEdge_Q35=1.0;\n#endif\nvec4 Blob_Color_Q39;\nfloat k=dot(vUV,vUV);\nvec2 blobTextureCoord=vec2(vec2(sqrt(k),vTangent.x).x,1.0-vec2(sqrt(k),vTangent.x).y);\nvec4 blobColor=mix(vec4(1.0,1.0,1.0,1.0)*step(1.0-vTangent.x,clamp(sqrt(k)+0.1,0.0,1.0)),texture(_Blob_Texture_,blobTextureCoord),float(_Use_Blob_Texture_));\nBlob_Color_Q39=vTangent.y*blobColor*(1.0-clamp(k,0.0,1.0));\nfloat Is_Quad_Q24;\nIs_Quad_Q24=vNormal.z;\nvec3 Blob_Position_Q41= mix(_Blob_Position_,Global_Left_Index_Tip_Position.xyz,float(Use_Global_Left_Index));\nvec3 Blob_Position_Q42= mix(_Blob_Position_2_,Global_Right_Index_Tip_Position.xyz,float(Use_Global_Right_Index));\nfloat X_Q46;\nfloat Y_Q46;\nfloat Z_Q46;\nTo_XYZ_B46(vBinormal,X_Q46,Y_Q46,Z_Q46);\nfloat Proximity_Q53;\nProximity_B53(Blob_Position_Q41,Blob_Position_Q42,_Proximity_Max_Intensity_,_Proximity_Near_Radius_,vPosition,vBinormal,vExtra1,Y_Q46,Z_Q46,Proximity_Q53);\nvec4 Wireframe_Q59;\nWireframe_Fragment_B59(vNormal,vUV,Proximity_Q53,_Edge_Color_,Wireframe_Q59);\nvec4 Wire_Or_Blob_Q23=mix(Wireframe_Q59,Blob_Color_Q39,Is_Quad_Q24);\nvec4 Result_Q22;\nResult_Q22=mix(Wire_Or_Blob_Q23,vec4(0.3,0.3,0.3,0.3),float(_Show_Frame_));\nvec4 Final_Color_Q37=NotEdge_Q35*Result_Q22;\nvec4 Out_Color=Final_Color_Q37;\nfloat Clip_Threshold=0.0;\nbool To_sRGB=false;\ngl_FragColor=Out_Color;\n}";
|
|
25078
24823
|
// Sideeffect
|
|
25079
24824
|
core_Engines_shaderStore__WEBPACK_IMPORTED_MODULE_0__.ShaderStore.ShadersStore[name] = shader;
|
|
25080
|
-
/** @
|
|
24825
|
+
/** @internal */
|
|
25081
24826
|
var fluentButtonPixelShader = { name: name, shader: shader };
|
|
25082
24827
|
|
|
25083
24828
|
|
|
@@ -25101,7 +24846,7 @@ var name = "fluentButtonVertexShader";
|
|
|
25101
24846
|
var shader = "uniform mat4 world;\nuniform mat4 viewProjection;\nuniform vec3 cameraPosition;\nattribute vec3 position;\nattribute vec3 normal;\nattribute vec2 uv;\nattribute vec3 tangent;\nattribute vec4 color;\nuniform float _Edge_Width_;\nuniform vec4 _Edge_Color_;\nuniform float _Proximity_Max_Intensity_;\nuniform float _Proximity_Far_Distance_;\nuniform float _Proximity_Near_Radius_;\nuniform float _Proximity_Anisotropy_;\nuniform float _Selection_Fuzz_;\nuniform float _Selected_;\nuniform float _Selection_Fade_;\nuniform float _Selection_Fade_Size_;\nuniform float _Selected_Distance_;\nuniform float _Selected_Fade_Length_;\nuniform bool _Blob_Enable_;\nuniform vec3 _Blob_Position_;\nuniform float _Blob_Intensity_;\nuniform float _Blob_Near_Size_;\nuniform float _Blob_Far_Size_;\nuniform float _Blob_Near_Distance_;\nuniform float _Blob_Far_Distance_;\nuniform float _Blob_Fade_Length_;\nuniform float _Blob_Inner_Fade_;\nuniform float _Blob_Pulse_;\nuniform float _Blob_Fade_;\nuniform sampler2D _Blob_Texture_;\nuniform bool _Blob_Enable_2_;\nuniform vec3 _Blob_Position_2_;\nuniform float _Blob_Near_Size_2_;\nuniform float _Blob_Inner_Fade_2_;\nuniform float _Blob_Pulse_2_;\nuniform float _Blob_Fade_2_;\nuniform vec3 _Active_Face_Dir_;\nuniform vec3 _Active_Face_Up_;\nuniform bool _Enable_Fade_;\nuniform float _Fade_Width_;\nuniform bool _Smooth_Active_Face_;\nuniform bool _Show_Frame_;\nuniform bool Use_Global_Left_Index;\nuniform bool Use_Global_Right_Index;\nuniform vec4 Global_Left_Index_Tip_Position;\nuniform vec4 Global_Right_Index_Tip_Position;\nuniform vec4 Global_Left_Thumb_Tip_Position;\nuniform vec4 Global_Right_Thumb_Tip_Position;\nuniform float Global_Left_Index_Tip_Proximity;\nuniform float Global_Right_Index_Tip_Proximity;\nvarying vec3 vPosition;\nvarying vec3 vNormal;\nvarying vec2 vUV;\nvarying vec3 vTangent;\nvarying vec3 vBinormal;\nvarying vec4 vColor;\nvarying vec4 vExtra1;\nvoid Blob_Vertex_B47(\nvec3 Position,\nvec3 Normal,\nvec3 Tangent,\nvec3 Bitangent,\nvec3 Blob_Position,\nfloat Intensity,\nfloat Blob_Near_Size,\nfloat Blob_Far_Size,\nfloat Blob_Near_Distance,\nfloat Blob_Far_Distance,\nvec4 Vx_Color,\nvec2 UV,\nvec3 Face_Center,\nvec2 Face_Size,\nvec2 In_UV,\nfloat Blob_Fade_Length,\nfloat Selection_Fade,\nfloat Selection_Fade_Size,\nfloat Inner_Fade,\nvec3 Active_Face_Center,\nfloat Blob_Pulse,\nfloat Blob_Fade,\nfloat Blob_Enabled,\nout vec3 Out_Position,\nout vec2 Out_UV,\nout vec3 Blob_Info)\n{\nfloat blobSize,fadeIn;\nvec3 Hit_Position;\nBlob_Info=vec3(0.0,0.0,0.0);\nfloat Hit_Distance=dot(Blob_Position-Face_Center,Normal);\nHit_Position=Blob_Position-Hit_Distance*Normal;\nfloat absD=abs(Hit_Distance);\nfloat lerpVal=clamp((absD-Blob_Near_Distance)/(Blob_Far_Distance-Blob_Near_Distance),0.0,1.0);\nfadeIn=1.0-clamp((absD-Blob_Far_Distance)/Blob_Fade_Length,0.0,1.0);\nfloat innerFade=1.0-clamp(-Hit_Distance/Inner_Fade,0.0,1.0);\nfloat farClip=clamp(1.0-step(Blob_Far_Distance+Blob_Fade_Length,absD),0.0,1.0);\nfloat size=mix(Blob_Near_Size,Blob_Far_Size,lerpVal)*farClip;\nblobSize=mix(size,Selection_Fade_Size,Selection_Fade)*innerFade*Blob_Enabled;\nBlob_Info.x=lerpVal*0.5+0.5;\nBlob_Info.y=fadeIn*Intensity*(1.0-Selection_Fade)*Blob_Fade;\nBlob_Info.x*=(1.0-Blob_Pulse);\nvec3 delta=Hit_Position-Face_Center;\nvec2 blobCenterXY=vec2(dot(delta,Tangent),dot(delta,Bitangent));\nvec2 quadUVin=2.0*UV-1.0; \nvec2 blobXY=blobCenterXY+quadUVin*blobSize;\nvec2 blobClipped=clamp(blobXY,-Face_Size*0.5,Face_Size*0.5);\nvec2 blobUV=(blobClipped-blobCenterXY)/max(blobSize,0.0001)*2.0;\nvec3 blobCorner=Face_Center+blobClipped.x*Tangent+blobClipped.y*Bitangent;\nOut_Position=mix(Position,blobCorner,Vx_Color.rrr);\nOut_UV=mix(In_UV,blobUV,Vx_Color.rr);\n}\nvec2 ProjectProximity(\nvec3 blobPosition,\nvec3 position,\nvec3 center,\nvec3 dir,\nvec3 xdir,\nvec3 ydir,\nout float vdistance\n)\n{\nvec3 delta=blobPosition-position;\nvec2 xy=vec2(dot(delta,xdir),dot(delta,ydir));\nvdistance=abs(dot(delta,dir));\nreturn xy;\n}\nvoid Proximity_Vertex_B66(\nvec3 Blob_Position,\nvec3 Blob_Position_2,\nvec3 Active_Face_Center,\nvec3 Active_Face_Dir,\nvec3 Position,\nfloat Proximity_Far_Distance,\nfloat Relative_Scale,\nfloat Proximity_Anisotropy,\nvec3 Up,\nout vec4 Extra1,\nout float Distance_To_Face,\nout float Intensity)\n{\nvec3 Active_Face_Dir_X=normalize(cross(Active_Face_Dir,Up));\nvec3 Active_Face_Dir_Y=cross(Active_Face_Dir,Active_Face_Dir_X);\nfloat distz1,distz2;\nExtra1.xy=ProjectProximity(Blob_Position,Position,Active_Face_Center,Active_Face_Dir,Active_Face_Dir_X*Proximity_Anisotropy,Active_Face_Dir_Y,distz1)/Relative_Scale;\nExtra1.zw=ProjectProximity(Blob_Position_2,Position,Active_Face_Center,Active_Face_Dir,Active_Face_Dir_X*Proximity_Anisotropy,Active_Face_Dir_Y,distz2)/Relative_Scale;\nDistance_To_Face=dot(Active_Face_Dir,Position-Active_Face_Center);\nIntensity=1.0-clamp(min(distz1,distz2)/Proximity_Far_Distance,0.0,1.0);\n}\nvoid Holo_Edge_Vertex_B44(\nvec3 Incident,\nvec3 Normal,\nvec2 UV,\nvec3 Tangent,\nvec3 Bitangent,\nbool Smooth_Active_Face,\nfloat Active,\nout vec4 Holo_Edges)\n{\nfloat NdotI=dot(Incident,Normal);\nvec2 flip=(UV-vec2(0.5,0.5));\nfloat udot=dot(Incident,Tangent)*flip.x*NdotI;\nfloat uval=1.0-float(udot>0.0);\nfloat vdot=-dot(Incident,Bitangent)*flip.y*NdotI;\nfloat vval=1.0-float(vdot>0.0);\nfloat Smooth_And_Active=step(1.0,float(Smooth_Active_Face && Active>0.0));\nuval=mix(uval,max(1.0,uval),Smooth_And_Active); \nvval=mix(vval,max(1.0,vval),Smooth_And_Active);\nHolo_Edges=vec4(1.0,1.0,1.0,1.0)-vec4(uval*UV.x,uval*(1.0-UV.x),vval*UV.y,vval*(1.0-UV.y));\n}\nvoid Object_To_World_Pos_B13(\nvec3 Pos_Object,\nout vec3 Pos_World)\n{\nPos_World=(world*vec4(Pos_Object,1.0)).xyz;\n}\nvoid Choose_Blob_B38(\nvec4 Vx_Color,\nvec3 Position1,\nvec3 Position2,\nbool Blob_Enable_1,\nbool Blob_Enable_2,\nfloat Near_Size_1,\nfloat Near_Size_2,\nfloat Blob_Inner_Fade_1,\nfloat Blob_Inner_Fade_2,\nfloat Blob_Pulse_1,\nfloat Blob_Pulse_2,\nfloat Blob_Fade_1,\nfloat Blob_Fade_2,\nout vec3 Position,\nout float Near_Size,\nout float Inner_Fade,\nout float Blob_Enable,\nout float Fade,\nout float Pulse)\n{\nPosition=Position1*(1.0-Vx_Color.g)+Vx_Color.g*Position2;\nfloat b1=float(Blob_Enable_1);\nfloat b2=float(Blob_Enable_2);\nBlob_Enable=b1+(b2-b1)*Vx_Color.g;\nPulse=Blob_Pulse_1*(1.0-Vx_Color.g)+Vx_Color.g*Blob_Pulse_2;\nFade=Blob_Fade_1*(1.0-Vx_Color.g)+Vx_Color.g*Blob_Fade_2;\nNear_Size=Near_Size_1*(1.0-Vx_Color.g)+Vx_Color.g*Near_Size_2;\nInner_Fade=Blob_Inner_Fade_1*(1.0-Vx_Color.g)+Vx_Color.g*Blob_Inner_Fade_2;\n}\nvoid Wireframe_Vertex_B51(\nvec3 Position,\nvec3 Normal,\nvec3 Tangent,\nvec3 Bitangent,\nfloat Edge_Width,\nvec2 Face_Size,\nout vec3 Wire_Vx_Pos,\nout vec2 UV,\nout vec2 Widths)\n{\nWidths.xy=Edge_Width/Face_Size;\nfloat x=dot(Position,Tangent);\nfloat y=dot(Position,Bitangent);\nfloat dx=0.5-abs(x);\nfloat newx=(0.5-dx*Widths.x*2.0)*sign(x);\nfloat dy=0.5-abs(y);\nfloat newy=(0.5-dy*Widths.y*2.0)*sign(y);\nWire_Vx_Pos=Normal*0.5+newx*Tangent+newy*Bitangent;\nUV.x=dot(Wire_Vx_Pos,Tangent)+0.5;\nUV.y=dot(Wire_Vx_Pos,Bitangent)+0.5;\n}\nvec2 ramp2(vec2 start,vec2 end,vec2 x)\n{\nreturn clamp((x-start)/(end-start),vec2(0.0,0.0),vec2(1.0,1.0));\n}\nfloat computeSelection(\nvec3 blobPosition,\nvec3 normal,\nvec3 tangent,\nvec3 bitangent,\nvec3 faceCenter,\nvec2 faceSize,\nfloat selectionFuzz,\nfloat farDistance,\nfloat fadeLength\n)\n{\nvec3 delta=blobPosition-faceCenter;\nfloat absD=abs(dot(delta,normal));\nfloat fadeIn=1.0-clamp((absD-farDistance)/fadeLength,0.0,1.0);\nvec2 blobCenterXY=vec2(dot(delta,tangent),dot(delta,bitangent));\nvec2 innerFace=faceSize*(1.0-selectionFuzz)*0.5;\nvec2 selectPulse=ramp2(-faceSize*0.5,-innerFace,blobCenterXY)-ramp2(innerFace,faceSize*0.5,blobCenterXY);\nreturn selectPulse.x*selectPulse.y*fadeIn;\n}\nvoid Selection_Vertex_B48(\nvec3 Blob_Position,\nvec3 Blob_Position_2,\nvec3 Face_Center,\nvec2 Face_Size,\nvec3 Normal,\nvec3 Tangent,\nvec3 Bitangent,\nfloat Selection_Fuzz,\nfloat Selected,\nfloat Far_Distance,\nfloat Fade_Length,\nvec3 Active_Face_Dir,\nout float Show_Selection)\n{\nfloat select1=computeSelection(Blob_Position,Normal,Tangent,Bitangent,Face_Center,Face_Size,Selection_Fuzz,Far_Distance,Fade_Length);\nfloat select2=computeSelection(Blob_Position_2,Normal,Tangent,Bitangent,Face_Center,Face_Size,Selection_Fuzz,Far_Distance,Fade_Length);\nfloat Active=max(0.0,dot(Active_Face_Dir,Normal));\nShow_Selection=mix(max(select1,select2),1.0,Selected)*Active;\n}\nvoid Proximity_Visibility_B54(\nfloat Selection,\nvec3 Proximity_Center,\nvec3 Proximity_Center_2,\nfloat Input_Width,\nfloat Proximity_Far_Distance,\nfloat Proximity_Radius,\nvec3 Active_Face_Center,\nvec3 Active_Face_Dir,\nout float Width)\n{\nvec3 boxEdges=(world*vec4(vec3(0.5,0.5,0.5),0.0)).xyz;\nfloat boxMaxSize=length(boxEdges);\nfloat d1=dot(Proximity_Center-Active_Face_Center,Active_Face_Dir);\nvec3 blob1=Proximity_Center-d1*Active_Face_Dir;\nfloat d2=dot(Proximity_Center_2-Active_Face_Center,Active_Face_Dir);\nvec3 blob2=Proximity_Center_2-d2*Active_Face_Dir;\nvec3 delta1=blob1-Active_Face_Center;\nvec3 delta2=blob2-Active_Face_Center;\nfloat dist1=dot(delta1,delta1);\nfloat dist2=dot(delta2,delta2);\nfloat nearestProxDist=sqrt(min(dist1,dist2));\nWidth=Input_Width*(1.0-step(boxMaxSize+Proximity_Radius,nearestProxDist))*(1.0-step(Proximity_Far_Distance,min(d1,d2))*(1.0-step(0.0001,Selection)));\n}\nvoid Object_To_World_Dir_B67(\nvec3 Dir_Object,\nout vec3 Dir_World)\n{\nDir_World=(world*vec4(Dir_Object,0.0)).xyz;\n}\nvoid main()\n{\nvec3 Active_Face_Center_Q49;\nActive_Face_Center_Q49=(world*vec4(_Active_Face_Dir_*0.5,1.0)).xyz;\nvec3 Blob_Position_Q41= mix(_Blob_Position_,Global_Left_Index_Tip_Position.xyz,float(Use_Global_Left_Index));\nvec3 Blob_Position_Q42= mix(_Blob_Position_2_,Global_Right_Index_Tip_Position.xyz,float(Use_Global_Right_Index));\nvec3 Active_Face_Dir_Q64=normalize((world*vec4(_Active_Face_Dir_,0.0)).xyz);\nfloat Relative_Scale_Q57;\n#if RELATIVE_WIDTH\nRelative_Scale_Q57=length((world*vec4(vec3(0,1,0),0.0)).xyz);\n#else\nRelative_Scale_Q57=1.0;\n#endif\nvec3 Tangent_World_Q30;\nTangent_World_Q30=(world*vec4(tangent,0.0)).xyz;\nvec3 Binormal_World_Q31;\nBinormal_World_Q31=(world*vec4((cross(normal,tangent)),0.0)).xyz;\nvec3 Normal_World_Q60;\nNormal_World_Q60=(world*vec4(normal,0.0)).xyz;\nvec3 Result_Q18=0.5*normal;\nvec3 Dir_World_Q67;\nObject_To_World_Dir_B67(_Active_Face_Up_,Dir_World_Q67);\nfloat Product_Q56=_Edge_Width_*Relative_Scale_Q57;\nvec3 Normal_World_N_Q29=normalize(Normal_World_Q60);\nvec3 Tangent_World_N_Q28=normalize(Tangent_World_Q30);\nvec3 Binormal_World_N_Q32=normalize(Binormal_World_Q31);\nvec3 Position_Q38;\nfloat Near_Size_Q38;\nfloat Inner_Fade_Q38;\nfloat Blob_Enable_Q38;\nfloat Fade_Q38;\nfloat Pulse_Q38;\nChoose_Blob_B38(color,Blob_Position_Q41,Blob_Position_Q42,_Blob_Enable_,_Blob_Enable_2_,_Blob_Near_Size_,_Blob_Near_Size_2_,_Blob_Inner_Fade_,_Blob_Inner_Fade_2_,_Blob_Pulse_,_Blob_Pulse_2_,_Blob_Fade_,_Blob_Fade_2_,Position_Q38,Near_Size_Q38,Inner_Fade_Q38,Blob_Enable_Q38,Fade_Q38,Pulse_Q38);\nvec3 Face_Center_Q33;\nFace_Center_Q33=(world*vec4(Result_Q18,1.0)).xyz;\nvec2 Face_Size_Q50=vec2(length(Tangent_World_Q30),length(Binormal_World_Q31));\nfloat Show_Selection_Q48;\nSelection_Vertex_B48(Blob_Position_Q41,Blob_Position_Q42,Face_Center_Q33,Face_Size_Q50,Normal_World_N_Q29,Tangent_World_N_Q28,Binormal_World_N_Q32,_Selection_Fuzz_,_Selected_,_Selected_Distance_,_Selected_Fade_Length_,Active_Face_Dir_Q64,Show_Selection_Q48);\nvec3 Normalized_Q72=normalize(Dir_World_Q67);\nfloat Active_Q34=max(0.0,dot(Active_Face_Dir_Q64,Normal_World_N_Q29));\nfloat Width_Q54;\nProximity_Visibility_B54(Show_Selection_Q48,Blob_Position_Q41,Blob_Position_Q42,Product_Q56,_Proximity_Far_Distance_,_Proximity_Near_Radius_,Active_Face_Center_Q49,Active_Face_Dir_Q64,Width_Q54);\nvec3 Wire_Vx_Pos_Q51;\nvec2 UV_Q51;\nvec2 Widths_Q51;\nWireframe_Vertex_B51(position,normal,tangent,(cross(normal,tangent)),Width_Q54,Face_Size_Q50,Wire_Vx_Pos_Q51,UV_Q51,Widths_Q51);\nvec3 Vec3_Q27=vec3(Widths_Q51.x,Widths_Q51.y,color.r);\nvec3 Pos_World_Q13;\nObject_To_World_Pos_B13(Wire_Vx_Pos_Q51,Pos_World_Q13);\nvec3 Incident_Q36=normalize(Pos_World_Q13-cameraPosition);\nvec3 Out_Position_Q47;\nvec2 Out_UV_Q47;\nvec3 Blob_Info_Q47;\nBlob_Vertex_B47(Pos_World_Q13,Normal_World_N_Q29,Tangent_World_N_Q28,Binormal_World_N_Q32,Position_Q38,_Blob_Intensity_,Near_Size_Q38,_Blob_Far_Size_,_Blob_Near_Distance_,_Blob_Far_Distance_,color,uv,Face_Center_Q33,Face_Size_Q50,UV_Q51,_Blob_Fade_Length_,_Selection_Fade_,_Selection_Fade_Size_,Inner_Fade_Q38,Active_Face_Center_Q49,Pulse_Q38,Fade_Q38,Blob_Enable_Q38,Out_Position_Q47,Out_UV_Q47,Blob_Info_Q47);\nvec4 Extra1_Q66;\nfloat Distance_To_Face_Q66;\nfloat Intensity_Q66;\nProximity_Vertex_B66(Blob_Position_Q41,Blob_Position_Q42,Active_Face_Center_Q49,Active_Face_Dir_Q64,Pos_World_Q13,_Proximity_Far_Distance_,Relative_Scale_Q57,_Proximity_Anisotropy_,Normalized_Q72,Extra1_Q66,Distance_To_Face_Q66,Intensity_Q66);\nvec4 Holo_Edges_Q44;\nHolo_Edge_Vertex_B44(Incident_Q36,Normal_World_N_Q29,uv,Tangent_World_Q30,Binormal_World_Q31,_Smooth_Active_Face_,Active_Q34,Holo_Edges_Q44);\nvec3 Vec3_Q19=vec3(Show_Selection_Q48,Distance_To_Face_Q66,Intensity_Q66);\nvec3 Position=Out_Position_Q47;\nvec2 UV=Out_UV_Q47;\nvec3 Tangent=Blob_Info_Q47;\nvec3 Binormal=Vec3_Q19;\nvec3 Normal=Vec3_Q27;\nvec4 Extra1=Extra1_Q66;\nvec4 Color=Holo_Edges_Q44;\ngl_Position=viewProjection*vec4(Position,1);\nvPosition=Position;\nvNormal=Normal;\nvUV=UV;\nvTangent=Tangent;\nvBinormal=Binormal;\nvColor=Color;\nvExtra1=Extra1;\n}";
|
|
25102
24847
|
// Sideeffect
|
|
25103
24848
|
core_Engines_shaderStore__WEBPACK_IMPORTED_MODULE_0__.ShaderStore.ShadersStore[name] = shader;
|
|
25104
|
-
/** @
|
|
24849
|
+
/** @internal */
|
|
25105
24850
|
var fluentButtonVertexShader = { name: name, shader: shader };
|
|
25106
24851
|
|
|
25107
24852
|
|
|
@@ -25175,7 +24920,7 @@ var HandleMaterial = /** @class */ (function (_super) {
|
|
|
25175
24920
|
*/
|
|
25176
24921
|
_this.dragScale = 0.55;
|
|
25177
24922
|
/**
|
|
25178
|
-
* @
|
|
24923
|
+
* @internal
|
|
25179
24924
|
*/
|
|
25180
24925
|
_this._positionOffset = core_Materials_shaderMaterial__WEBPACK_IMPORTED_MODULE_1__.Vector3.Zero();
|
|
25181
24926
|
_this._updateInterpolationTarget();
|
|
@@ -25286,7 +25031,7 @@ var name = "handlePixelShader";
|
|
|
25286
25031
|
var shader = "uniform vec3 color;\nvoid main(void) {\ngl_FragColor=vec4(color,1.0);\n}";
|
|
25287
25032
|
// Sideeffect
|
|
25288
25033
|
core_Engines_shaderStore__WEBPACK_IMPORTED_MODULE_0__.ShaderStore.ShadersStore[name] = shader;
|
|
25289
|
-
/** @
|
|
25034
|
+
/** @internal */
|
|
25290
25035
|
var handlePixelShader = { name: name, shader: shader };
|
|
25291
25036
|
|
|
25292
25037
|
|
|
@@ -25310,7 +25055,7 @@ var name = "handleVertexShader";
|
|
|
25310
25055
|
var shader = "precision highp float;\nattribute vec3 position;\nuniform vec3 positionOffset;\nuniform mat4 worldViewProjection;\nuniform float scale;\nvoid main(void) {\nvec4 vPos=vec4((vec3(position)+positionOffset)*scale,1.0);\ngl_Position=worldViewProjection*vPos;\n}";
|
|
25311
25056
|
// Sideeffect
|
|
25312
25057
|
core_Engines_shaderStore__WEBPACK_IMPORTED_MODULE_0__.ShaderStore.ShadersStore[name] = shader;
|
|
25313
|
-
/** @
|
|
25058
|
+
/** @internal */
|
|
25314
25059
|
var handleVertexShader = { name: name, shader: shader };
|
|
25315
25060
|
|
|
25316
25061
|
|
|
@@ -25399,7 +25144,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
25399
25144
|
|
|
25400
25145
|
|
|
25401
25146
|
|
|
25402
|
-
/** @
|
|
25147
|
+
/** @internal */
|
|
25403
25148
|
var MRDLBackplateMaterialDefines = /** @class */ (function (_super) {
|
|
25404
25149
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(MRDLBackplateMaterialDefines, _super);
|
|
25405
25150
|
function MRDLBackplateMaterialDefines() {
|
|
@@ -25435,7 +25180,7 @@ var MRDLBackplateMaterial = /** @class */ (function (_super) {
|
|
|
25435
25180
|
* Since desktop and VR/AR have different relative sizes, it's usually best to keep this false.
|
|
25436
25181
|
*/
|
|
25437
25182
|
_this.absoluteSizes = false;
|
|
25438
|
-
/** @
|
|
25183
|
+
/** @internal */
|
|
25439
25184
|
_this._filterWidth = 1;
|
|
25440
25185
|
/**
|
|
25441
25186
|
* Gets or sets the base color of the backplate.
|
|
@@ -25461,7 +25206,7 @@ var MRDLBackplateMaterial = /** @class */ (function (_super) {
|
|
|
25461
25206
|
* Gets or sets the top left Radii Multiplier.
|
|
25462
25207
|
*/
|
|
25463
25208
|
_this.radiusBottomRight = 1.0;
|
|
25464
|
-
/** @
|
|
25209
|
+
/** @internal */
|
|
25465
25210
|
_this._rate = 0;
|
|
25466
25211
|
/**
|
|
25467
25212
|
* Gets or sets the color of the highlights on the backplate line.
|
|
@@ -25471,9 +25216,9 @@ var MRDLBackplateMaterial = /** @class */ (function (_super) {
|
|
|
25471
25216
|
* Gets or sets the width of the highlights on the backplate line.
|
|
25472
25217
|
*/
|
|
25473
25218
|
_this.highlightWidth = 0;
|
|
25474
|
-
/** @
|
|
25219
|
+
/** @internal */
|
|
25475
25220
|
_this._highlightTransform = new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_1__.Vector4(1, 1, 0, 0);
|
|
25476
|
-
/** @
|
|
25221
|
+
/** @internal */
|
|
25477
25222
|
_this._highlight = 1;
|
|
25478
25223
|
/**
|
|
25479
25224
|
* Gets or sets the intensity of the iridescence effect.
|
|
@@ -25487,17 +25232,17 @@ var MRDLBackplateMaterial = /** @class */ (function (_super) {
|
|
|
25487
25232
|
* Gets or sets the Tint of the iridescence effect on the backplate.
|
|
25488
25233
|
*/
|
|
25489
25234
|
_this.iridescenceTint = new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_1__.Color4(1, 1, 1, 1);
|
|
25490
|
-
/** @
|
|
25235
|
+
/** @internal */
|
|
25491
25236
|
_this._angle = -45;
|
|
25492
25237
|
/**
|
|
25493
25238
|
* Gets or sets the opacity of the backplate (0.0 - 1.0).
|
|
25494
25239
|
*/
|
|
25495
25240
|
_this.fadeOut = 1;
|
|
25496
|
-
/** @
|
|
25241
|
+
/** @internal */
|
|
25497
25242
|
_this._reflected = true;
|
|
25498
|
-
/** @
|
|
25243
|
+
/** @internal */
|
|
25499
25244
|
_this._frequency = 1;
|
|
25500
|
-
/** @
|
|
25245
|
+
/** @internal */
|
|
25501
25246
|
_this._verticalOffset = 0;
|
|
25502
25247
|
/**
|
|
25503
25248
|
* Gets or sets the gradient color effect on the backplate.
|
|
@@ -25854,7 +25599,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
25854
25599
|
|
|
25855
25600
|
|
|
25856
25601
|
|
|
25857
|
-
/** @
|
|
25602
|
+
/** @internal */
|
|
25858
25603
|
var MRDLSliderBarMaterialDefines = /** @class */ (function (_super) {
|
|
25859
25604
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(MRDLSliderBarMaterialDefines, _super);
|
|
25860
25605
|
function MRDLSliderBarMaterialDefines() {
|
|
@@ -26134,43 +25879,43 @@ var MRDLSliderBarMaterial = /** @class */ (function (_super) {
|
|
|
26134
25879
|
*/
|
|
26135
25880
|
_this.iridescenceIntensity = 0;
|
|
26136
25881
|
/**
|
|
26137
|
-
* @
|
|
25882
|
+
* @internal
|
|
26138
25883
|
*/
|
|
26139
25884
|
_this.useGlobalLeftIndex = 1.0;
|
|
26140
25885
|
/**
|
|
26141
|
-
* @
|
|
25886
|
+
* @internal
|
|
26142
25887
|
*/
|
|
26143
25888
|
_this.useGlobalRightIndex = 1.0;
|
|
26144
25889
|
/**
|
|
26145
|
-
* @
|
|
25890
|
+
* @internal
|
|
26146
25891
|
*/
|
|
26147
25892
|
_this.globalLeftIndexTipProximity = 0.0;
|
|
26148
25893
|
/**
|
|
26149
|
-
* @
|
|
25894
|
+
* @internal
|
|
26150
25895
|
*/
|
|
26151
25896
|
_this.globalRightIndexTipProximity = 0.0;
|
|
26152
25897
|
/**
|
|
26153
|
-
* @
|
|
25898
|
+
* @internal
|
|
26154
25899
|
*/
|
|
26155
25900
|
_this.globalLeftIndexTipPosition = new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_1__.Vector4(0.5, 0.0, -0.55, 1.0);
|
|
26156
25901
|
/**
|
|
26157
|
-
* @
|
|
25902
|
+
* @internal
|
|
26158
25903
|
*/
|
|
26159
25904
|
_this.globaRightIndexTipPosition = new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_1__.Vector4(0.0, 0.0, 0.0, 1.0);
|
|
26160
25905
|
/**
|
|
26161
|
-
* @
|
|
25906
|
+
* @internal
|
|
26162
25907
|
*/
|
|
26163
25908
|
_this.globalLeftThumbTipPosition = new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_1__.Vector4(0.5, 0.0, -0.55, 1.0);
|
|
26164
25909
|
/**
|
|
26165
|
-
* @
|
|
25910
|
+
* @internal
|
|
26166
25911
|
*/
|
|
26167
25912
|
_this.globalRightThumbTipPosition = new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_1__.Vector4(0.0, 0.0, 0.0, 1.0);
|
|
26168
25913
|
/**
|
|
26169
|
-
* @
|
|
25914
|
+
* @internal
|
|
26170
25915
|
*/
|
|
26171
25916
|
_this.globalLeftIndexMiddlePosition = new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_1__.Vector4(0.5, 0.0, -0.55, 1.0);
|
|
26172
25917
|
/**
|
|
26173
|
-
* @
|
|
25918
|
+
* @internal
|
|
26174
25919
|
*/
|
|
26175
25920
|
_this.globalRightIndexMiddlePosition = new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_1__.Vector4(0.0, 0.0, 0.0, 1.0);
|
|
26176
25921
|
_this.alphaMode = core_Misc_decorators__WEBPACK_IMPORTED_MODULE_1__.Constants.ALPHA_DISABLE;
|
|
@@ -26724,7 +26469,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
26724
26469
|
|
|
26725
26470
|
|
|
26726
26471
|
|
|
26727
|
-
/** @
|
|
26472
|
+
/** @internal */
|
|
26728
26473
|
var MRDLSliderThumbMaterialDefines = /** @class */ (function (_super) {
|
|
26729
26474
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(MRDLSliderThumbMaterialDefines, _super);
|
|
26730
26475
|
function MRDLSliderThumbMaterialDefines() {
|
|
@@ -27004,43 +26749,43 @@ var MRDLSliderThumbMaterial = /** @class */ (function (_super) {
|
|
|
27004
26749
|
*/
|
|
27005
26750
|
_this.iridescenceIntensity = 0;
|
|
27006
26751
|
/**
|
|
27007
|
-
* @
|
|
26752
|
+
* @internal
|
|
27008
26753
|
*/
|
|
27009
26754
|
_this.useGlobalLeftIndex = 1.0;
|
|
27010
26755
|
/**
|
|
27011
|
-
* @
|
|
26756
|
+
* @internal
|
|
27012
26757
|
*/
|
|
27013
26758
|
_this.useGlobalRightIndex = 1.0;
|
|
27014
26759
|
/**
|
|
27015
|
-
* @
|
|
26760
|
+
* @internal
|
|
27016
26761
|
*/
|
|
27017
26762
|
_this.globalLeftIndexTipProximity = 0.0;
|
|
27018
26763
|
/**
|
|
27019
|
-
* @
|
|
26764
|
+
* @internal
|
|
27020
26765
|
*/
|
|
27021
26766
|
_this.globalRightIndexTipProximity = 0.0;
|
|
27022
26767
|
/**
|
|
27023
|
-
* @
|
|
26768
|
+
* @internal
|
|
27024
26769
|
*/
|
|
27025
26770
|
_this.globalLeftIndexTipPosition = new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_1__.Vector4(0.5, 0.0, -0.55, 1.0);
|
|
27026
26771
|
/**
|
|
27027
|
-
* @
|
|
26772
|
+
* @internal
|
|
27028
26773
|
*/
|
|
27029
26774
|
_this.globaRightIndexTipPosition = new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_1__.Vector4(0.0, 0.0, 0.0, 1.0);
|
|
27030
26775
|
/**
|
|
27031
|
-
* @
|
|
26776
|
+
* @internal
|
|
27032
26777
|
*/
|
|
27033
26778
|
_this.globalLeftThumbTipPosition = new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_1__.Vector4(0.5, 0.0, -0.55, 1.0);
|
|
27034
26779
|
/**
|
|
27035
|
-
* @
|
|
26780
|
+
* @internal
|
|
27036
26781
|
*/
|
|
27037
26782
|
_this.globalRightThumbTipPosition = new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_1__.Vector4(0.0, 0.0, 0.0, 1.0);
|
|
27038
26783
|
/**
|
|
27039
|
-
* @
|
|
26784
|
+
* @internal
|
|
27040
26785
|
*/
|
|
27041
26786
|
_this.globalLeftIndexMiddlePosition = new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_1__.Vector4(0.5, 0.0, -0.55, 1.0);
|
|
27042
26787
|
/**
|
|
27043
|
-
* @
|
|
26788
|
+
* @internal
|
|
27044
26789
|
*/
|
|
27045
26790
|
_this.globalRightIndexMiddlePosition = new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_1__.Vector4(0.0, 0.0, 0.0, 1.0);
|
|
27046
26791
|
_this.alphaMode = core_Misc_decorators__WEBPACK_IMPORTED_MODULE_1__.Constants.ALPHA_DISABLE;
|
|
@@ -27583,7 +27328,7 @@ var name = "mrdlBackplatePixelShader";
|
|
|
27583
27328
|
var shader = "uniform vec3 cameraPosition;\nvarying vec3 vPosition;\nvarying vec3 vNormal;\nvarying vec2 vUV;\nvarying vec3 vTangent;\nvarying vec3 vBinormal;\nvarying vec4 vExtra1;\nvarying vec4 vExtra2;\nuniform float _Radius_;\nuniform float _Line_Width_;\nuniform bool _Absolute_Sizes_;\nuniform float _Filter_Width_;\nuniform vec4 _Base_Color_;\nuniform vec4 _Line_Color_;\nuniform float _Radius_Top_Left_;\nuniform float _Radius_Top_Right_;\nuniform float _Radius_Bottom_Left_;\nuniform float _Radius_Bottom_Right_;\nuniform float _Rate_;\nuniform vec4 _Highlight_Color_;\nuniform float _Highlight_Width_;\nuniform vec4 _Highlight_Transform_;\nuniform float _Highlight_;\nuniform float _Iridescence_Intensity_;\nuniform float _Iridescence_Edge_Intensity_;\nuniform vec4 _Iridescence_Tint_;\nuniform sampler2D _Iridescent_Map_;\nuniform float _Angle_;\nuniform bool _Reflected_;\nuniform float _Frequency_;\nuniform float _Vertical_Offset_;\nuniform vec4 _Gradient_Color_;\nuniform vec4 _Top_Left_;\nuniform vec4 _Top_Right_;\nuniform vec4 _Bottom_Left_;\nuniform vec4 _Bottom_Right_;\nuniform float _Edge_Width_;\nuniform float _Edge_Power_;\nuniform float _Line_Gradient_Blend_;\nuniform float _Fade_Out_;\nvoid FastLinearTosRGB_B353(\nvec4 Linear,\nout vec4 sRGB)\n{\nsRGB.rgb=sqrt(clamp(Linear.rgb,0.0,1.0));\nsRGB.a=Linear.a;\n}\nvoid Round_Rect_Fragment_B332(\nfloat Radius,\nfloat Line_Width,\nvec4 Line_Color,\nfloat Filter_Width,\nvec2 UV,\nfloat Line_Visibility,\nvec4 Rect_Parms,\nvec4 Fill_Color,\nout vec4 Color)\n{\nfloat d=length(max(abs(UV)-Rect_Parms.xy,0.0));\nfloat dx=max(fwidth(d)*Filter_Width,0.00001);\nfloat g=min(Rect_Parms.z,Rect_Parms.w);\nfloat dgrad=max(fwidth(g)*Filter_Width,0.00001);\nfloat Inside_Rect=clamp(g/dgrad,0.0,1.0);\nfloat inner=clamp((d+dx*0.5-max(Radius-Line_Width,d-dx*0.5))/dx,0.0,1.0);\nColor=clamp(mix(Fill_Color,Line_Color,inner),0.0,1.0)*Inside_Rect;\n}\nvoid Iridescence_B343(\nvec3 Position,\nvec3 Normal,\nvec2 UV,\nvec3 Axis,\nvec3 Eye,\nvec4 Tint,\nsampler2D Texture,\nbool Reflected,\nfloat Frequency,\nfloat Vertical_Offset,\nout vec4 Color)\n{\nvec3 i=normalize(Position-Eye);\nvec3 r=reflect(i,Normal);\nfloat idota=dot(i,Axis);\nfloat idotr=dot(i,r);\nfloat x=Reflected ? idotr : idota;\nvec2 xy;\nxy.x=fract((x*Frequency+1.0)*0.5+UV.y*Vertical_Offset);\nxy.y=0.5;\nColor=texture(Texture,xy);\nColor.rgb*=Tint.rgb;\n}\nvoid Scale_RGB_B346(\nvec4 Color,\nfloat Scalar,\nout vec4 Result)\n{\nResult=vec4(Scalar,Scalar,Scalar,1)*Color;\n}\nvoid Scale_RGB_B344(\nfloat Scalar,\nvec4 Color,\nout vec4 Result)\n{\nResult=vec4(Scalar,Scalar,Scalar,1)*Color;\n}\nvoid Line_Fragment_B362(\nvec4 Base_Color,\nvec4 Highlight_Color,\nfloat Highlight_Width,\nvec3 Line_Vertex,\nfloat Highlight,\nout vec4 Line_Color)\n{\nfloat k2=1.0-clamp(abs(Line_Vertex.y/Highlight_Width),0.0,1.0);\nLine_Color=mix(Base_Color,Highlight_Color,Highlight*k2);\n}\nvoid Edge_B356(\nvec4 RectParms,\nfloat Radius,\nfloat Line_Width,\nvec2 UV,\nfloat Edge_Width,\nfloat Edge_Power,\nout float Result)\n{\nfloat d=length(max(abs(UV)-RectParms.xy,0.0));\nfloat edge=1.0-clamp((1.0-d/(Radius-Line_Width))/Edge_Width,0.0,1.0);\nResult=pow(edge,Edge_Power);\n}\nvoid Gradient_B355(\nvec4 Gradient_Color,\nvec4 Top_Left,\nvec4 Top_Right,\nvec4 Bottom_Left,\nvec4 Bottom_Right,\nvec2 UV,\nout vec4 Result)\n{\nvec3 top=Top_Left.rgb+(Top_Right.rgb-Top_Left.rgb)*UV.x;\nvec3 bottom=Bottom_Left.rgb+(Bottom_Right.rgb-Bottom_Left.rgb)*UV.x;\nResult.rgb=Gradient_Color.rgb*(bottom+(top-bottom)*UV.y);\nResult.a=1.0;\n}\nvoid main()\n{\nfloat X_Q338;\nfloat Y_Q338;\nfloat Z_Q338;\nfloat W_Q338;\nX_Q338=vExtra2.x;\nY_Q338=vExtra2.y;\nZ_Q338=vExtra2.z;\nW_Q338=vExtra2.w;\nvec4 Color_Q343;\n#if IRIDESCENCE_ENABLE\nIridescence_B343(vPosition,vNormal,vUV,vBinormal,cameraPosition,_Iridescence_Tint_,_Iridescent_Map_,_Reflected_,_Frequency_,_Vertical_Offset_,Color_Q343);\n#else\nColor_Q343=vec4(0,0,0,0);\n#endif\nvec4 Result_Q344;\nScale_RGB_B344(_Iridescence_Intensity_,Color_Q343,Result_Q344);\nvec4 Line_Color_Q362;\nLine_Fragment_B362(_Line_Color_,_Highlight_Color_,_Highlight_Width_,vTangent,_Highlight_,Line_Color_Q362);\nfloat Result_Q356;\n#if EDGE_ONLY\nEdge_B356(vExtra1,Z_Q338,W_Q338,vUV,_Edge_Width_,_Edge_Power_,Result_Q356);\n#else\nResult_Q356=1.0;\n#endif\nvec2 Vec2_Q339=vec2(X_Q338,Y_Q338);\nvec4 Result_Q355;\nGradient_B355(_Gradient_Color_,_Top_Left_,_Top_Right_,_Bottom_Left_,_Bottom_Right_,Vec2_Q339,Result_Q355);\nvec4 Linear_Q348;\nLinear_Q348.rgb=clamp(Result_Q355.rgb*Result_Q355.rgb,0.0,1.0);\nLinear_Q348.a=Result_Q355.a;\nvec4 Result_Q346;\nScale_RGB_B346(Linear_Q348,Result_Q356,Result_Q346);\nvec4 Sum_Q345=Result_Q346+Result_Q344;\nvec4 Color_At_T_Q347=mix(Line_Color_Q362,Result_Q346,_Line_Gradient_Blend_);\nvec4 Base_And_Iridescent_Q350;\nBase_And_Iridescent_Q350=_Base_Color_+vec4(Sum_Q345.rgb,0.0);\nvec4 Sum_Q349=Color_At_T_Q347+_Iridescence_Edge_Intensity_*Color_Q343;\nvec4 Result_Q351=Sum_Q349; Result_Q351.a=1.0;\nvec4 Color_Q332;\nRound_Rect_Fragment_B332(Z_Q338,W_Q338,Result_Q351,_Filter_Width_,vUV,1.0,vExtra1,Base_And_Iridescent_Q350,Color_Q332);\nvec4 Result_Q354=_Fade_Out_*Color_Q332;\nvec4 sRGB_Q353;\nFastLinearTosRGB_B353(Result_Q354,sRGB_Q353);\nvec4 Out_Color=sRGB_Q353;\nfloat Clip_Threshold=0.001;\nbool To_sRGB=false;\ngl_FragColor=Out_Color;\n}";
|
|
27584
27329
|
// Sideeffect
|
|
27585
27330
|
core_Engines_shaderStore__WEBPACK_IMPORTED_MODULE_0__.ShaderStore.ShadersStore[name] = shader;
|
|
27586
|
-
/** @
|
|
27331
|
+
/** @internal */
|
|
27587
27332
|
var mrdlBackplatePixelShader = { name: name, shader: shader };
|
|
27588
27333
|
|
|
27589
27334
|
|
|
@@ -27607,7 +27352,7 @@ var name = "mrdlBackplateVertexShader";
|
|
|
27607
27352
|
var shader = "uniform mat4 world;\nuniform mat4 viewProjection;\nuniform vec3 cameraPosition;\nattribute vec3 position;\nattribute vec3 normal;\nattribute vec3 tangent;\nuniform float _Radius_;\nuniform float _Line_Width_;\nuniform bool _Absolute_Sizes_;\nuniform float _Filter_Width_;\nuniform vec4 _Base_Color_;\nuniform vec4 _Line_Color_;\nuniform float _Radius_Top_Left_;\nuniform float _Radius_Top_Right_;\nuniform float _Radius_Bottom_Left_;\nuniform float _Radius_Bottom_Right_;\nuniform float _Rate_;\nuniform vec4 _Highlight_Color_;\nuniform float _Highlight_Width_;\nuniform vec4 _Highlight_Transform_;\nuniform float _Highlight_;\nuniform float _Iridescence_Intensity_;\nuniform float _Iridescence_Edge_Intensity_;\nuniform vec4 _Iridescence_Tint_;\nuniform sampler2D _Iridescent_Map_;\nuniform float _Angle_;\nuniform bool _Reflected_;\nuniform float _Frequency_;\nuniform float _Vertical_Offset_;\nuniform vec4 _Gradient_Color_;\nuniform vec4 _Top_Left_;\nuniform vec4 _Top_Right_;\nuniform vec4 _Bottom_Left_;\nuniform vec4 _Bottom_Right_;\nuniform float _Edge_Width_;\nuniform float _Edge_Power_;\nuniform float _Line_Gradient_Blend_;\nuniform float _Fade_Out_;\nvarying vec3 vPosition;\nvarying vec3 vNormal;\nvarying vec2 vUV;\nvarying vec3 vTangent;\nvarying vec3 vBinormal;\nvarying vec4 vExtra1;\nvarying vec4 vExtra2;\nvoid Object_To_World_Pos_B314(\nvec3 Pos_Object,\nout vec3 Pos_World)\n{\nPos_World=(world*vec4(Pos_Object,1.0)).xyz;\n}\nvoid Round_Rect_Vertex_B357(\nvec2 UV,\nfloat Radius,\nfloat Margin,\nfloat Anisotropy,\nfloat Gradient1,\nfloat Gradient2,\nvec3 Normal,\nvec4 Color_Scale_Translate,\nout vec2 Rect_UV,\nout vec4 Rect_Parms,\nout vec2 Scale_XY,\nout vec2 Line_UV,\nout vec2 Color_UV_Info)\n{\nScale_XY=vec2(Anisotropy,1.0);\nLine_UV=(UV-vec2(0.5,0.5));\nRect_UV=Line_UV*Scale_XY;\nRect_Parms.xy=Scale_XY*0.5-vec2(Radius,Radius)-vec2(Margin,Margin);\nRect_Parms.z=Gradient1; \nRect_Parms.w=Gradient2;\nColor_UV_Info=(Line_UV+vec2(0.5,0.5))*Color_Scale_Translate.xy+Color_Scale_Translate.zw;\n}\nvoid Line_Vertex_B333(\nvec2 Scale_XY,\nvec2 UV,\nfloat Time,\nfloat Rate,\nvec4 Highlight_Transform,\nout vec3 Line_Vertex)\n{\nfloat angle2=(Rate*Time)*2.0*3.1416;\nfloat sinAngle2=sin(angle2);\nfloat cosAngle2=cos(angle2);\nvec2 xformUV=UV*Highlight_Transform.xy+Highlight_Transform.zw;\nLine_Vertex.x=0.0;\nLine_Vertex.y=cosAngle2*xformUV.x-sinAngle2*xformUV.y;\nLine_Vertex.z=0.0; \n}\nvoid PickDir_B334(\nfloat Degrees,\nvec3 DirX,\nvec3 DirY,\nout vec3 Dir)\n{\nfloat a=Degrees*3.14159/180.0;\nDir=cos(a)*DirX+sin(a)*DirY;\n}\nvoid Move_Verts_B327(\nfloat Anisotropy,\nvec3 P,\nfloat Radius,\nout vec3 New_P,\nout vec2 New_UV,\nout float Radial_Gradient,\nout vec3 Radial_Dir)\n{\nvec2 UV=P.xy*2.0+0.5;\nvec2 center=clamp(UV,0.0,1.0);\nvec2 delta=UV-center;\nvec2 r2=2.0*vec2(Radius/Anisotropy,Radius);\nNew_UV=center+r2*(UV-2.0*center+0.5);\nNew_P=vec3(New_UV-0.5,P.z);\nRadial_Gradient=1.0-length(delta)*2.0;\nRadial_Dir=vec3(delta*r2,0.0);\n}\nvoid Pick_Radius_B336(\nfloat Radius,\nfloat Radius_Top_Left,\nfloat Radius_Top_Right,\nfloat Radius_Bottom_Left,\nfloat Radius_Bottom_Right,\nvec3 Position,\nout float Result)\n{\nbool whichY=Position.y>0.0;\nResult=Position.x<0.0 ? (whichY ? Radius_Top_Left : Radius_Bottom_Left) : (whichY ? Radius_Top_Right : Radius_Bottom_Right);\nResult*=Radius;\n}\nvoid Edge_AA_Vertex_B328(\nvec3 Position_World,\nvec3 Position_Object,\nvec3 Normal_Object,\nvec3 Eye,\nfloat Radial_Gradient,\nvec3 Radial_Dir,\nvec3 Tangent,\nout float Gradient1,\nout float Gradient2)\n{\nvec3 I=(Eye-Position_World);\nvec3 T=(vec4(Tangent,0.0)).xyz;\nfloat g=(dot(T,I)<0.0) ? 0.0 : 1.0;\nif (Normal_Object.z==0.0) { \nGradient1=Position_Object.z>0.0 ? g : 1.0;\nGradient2=Position_Object.z>0.0 ? 1.0 : g;\n} else {\nGradient1=g+(1.0-g)*(Radial_Gradient);\nGradient2=1.0;\n}\n}\nvoid Object_To_World_Dir_B330(\nvec3 Dir_Object,\nout vec3 Binormal_World,\nout vec3 Binormal_World_N,\nout float Binormal_Length)\n{\nBinormal_World=(world*vec4(Dir_Object,0.0)).xyz;\nBinormal_Length=length(Binormal_World);\nBinormal_World_N=Binormal_World/Binormal_Length;\n}\nvoid RelativeOrAbsoluteDetail_B341(\nfloat Nominal_Radius,\nfloat Nominal_LineWidth,\nbool Absolute_Measurements,\nfloat Height,\nout float Radius,\nout float Line_Width)\n{\nfloat scale=Absolute_Measurements ? 1.0/Height : 1.0;\nRadius=Nominal_Radius*scale;\nLine_Width=Nominal_LineWidth*scale;\n}\nvoid main()\n{\nvec3 Nrm_World_Q326;\nNrm_World_Q326=normalize((world*vec4(normal,0.0)).xyz);\nvec3 Tangent_World_Q329;\nvec3 Tangent_World_N_Q329;\nfloat Tangent_Length_Q329;\nTangent_World_Q329=(world*vec4(vec3(1,0,0),0.0)).xyz;\nTangent_Length_Q329=length(Tangent_World_Q329);\nTangent_World_N_Q329=Tangent_World_Q329/Tangent_Length_Q329;\nvec3 Binormal_World_Q330;\nvec3 Binormal_World_N_Q330;\nfloat Binormal_Length_Q330;\nObject_To_World_Dir_B330(vec3(0,1,0),Binormal_World_Q330,Binormal_World_N_Q330,Binormal_Length_Q330);\nfloat Radius_Q341;\nfloat Line_Width_Q341;\nRelativeOrAbsoluteDetail_B341(_Radius_,_Line_Width_,_Absolute_Sizes_,Binormal_Length_Q330,Radius_Q341,Line_Width_Q341);\nvec3 Dir_Q334;\nPickDir_B334(_Angle_,Tangent_World_N_Q329,Binormal_World_N_Q330,Dir_Q334);\nfloat Result_Q336;\nPick_Radius_B336(Radius_Q341,_Radius_Top_Left_,_Radius_Top_Right_,_Radius_Bottom_Left_,_Radius_Bottom_Right_,position,Result_Q336);\nfloat Anisotropy_Q331=Tangent_Length_Q329/Binormal_Length_Q330;\nvec4 Out_Color_Q337=vec4(Result_Q336,Line_Width_Q341,0,1);\nvec3 New_P_Q327;\nvec2 New_UV_Q327;\nfloat Radial_Gradient_Q327;\nvec3 Radial_Dir_Q327;\nMove_Verts_B327(Anisotropy_Q331,position,Result_Q336,New_P_Q327,New_UV_Q327,Radial_Gradient_Q327,Radial_Dir_Q327);\nvec3 Pos_World_Q314;\nObject_To_World_Pos_B314(New_P_Q327,Pos_World_Q314);\nfloat Gradient1_Q328;\nfloat Gradient2_Q328;\n#if SMOOTH_EDGES\nEdge_AA_Vertex_B328(Pos_World_Q314,position,normal,cameraPosition,Radial_Gradient_Q327,Radial_Dir_Q327,tangent,Gradient1_Q328,Gradient2_Q328);\n#else\nGradient1_Q328=1.0;\nGradient2_Q328=1.0;\n#endif\nvec2 Rect_UV_Q357;\nvec4 Rect_Parms_Q357;\nvec2 Scale_XY_Q357;\nvec2 Line_UV_Q357;\nvec2 Color_UV_Info_Q357;\nRound_Rect_Vertex_B357(New_UV_Q327,Result_Q336,0.0,Anisotropy_Q331,Gradient1_Q328,Gradient2_Q328,normal,vec4(1,1,0,0),Rect_UV_Q357,Rect_Parms_Q357,Scale_XY_Q357,Line_UV_Q357,Color_UV_Info_Q357);\nvec3 Line_Vertex_Q333;\nLine_Vertex_B333(Scale_XY_Q357,Line_UV_Q357,(20.0),_Rate_,_Highlight_Transform_,Line_Vertex_Q333);\nfloat X_Q359;\nfloat Y_Q359;\nX_Q359=Color_UV_Info_Q357.x;\nY_Q359=Color_UV_Info_Q357.y;\nvec4 Vec4_Q358=vec4(X_Q359,Y_Q359,Result_Q336,Line_Width_Q341);\nvec3 Position=Pos_World_Q314;\nvec3 Normal=Nrm_World_Q326;\nvec2 UV=Rect_UV_Q357;\nvec3 Tangent=Line_Vertex_Q333;\nvec3 Binormal=Dir_Q334;\nvec4 Color=Out_Color_Q337;\nvec4 Extra1=Rect_Parms_Q357;\nvec4 Extra2=Vec4_Q358;\nvec4 Extra3=vec4(0,0,0,0);\ngl_Position=viewProjection*vec4(Position,1);\nvPosition=Position;\nvNormal=Normal;\nvUV=UV;\nvTangent=Tangent;\nvBinormal=Binormal;\nvExtra1=Extra1;\nvExtra2=Extra2;\n}";
|
|
27608
27353
|
// Sideeffect
|
|
27609
27354
|
core_Engines_shaderStore__WEBPACK_IMPORTED_MODULE_0__.ShaderStore.ShadersStore[name] = shader;
|
|
27610
|
-
/** @
|
|
27355
|
+
/** @internal */
|
|
27611
27356
|
var mrdlBackplateVertexShader = { name: name, shader: shader };
|
|
27612
27357
|
|
|
27613
27358
|
|
|
@@ -27631,7 +27376,7 @@ var name = "mrdlSliderBarPixelShader";
|
|
|
27631
27376
|
var shader = "uniform vec3 cameraPosition;\nvarying vec3 vPosition;\nvarying vec3 vNormal;\nvarying vec2 vUV;\nvarying vec3 vTangent;\nvarying vec3 vBinormal;\nvarying vec4 vColor;\nvarying vec4 vExtra1;\nvarying vec4 vExtra2;\nvarying vec4 vExtra3;\nuniform float _Radius_;\nuniform float _Bevel_Front_;\nuniform float _Bevel_Front_Stretch_;\nuniform float _Bevel_Back_;\nuniform float _Bevel_Back_Stretch_;\nuniform float _Radius_Top_Left_;\nuniform float _Radius_Top_Right_;\nuniform float _Radius_Bottom_Left_;\nuniform float _Radius_Bottom_Right_;\nuniform bool _Bulge_Enabled_;\nuniform float _Bulge_Height_;\nuniform float _Bulge_Radius_;\nuniform float _Sun_Intensity_;\nuniform float _Sun_Theta_;\nuniform float _Sun_Phi_;\nuniform float _Indirect_Diffuse_;\nuniform vec4 _Albedo_;\nuniform float _Specular_;\nuniform float _Shininess_;\nuniform float _Sharpness_;\nuniform float _Subsurface_;\nuniform vec4 _Left_Color_;\nuniform vec4 _Right_Color_;\nuniform float _Reflection_;\nuniform float _Front_Reflect_;\nuniform float _Edge_Reflect_;\nuniform float _Power_;\nuniform vec4 _Sky_Color_;\nuniform vec4 _Horizon_Color_;\nuniform vec4 _Ground_Color_;\nuniform float _Horizon_Power_;\nuniform sampler2D _Reflection_Map_;\nuniform sampler2D _Indirect_Environment_;\nuniform float _Width_;\nuniform float _Fuzz_;\nuniform float _Min_Fuzz_;\nuniform float _Clip_Fade_;\nuniform float _Hue_Shift_;\nuniform float _Saturation_Shift_;\nuniform float _Value_Shift_;\nuniform vec3 _Blob_Position_;\nuniform float _Blob_Intensity_;\nuniform float _Blob_Near_Size_;\nuniform float _Blob_Far_Size_;\nuniform float _Blob_Near_Distance_;\nuniform float _Blob_Far_Distance_;\nuniform float _Blob_Fade_Length_;\nuniform float _Blob_Pulse_;\nuniform float _Blob_Fade_;\nuniform sampler2D _Blob_Texture_;\nuniform vec3 _Blob_Position_2_;\nuniform float _Blob_Near_Size_2_;\nuniform float _Blob_Pulse_2_;\nuniform float _Blob_Fade_2_;\nuniform vec3 _Left_Index_Pos_;\nuniform vec3 _Right_Index_Pos_;\nuniform vec3 _Left_Index_Middle_Pos_;\nuniform vec3 _Right_Index_Middle_Pos_;\nuniform sampler2D _Decal_;\nuniform vec2 _Decal_Scale_XY_;\nuniform bool _Decal_Front_Only_;\nuniform float _Rim_Intensity_;\nuniform sampler2D _Rim_Texture_;\nuniform float _Rim_Hue_Shift_;\nuniform float _Rim_Saturation_Shift_;\nuniform float _Rim_Value_Shift_;\nuniform float _Iridescence_Intensity_;\nuniform sampler2D _Iridescence_Texture_;\nuniform bool Use_Global_Left_Index;\nuniform bool Use_Global_Right_Index;\nuniform vec4 Global_Left_Index_Tip_Position;\nuniform vec4 Global_Right_Index_Tip_Position;\nuniform vec4 Global_Left_Thumb_Tip_Position;\nuniform vec4 Global_Right_Thumb_Tip_Position;\nuniform vec4 Global_Left_Index_Middle_Position;\nuniform vec4 Global_Right_Index_Middle_Position;\nuniform float Global_Left_Index_Tip_Proximity;\nuniform float Global_Right_Index_Tip_Proximity;\nvoid Blob_Fragment_B30(\nsampler2D Blob_Texture,\nvec4 Blob_Info1,\nvec4 Blob_Info2,\nout vec4 Blob_Color)\n{\nfloat k1=dot(Blob_Info1.xy,Blob_Info1.xy);\nfloat k2=dot(Blob_Info2.xy,Blob_Info2.xy);\nvec3 closer=k1<k2 ? vec3(k1,Blob_Info1.z,Blob_Info1.w) : vec3(k2,Blob_Info2.z,Blob_Info2.w);\nBlob_Color=closer.z*texture(Blob_Texture,vec2(vec2(sqrt(closer.x),closer.y).x,1.0-vec2(sqrt(closer.x),closer.y).y))*clamp(1.0-closer.x,0.0,1.0);\n}\nvoid FastLinearTosRGB_B42(\nvec4 Linear,\nout vec4 sRGB)\n{\nsRGB.rgb=sqrt(clamp(Linear.rgb,0.0,1.0));\nsRGB.a=Linear.a;\n}\nvoid Scale_RGB_B59(\nvec4 Color,\nfloat Scalar,\nout vec4 Result)\n{\nResult=vec4(Scalar,Scalar,Scalar,1)*Color;\n}\nvoid Fragment_Main_B121(\nfloat Sun_Intensity,\nfloat Sun_Theta,\nfloat Sun_Phi,\nvec3 Normal,\nvec4 Albedo,\nfloat Fresnel_Reflect,\nfloat Shininess,\nvec3 Incident,\nvec4 Horizon_Color,\nvec4 Sky_Color,\nvec4 Ground_Color,\nfloat Indirect_Diffuse,\nfloat Specular,\nfloat Horizon_Power,\nfloat Reflection,\nvec4 Reflection_Sample,\nvec4 Indirect_Sample,\nfloat Sharpness,\nfloat SSS,\nfloat Subsurface,\nvec4 Translucence,\nvec4 Rim_Light,\nvec4 Iridescence,\nout vec4 Result)\n{\nfloat theta=Sun_Theta*2.0*3.14159;\nfloat phi=Sun_Phi*3.14159;\nvec3 lightDir= vec3(cos(phi)*cos(theta),sin(phi),cos(phi)*sin(theta));\nfloat NdotL=max(dot(lightDir,Normal),0.0);\nvec3 R=reflect(Incident,Normal);\nfloat RdotL=max(0.0,dot(R,lightDir));\nfloat specular=pow(RdotL,Shininess);\nspecular=mix(specular,smoothstep(0.495*Sharpness,1.0-0.495*Sharpness,specular),Sharpness);\nvec4 gi=mix(Ground_Color,Sky_Color,Normal.y*0.5+0.5);\nResult=((Sun_Intensity*NdotL+Indirect_Sample*Indirect_Diffuse+Translucence)*(1.0+SSS*Subsurface))*Albedo*(1.0-Fresnel_Reflect)+(Sun_Intensity*specular*Specular+Fresnel_Reflect*Reflection*Reflection_Sample)+Fresnel_Reflect*Rim_Light+Iridescence;\n}\nvoid Bulge_B79(\nbool Enabled,\nvec3 Normal,\nvec3 Tangent,\nfloat Bulge_Height,\nvec4 UV,\nfloat Bulge_Radius,\nvec3 ButtonN,\nout vec3 New_Normal)\n{\nvec2 xy=clamp(UV.xy*2.0,vec2(-1,-1),vec2(1,1));\nvec3 B=(cross(Normal,Tangent));\nfloat k=-clamp(1.0-length(xy)/Bulge_Radius,0.0,1.0)*Bulge_Height;\nk=sin(k*3.14159*0.5);\nk*=smoothstep(0.9998,0.9999,abs(dot(ButtonN,Normal)));\nNew_Normal=Normal*sqrt(1.0-k*k)+(xy.x*Tangent+xy.y*B)*k;\nNew_Normal=Enabled ? New_Normal : Normal;\n}\nvoid SSS_B77(\nvec3 ButtonN,\nvec3 Normal,\nvec3 Incident,\nout float Result)\n{\nfloat NdotI=abs(dot(Normal,Incident));\nfloat BdotI=abs(dot(ButtonN,Incident));\nResult=(abs(NdotI-BdotI)); \n}\nvoid FingerOcclusion_B67(\nfloat Width,\nfloat DistToCenter,\nfloat Fuzz,\nfloat Min_Fuzz,\nvec3 Position,\nvec3 Forward,\nvec3 Nearest,\nfloat Fade_Out,\nout float NotInShadow)\n{\nfloat d=dot((Nearest-Position),Forward);\nfloat sh=smoothstep(Width*0.5,Width*0.5+Fuzz*max(d,0.0)+Min_Fuzz,DistToCenter);\nNotInShadow=1.0-(1.0-sh)*smoothstep(-Fade_Out,0.0,d);\n}\nvoid FingerOcclusion_B68(\nfloat Width,\nfloat DistToCenter,\nfloat Fuzz,\nfloat Min_Fuzz,\nvec3 Position,\nvec3 Forward,\nvec3 Nearest,\nfloat Fade_Out,\nout float NotInShadow)\n{\nfloat d=dot((Nearest-Position),Forward);\nfloat sh=smoothstep(Width*0.5,Width*0.5+Fuzz*max(d,0.0)+Min_Fuzz,DistToCenter);\nNotInShadow=1.0-(1.0-sh)*smoothstep(-Fade_Out,0.0,d);\n}\nvoid Scale_Color_B91(\nvec4 Color,\nfloat Scalar,\nout vec4 Result)\n{\nResult=Scalar*Color;\n}\nvoid From_HSV_B73(\nfloat Hue,\nfloat Saturation,\nfloat Value,\nfloat Alpha,\nout vec4 Color)\n{\nvec4 K=vec4(1.0,2.0/3.0,1.0/3.0,3.0);\nvec3 p=abs(fract(vec3(Hue,Hue,Hue)+K.xyz)*6.0-K.www);\nColor.rgb=Value*mix(K.xxx,clamp(p-K.xxx,0.0,1.0),Saturation);\nColor.a=Alpha;\n}\nvoid Fast_Fresnel_B122(\nfloat Front_Reflect,\nfloat Edge_Reflect,\nfloat Power,\nvec3 Normal,\nvec3 Incident,\nout float Transmit,\nout float Reflect)\n{\nfloat d=max(-dot(Incident,Normal),0.0);\nReflect=Front_Reflect+(Edge_Reflect-Front_Reflect)*pow(.01-d,Power);\nTransmit=1.0-Reflect;\n}\nvoid Mapped_Environment_B51(\nsampler2D Reflected_Environment,\nsampler2D Indirect_Environment,\nvec3 Dir,\nout vec4 Reflected_Color,\nout vec4 Indirect_Diffuse)\n{\nReflected_Color=texture(Reflected_Environment,vec2(atan(Dir.z,Dir.x)/3.14159*0.5,asin(Dir.y)/3.14159+0.5));\nIndirect_Diffuse=texture(Indirect_Environment,vec2(atan(Dir.z,Dir.x)/3.14159*0.5,asin(Dir.y)/3.14159+0.5));\n}\nvec4 SampleEnv_Bid50(vec3 D,vec4 S,vec4 H,vec4 G,float exponent)\n{\nfloat k=pow(abs(D.y),exponent);\nvec4 C;\nif (D.y>0.0) {\nC=mix(H,S,k);\n} else {\nC=mix(H,G,k); \n}\nreturn C;\n}\nvoid Sky_Environment_B50(\nvec3 Normal,\nvec3 Reflected,\nvec4 Sky_Color,\nvec4 Horizon_Color,\nvec4 Ground_Color,\nfloat Horizon_Power,\nout vec4 Reflected_Color,\nout vec4 Indirect_Color)\n{\nReflected_Color=SampleEnv_Bid50(Reflected,Sky_Color,Horizon_Color,Ground_Color,Horizon_Power);\nIndirect_Color=mix(Ground_Color,Sky_Color,Normal.y*0.5+0.5);\n}\nvoid Min_Segment_Distance_B65(\nvec3 P0,\nvec3 P1,\nvec3 Q0,\nvec3 Q1,\nout vec3 NearP,\nout vec3 NearQ,\nout float Distance)\n{\nvec3 u=P1-P0;\nvec3 v=Q1-Q0;\nvec3 w=P0-Q0;\nfloat a=dot(u,u);\nfloat b=dot(u,v);\nfloat c=dot(v,v);\nfloat d=dot(u,w);\nfloat e=dot(v,w);\nfloat D=a*c-b*b;\nfloat sD=D;\nfloat tD=D;\nfloat sc,sN,tc,tN;\nif (D<0.00001) {\nsN=0.0;\nsD=1.0;\ntN=e;\ntD=c;\n} else {\nsN=(b*e-c*d);\ntN=(a*e-b*d);\nif (sN<0.0) {\nsN=0.0;\ntN=e;\ntD=c;\n} else if (sN>sD) {\nsN=sD;\ntN=e+b;\ntD=c;\n}\n}\nif (tN<0.0) {\ntN=0.0;\nif (-d<0.0) {\nsN=0.0;\n} else if (-d>a) {\nsN=sD;\n} else {\nsN=-d;\nsD=a;\n}\n} else if (tN>tD) {\ntN=tD;\nif ((-d+b)<0.0) {\nsN=0.0;\n} else if ((-d+b)>a) {\nsN=sD;\n} else {\nsN=(-d+b);\nsD=a;\n}\n}\nsc=abs(sN)<0.000001 ? 0.0 : sN/sD;\ntc=abs(tN)<0.000001 ? 0.0 : tN/tD;\nNearP=P0+sc*u;\nNearQ=Q0+tc*v;\nDistance=distance(NearP,NearQ);\n}\nvoid To_XYZ_B74(\nvec3 Vec3,\nout float X,\nout float Y,\nout float Z)\n{\nX=Vec3.x;\nY=Vec3.y;\nZ=Vec3.z;\n}\nvoid Finger_Positions_B64(\nvec3 Left_Index_Pos,\nvec3 Right_Index_Pos,\nvec3 Left_Index_Middle_Pos,\nvec3 Right_Index_Middle_Pos,\nout vec3 Left_Index,\nout vec3 Right_Index,\nout vec3 Left_Index_Middle,\nout vec3 Right_Index_Middle)\n{\nLeft_Index= (Use_Global_Left_Index ? Global_Left_Index_Tip_Position.xyz : Left_Index_Pos);\nRight_Index= (Use_Global_Right_Index ? Global_Right_Index_Tip_Position.xyz : Right_Index_Pos);\nLeft_Index_Middle= (Use_Global_Left_Index ? Global_Left_Index_Middle_Position.xyz : Left_Index_Middle_Pos);\nRight_Index_Middle= (Use_Global_Right_Index ? Global_Right_Index_Middle_Position.xyz : Right_Index_Middle_Pos);\n}\nvoid VaryHSV_B108(\nvec3 HSV_In,\nfloat Hue_Shift,\nfloat Saturation_Shift,\nfloat Value_Shift,\nout vec3 HSV_Out)\n{\nHSV_Out=vec3(fract(HSV_In.x+Hue_Shift),clamp(HSV_In.y+Saturation_Shift,0.0,1.0),clamp(HSV_In.z+Value_Shift,0.0,1.0));\n}\nvoid Remap_Range_B114(\nfloat In_Min,\nfloat In_Max,\nfloat Out_Min,\nfloat Out_Max,\nfloat In,\nout float Out)\n{\nOut=mix(Out_Min,Out_Max,clamp((In-In_Min)/(In_Max-In_Min),0.0,1.0));\n}\nvoid To_HSV_B75(\nvec4 Color,\nout float Hue,\nout float Saturation,\nout float Value,\nout float Alpha,\nout vec3 HSV)\n{\nvec4 K=vec4(0.0,-1.0/3.0,2.0/3.0,-1.0);\nvec4 p=Color.g<Color.b ? vec4(Color.bg,K.wz) : vec4(Color.gb,K.xy);\nvec4 q=Color.r<p.x ? vec4(p.xyw,Color.r) : vec4(Color.r,p.yzx);\nfloat d=q.x-min(q.w,q.y);\nfloat e=1.0e-10;\nHue=abs(q.z+(q.w-q.y)/(6.0*d+e));\nSaturation=d/(q.x+e);\nValue=q.x;\nAlpha=Color.a;\nHSV=vec3(Hue,Saturation,Value);\n}\nvoid Code_B110(\nfloat X,\nout float Result)\n{\nResult=(acos(X)/3.14159-0.5)*2.0;\n}\nvoid Rim_Light_B132(\nvec3 Front,\nvec3 Normal,\nvec3 Incident,\nfloat Rim_Intensity,\nsampler2D Texture,\nout vec4 Result)\n{\nvec3 R=reflect(Incident,Normal);\nfloat RdotF=dot(R,Front);\nfloat RdotL=sqrt(1.0-RdotF*RdotF);\nvec2 UV=vec2(R.y*0.5+0.5,0.5);\nvec4 Color=texture(Texture,UV);\nResult=Color;\n}\nvoid main()\n{\nvec4 Blob_Color_Q30;\n#if BLOB_ENABLE\nBlob_Fragment_B30(_Blob_Texture_,vExtra2,vExtra3,Blob_Color_Q30);\n#else\nBlob_Color_Q30=vec4(0,0,0,0);\n#endif\nvec3 Incident_Q39=normalize(vPosition-cameraPosition);\nvec3 Normalized_Q38=normalize(vNormal);\nvec3 Normalized_Q71=normalize(vTangent);\nvec4 Color_Q83;\n#if DECAL_ENABLE\nColor_Q83=texture(_Decal_,vUV);\n#else\nColor_Q83=vec4(0,0,0,0);\n#endif\nfloat X_Q90;\nfloat Y_Q90;\nfloat Z_Q90;\nfloat W_Q90;\nX_Q90=vExtra1.x;\nY_Q90=vExtra1.y;\nZ_Q90=vExtra1.z;\nW_Q90=vExtra1.w;\nvec4 Linear_Q43;\nLinear_Q43.rgb=clamp(_Sky_Color_.rgb*_Sky_Color_.rgb,0.0,1.0);\nLinear_Q43.a=_Sky_Color_.a;\nvec4 Linear_Q44;\nLinear_Q44.rgb=clamp(_Horizon_Color_.rgb*_Horizon_Color_.rgb,0.0,1.0);\nLinear_Q44.a=_Horizon_Color_.a;\nvec4 Linear_Q45;\nLinear_Q45.rgb=clamp(_Ground_Color_.rgb*_Ground_Color_.rgb,0.0,1.0);\nLinear_Q45.a=_Ground_Color_.a;\nvec3 Left_Index_Q64;\nvec3 Right_Index_Q64;\nvec3 Left_Index_Middle_Q64;\nvec3 Right_Index_Middle_Q64;\nFinger_Positions_B64(_Left_Index_Pos_,_Right_Index_Pos_,_Left_Index_Middle_Pos_,_Right_Index_Middle_Pos_,Left_Index_Q64,Right_Index_Q64,Left_Index_Middle_Q64,Right_Index_Middle_Q64);\nvec4 Linear_Q46;\nLinear_Q46.rgb=clamp(_Albedo_.rgb*_Albedo_.rgb,0.0,1.0);\nLinear_Q46.a=_Albedo_.a;\nvec3 Normalized_Q107=normalize(vBinormal);\nvec3 Incident_Q70=normalize(vPosition-cameraPosition);\nvec3 New_Normal_Q79;\nBulge_B79(_Bulge_Enabled_,Normalized_Q38,Normalized_Q71,_Bulge_Height_,vColor,_Bulge_Radius_,vBinormal,New_Normal_Q79);\nfloat Result_Q77;\nSSS_B77(vBinormal,New_Normal_Q79,Incident_Q39,Result_Q77);\nvec4 Result_Q91;\nScale_Color_B91(Color_Q83,X_Q90,Result_Q91);\nfloat Transmit_Q122;\nfloat Reflect_Q122;\nFast_Fresnel_B122(_Front_Reflect_,_Edge_Reflect_,_Power_,New_Normal_Q79,Incident_Q39,Transmit_Q122,Reflect_Q122);\nfloat Product_Q125=Y_Q90*Y_Q90;\nvec3 NearP_Q65;\nvec3 NearQ_Q65;\nfloat Distance_Q65;\nMin_Segment_Distance_B65(Left_Index_Q64,Left_Index_Middle_Q64,vPosition,cameraPosition,NearP_Q65,NearQ_Q65,Distance_Q65);\nvec3 NearP_Q63;\nvec3 NearQ_Q63;\nfloat Distance_Q63;\nMin_Segment_Distance_B65(Right_Index_Q64,Right_Index_Middle_Q64,vPosition,cameraPosition,NearP_Q63,NearQ_Q63,Distance_Q63);\nvec3 Reflected_Q47=reflect(Incident_Q39,New_Normal_Q79);\nvec4 Product_Q103=Linear_Q46*vec4(1,1,1,1);\nvec4 Result_Q132;\nRim_Light_B132(Normalized_Q107,Normalized_Q38,Incident_Q70,_Rim_Intensity_,_Rim_Texture_,Result_Q132);\nfloat Dot_Q72=dot(Incident_Q70, Normalized_Q71);\nfloat MaxAB_Q123=max(Reflect_Q122,Product_Q125);\nfloat NotInShadow_Q67;\n#if OCCLUSION_ENABLED\nFingerOcclusion_B67(_Width_,Distance_Q65,_Fuzz_,_Min_Fuzz_,vPosition,vBinormal,NearP_Q65,_Clip_Fade_,NotInShadow_Q67);\n#else\nNotInShadow_Q67=1.0;\n#endif\nfloat NotInShadow_Q68;\n#if OCCLUSION_ENABLED\nFingerOcclusion_B68(_Width_,Distance_Q63,_Fuzz_,_Min_Fuzz_,vPosition,vBinormal,NearP_Q63,_Clip_Fade_,NotInShadow_Q68);\n#else\nNotInShadow_Q68=1.0;\n#endif\nvec4 Reflected_Color_Q51;\nvec4 Indirect_Diffuse_Q51;\n#if ENV_ENABLE\nMapped_Environment_B51(_Reflection_Map_,_Indirect_Environment_,Reflected_Q47,Reflected_Color_Q51,Indirect_Diffuse_Q51);\n#else\nReflected_Color_Q51=vec4(0,0,0,1);\nIndirect_Diffuse_Q51=vec4(0,0,0,1);\n#endif\nvec4 Reflected_Color_Q50;\nvec4 Indirect_Color_Q50;\n#if SKY_ENABLED\nSky_Environment_B50(New_Normal_Q79,Reflected_Q47,Linear_Q43,Linear_Q44,Linear_Q45,_Horizon_Power_,Reflected_Color_Q50,Indirect_Color_Q50);\n#else\nReflected_Color_Q50=vec4(0,0,0,1);\nIndirect_Color_Q50=vec4(0,0,0,1);\n#endif\nfloat Hue_Q75;\nfloat Saturation_Q75;\nfloat Value_Q75;\nfloat Alpha_Q75;\nvec3 HSV_Q75;\nTo_HSV_B75(Product_Q103,Hue_Q75,Saturation_Q75,Value_Q75,Alpha_Q75,HSV_Q75);\nfloat Hue_Q127;\nfloat Saturation_Q127;\nfloat Value_Q127;\nfloat Alpha_Q127;\nvec3 HSV_Q127;\nTo_HSV_B75(Result_Q132,Hue_Q127,Saturation_Q127,Value_Q127,Alpha_Q127,HSV_Q127);\nfloat Result_Q110;\nCode_B110(Dot_Q72,Result_Q110);\nfloat AbsA_Q76=abs(Result_Q110);\nfloat MinAB_Q58=min(NotInShadow_Q67,NotInShadow_Q68);\nvec4 Sum_Q48=Reflected_Color_Q51+Reflected_Color_Q50;\nvec4 Sum_Q49=Indirect_Diffuse_Q51+Indirect_Color_Q50;\nvec3 HSV_Out_Q126;\nVaryHSV_B108(HSV_Q127,_Rim_Hue_Shift_,_Rim_Saturation_Shift_,_Rim_Value_Shift_,HSV_Out_Q126);\nfloat Out_Q114;\nRemap_Range_B114(-1.0,1.0,0.0,1.0,Result_Q110,Out_Q114);\nfloat Product_Q106;\nProduct_Q106=AbsA_Q76*_Hue_Shift_;\nfloat X_Q128;\nfloat Y_Q128;\nfloat Z_Q128;\nTo_XYZ_B74(HSV_Out_Q126,X_Q128,Y_Q128,Z_Q128);\nvec2 Vec2_Q112=vec2(Out_Q114,0.5);\nvec3 HSV_Out_Q108;\nVaryHSV_B108(HSV_Q75,Product_Q106,_Saturation_Shift_,_Value_Shift_,HSV_Out_Q108);\nvec4 Color_Q129;\nFrom_HSV_B73(X_Q128,Y_Q128,Z_Q128,0.0,Color_Q129);\nvec4 Color_Q111;\n#if IRIDESCENCE_ENABLED\nColor_Q111=texture(_Iridescence_Texture_,Vec2_Q112);\n#else\nColor_Q111=vec4(0,0,0,0);\n#endif\nfloat X_Q74;\nfloat Y_Q74;\nfloat Z_Q74;\nTo_XYZ_B74(HSV_Out_Q108,X_Q74,Y_Q74,Z_Q74);\nvec4 Result_Q131=_Rim_Intensity_*Color_Q129;\nvec4 Result_Q113=_Iridescence_Intensity_*Color_Q111;\nvec4 Color_Q73;\nFrom_HSV_B73(X_Q74,Y_Q74,Z_Q74,0.0,Color_Q73);\nvec4 Result_Q84=Result_Q91+(1.0-Result_Q91.a)*Color_Q73;\nvec4 Result_Q121;\nFragment_Main_B121(_Sun_Intensity_,_Sun_Theta_,_Sun_Phi_,New_Normal_Q79,Result_Q84,MaxAB_Q123,_Shininess_,Incident_Q39,_Horizon_Color_,_Sky_Color_,_Ground_Color_,_Indirect_Diffuse_,_Specular_,_Horizon_Power_,_Reflection_,Sum_Q48,Sum_Q49,_Sharpness_,Result_Q77,_Subsurface_,vec4(0,0,0,0),Result_Q131,Result_Q113,Result_Q121);\nvec4 Result_Q59;\nScale_RGB_B59(Result_Q121,MinAB_Q58,Result_Q59);\nvec4 sRGB_Q42;\nFastLinearTosRGB_B42(Result_Q59,sRGB_Q42);\nvec4 Result_Q31=Blob_Color_Q30+(1.0-Blob_Color_Q30.a)*sRGB_Q42;\nvec4 Result_Q40=Result_Q31; Result_Q40.a=1.0;\nvec4 Out_Color=Result_Q40;\nfloat Clip_Threshold=0.001;\nbool To_sRGB=false;\ngl_FragColor=Out_Color;\n}";
|
|
27632
27377
|
// Sideeffect
|
|
27633
27378
|
core_Engines_shaderStore__WEBPACK_IMPORTED_MODULE_0__.ShaderStore.ShadersStore[name] = shader;
|
|
27634
|
-
/** @
|
|
27379
|
+
/** @internal */
|
|
27635
27380
|
var mrdlSliderBarPixelShader = { name: name, shader: shader };
|
|
27636
27381
|
|
|
27637
27382
|
|
|
@@ -27655,7 +27400,7 @@ var name = "mrdlSliderBarVertexShader";
|
|
|
27655
27400
|
var shader = "uniform mat4 world;\nuniform mat4 viewProjection;\nuniform vec3 cameraPosition;\nattribute vec3 position;\nattribute vec3 normal;\nattribute vec2 uv;\n#ifdef TANGENT\nattribute vec3 tangent;\n#else\nconst vec3 tangent=vec3(0.);\n#endif\nuniform float _Radius_;\nuniform float _Bevel_Front_;\nuniform float _Bevel_Front_Stretch_;\nuniform float _Bevel_Back_;\nuniform float _Bevel_Back_Stretch_;\nuniform float _Radius_Top_Left_;\nuniform float _Radius_Top_Right_;\nuniform float _Radius_Bottom_Left_;\nuniform float _Radius_Bottom_Right_;\nuniform bool _Bulge_Enabled_;\nuniform float _Bulge_Height_;\nuniform float _Bulge_Radius_;\nuniform float _Sun_Intensity_;\nuniform float _Sun_Theta_;\nuniform float _Sun_Phi_;\nuniform float _Indirect_Diffuse_;\nuniform vec4 _Albedo_;\nuniform float _Specular_;\nuniform float _Shininess_;\nuniform float _Sharpness_;\nuniform float _Subsurface_;\nuniform vec4 _Left_Color_;\nuniform vec4 _Right_Color_;\nuniform float _Reflection_;\nuniform float _Front_Reflect_;\nuniform float _Edge_Reflect_;\nuniform float _Power_;\nuniform vec4 _Sky_Color_;\nuniform vec4 _Horizon_Color_;\nuniform vec4 _Ground_Color_;\nuniform float _Horizon_Power_;\nuniform sampler2D _Reflection_Map_;\nuniform sampler2D _Indirect_Environment_;\nuniform float _Width_;\nuniform float _Fuzz_;\nuniform float _Min_Fuzz_;\nuniform float _Clip_Fade_;\nuniform float _Hue_Shift_;\nuniform float _Saturation_Shift_;\nuniform float _Value_Shift_;\nuniform vec3 _Blob_Position_;\nuniform float _Blob_Intensity_;\nuniform float _Blob_Near_Size_;\nuniform float _Blob_Far_Size_;\nuniform float _Blob_Near_Distance_;\nuniform float _Blob_Far_Distance_;\nuniform float _Blob_Fade_Length_;\nuniform float _Blob_Pulse_;\nuniform float _Blob_Fade_;\nuniform sampler2D _Blob_Texture_;\nuniform vec3 _Blob_Position_2_;\nuniform float _Blob_Near_Size_2_;\nuniform float _Blob_Pulse_2_;\nuniform float _Blob_Fade_2_;\nuniform vec3 _Left_Index_Pos_;\nuniform vec3 _Right_Index_Pos_;\nuniform vec3 _Left_Index_Middle_Pos_;\nuniform vec3 _Right_Index_Middle_Pos_;\nuniform sampler2D _Decal_;\nuniform vec2 _Decal_Scale_XY_;\nuniform bool _Decal_Front_Only_;\nuniform float _Rim_Intensity_;\nuniform sampler2D _Rim_Texture_;\nuniform float _Rim_Hue_Shift_;\nuniform float _Rim_Saturation_Shift_;\nuniform float _Rim_Value_Shift_;\nuniform float _Iridescence_Intensity_;\nuniform sampler2D _Iridescence_Texture_;\nuniform bool Use_Global_Left_Index;\nuniform bool Use_Global_Right_Index;\nuniform vec4 Global_Left_Index_Tip_Position;\nuniform vec4 Global_Right_Index_Tip_Position;\nuniform vec4 Global_Left_Thumb_Tip_Position;\nuniform vec4 Global_Right_Thumb_Tip_Position;\nuniform float Global_Left_Index_Tip_Proximity;\nuniform float Global_Right_Index_Tip_Proximity;\nvarying vec3 vPosition;\nvarying vec3 vNormal;\nvarying vec2 vUV;\nvarying vec3 vTangent;\nvarying vec3 vBinormal;\nvarying vec4 vColor;\nvarying vec4 vExtra1;\nvarying vec4 vExtra2;\nvarying vec4 vExtra3;\nvoid Object_To_World_Pos_B12(\nvec3 Pos_Object,\nout vec3 Pos_World)\n{\nPos_World=(world*vec4(Pos_Object,1.0)).xyz;\n}\nvoid Object_To_World_Normal_B32(\nvec3 Nrm_Object,\nout vec3 Nrm_World)\n{\nNrm_World=(vec4(Nrm_Object,0.0)).xyz;\n}\nvoid Blob_Vertex_B23(\nvec3 Position,\nvec3 Normal,\nvec3 Tangent,\nvec3 Bitangent,\nvec3 Blob_Position,\nfloat Intensity,\nfloat Blob_Near_Size,\nfloat Blob_Far_Size,\nfloat Blob_Near_Distance,\nfloat Blob_Far_Distance,\nfloat Blob_Fade_Length,\nfloat Blob_Pulse,\nfloat Blob_Fade,\nout vec4 Blob_Info)\n{\nvec3 blob= (Use_Global_Left_Index ? Global_Left_Index_Tip_Position.xyz : Blob_Position);\nvec3 delta=blob-Position;\nfloat dist=dot(Normal,delta);\nfloat lerpValue=clamp((abs(dist)-Blob_Near_Distance)/(Blob_Far_Distance-Blob_Near_Distance),0.0,1.0);\nfloat fadeValue=1.0-clamp((abs(dist)-Blob_Far_Distance)/Blob_Fade_Length,0.0,1.0);\nfloat size=Blob_Near_Size+(Blob_Far_Size-Blob_Near_Size)*lerpValue;\nvec2 blobXY=vec2(dot(delta,Tangent),dot(delta,Bitangent))/(0.0001+size);\nfloat Fade=fadeValue*Intensity*Blob_Fade;\nfloat Distance=(lerpValue*0.5+0.5)*(1.0-Blob_Pulse);\nBlob_Info=vec4(blobXY.x,blobXY.y,Distance,Fade);\n}\nvoid Blob_Vertex_B24(\nvec3 Position,\nvec3 Normal,\nvec3 Tangent,\nvec3 Bitangent,\nvec3 Blob_Position,\nfloat Intensity,\nfloat Blob_Near_Size,\nfloat Blob_Far_Size,\nfloat Blob_Near_Distance,\nfloat Blob_Far_Distance,\nfloat Blob_Fade_Length,\nfloat Blob_Pulse,\nfloat Blob_Fade,\nout vec4 Blob_Info)\n{\nvec3 blob= (Use_Global_Right_Index ? Global_Right_Index_Tip_Position.xyz : Blob_Position);\nvec3 delta=blob-Position;\nfloat dist=dot(Normal,delta);\nfloat lerpValue=clamp((abs(dist)-Blob_Near_Distance)/(Blob_Far_Distance-Blob_Near_Distance),0.0,1.0);\nfloat fadeValue=1.0-clamp((abs(dist)-Blob_Far_Distance)/Blob_Fade_Length,0.0,1.0);\nfloat size=Blob_Near_Size+(Blob_Far_Size-Blob_Near_Size)*lerpValue;\nvec2 blobXY=vec2(dot(delta,Tangent),dot(delta,Bitangent))/(0.0001+size);\nfloat Fade=fadeValue*Intensity*Blob_Fade;\nfloat Distance=(lerpValue*0.5+0.5)*(1.0-Blob_Pulse);\nBlob_Info=vec4(blobXY.x,blobXY.y,Distance,Fade);\n}\nvoid Move_Verts_B130(\nfloat Anisotropy,\nvec3 P,\nfloat Radius,\nfloat Bevel,\nvec3 Normal_Object,\nfloat ScaleZ,\nfloat Stretch,\nout vec3 New_P,\nout vec2 New_UV,\nout float Radial_Gradient,\nout vec3 Radial_Dir,\nout vec3 New_Normal)\n{\nvec2 UV=P.xy*2.0+0.5;\nvec2 center=clamp(UV,0.0,1.0);\nvec2 delta=UV-center;\nfloat deltad=(length(delta)*2.0);\nfloat f=(Bevel+(Radius-Bevel)*Stretch)/Radius;\nfloat innerd=clamp(deltad*2.0,0.0,1.0);\nfloat outerd=clamp(deltad*2.0-1.0,0.0,1.0);\nfloat bevelAngle=outerd*3.14159*0.5;\nfloat sinb=sin(bevelAngle);\nfloat cosb=cos(bevelAngle);\nfloat beveld=(1.0-f)*innerd+f*sinb;\nfloat br=outerd;\nvec2 r2=2.0*vec2(Radius/Anisotropy,Radius);\nfloat dir=P.z<0.0001 ? 1.0 : -1.0;\nNew_UV=center+r2*((0.5-center)+normalize(delta+vec2(0.0,0.000001))*beveld*0.5);\nNew_P=vec3(New_UV-0.5,P.z+dir*(1.0-cosb)*Bevel*ScaleZ);\nRadial_Gradient=clamp((deltad-0.5)*2.0,0.0,1.0);\nRadial_Dir=vec3(delta*r2,0.0);\nvec3 beveledNormal=cosb*Normal_Object+sinb*vec3(delta.x,delta.y,0.0);\nNew_Normal=Normal_Object.z==0.0 ? Normal_Object : beveledNormal;\n}\nvoid Object_To_World_Dir_B60(\nvec3 Dir_Object,\nout vec3 Normal_World,\nout vec3 Normal_World_N,\nout float Normal_Length)\n{\nNormal_World=(world*vec4(Dir_Object,0.0)).xyz;\nNormal_Length=length(Normal_World);\nNormal_World_N=Normal_World/Normal_Length;\n}\nvoid To_XYZ_B78(\nvec3 Vec3,\nout float X,\nout float Y,\nout float Z)\n{\nX=Vec3.x;\nY=Vec3.y;\nZ=Vec3.z;\n}\nvoid Conditional_Float_B93(\nbool Which,\nfloat If_True,\nfloat If_False,\nout float Result)\n{\nResult=Which ? If_True : If_False;\n}\nvoid Object_To_World_Dir_B28(\nvec3 Dir_Object,\nout vec3 Binormal_World,\nout vec3 Binormal_World_N,\nout float Binormal_Length)\n{\nBinormal_World=(world*vec4(Dir_Object,0.0)).xyz;\nBinormal_Length=length(Binormal_World);\nBinormal_World_N=Binormal_World/Binormal_Length;\n}\nvoid Pick_Radius_B69(\nfloat Radius,\nfloat Radius_Top_Left,\nfloat Radius_Top_Right,\nfloat Radius_Bottom_Left,\nfloat Radius_Bottom_Right,\nvec3 Position,\nout float Result)\n{\nbool whichY=Position.y>0.0;\nResult=Position.x<0.0 ? (whichY ? Radius_Top_Left : Radius_Bottom_Left) : (whichY ? Radius_Top_Right : Radius_Bottom_Right);\nResult*=Radius;\n}\nvoid Conditional_Float_B36(\nbool Which,\nfloat If_True,\nfloat If_False,\nout float Result)\n{\nResult=Which ? If_True : If_False;\n}\nvoid Greater_Than_B37(\nfloat Left,\nfloat Right,\nout bool Not_Greater_Than,\nout bool Greater_Than)\n{\nGreater_Than=Left>Right;\nNot_Greater_Than=!Greater_Than;\n}\nvoid Remap_Range_B105(\nfloat In_Min,\nfloat In_Max,\nfloat Out_Min,\nfloat Out_Max,\nfloat In,\nout float Out)\n{\nOut=mix(Out_Min,Out_Max,clamp((In-In_Min)/(In_Max-In_Min),0.0,1.0));\n}\nvoid main()\n{\nvec2 XY_Q85;\nXY_Q85=(uv-vec2(0.5,0.5))*_Decal_Scale_XY_+vec2(0.5,0.5);\nvec3 Tangent_World_Q27;\nvec3 Tangent_World_N_Q27;\nfloat Tangent_Length_Q27;\nTangent_World_Q27=(world*vec4(vec3(1,0,0),0.0)).xyz;\nTangent_Length_Q27=length(Tangent_World_Q27);\nTangent_World_N_Q27=Tangent_World_Q27/Tangent_Length_Q27;\nvec3 Normal_World_Q60;\nvec3 Normal_World_N_Q60;\nfloat Normal_Length_Q60;\nObject_To_World_Dir_B60(vec3(0,0,1),Normal_World_Q60,Normal_World_N_Q60,Normal_Length_Q60);\nfloat X_Q78;\nfloat Y_Q78;\nfloat Z_Q78;\nTo_XYZ_B78(position,X_Q78,Y_Q78,Z_Q78);\nvec3 Nrm_World_Q26;\nNrm_World_Q26=normalize((world*vec4(normal,0.0)).xyz);\nvec3 Binormal_World_Q28;\nvec3 Binormal_World_N_Q28;\nfloat Binormal_Length_Q28;\nObject_To_World_Dir_B28(vec3(0,1,0),Binormal_World_Q28,Binormal_World_N_Q28,Binormal_Length_Q28);\nfloat Anisotropy_Q29=Tangent_Length_Q27/Binormal_Length_Q28;\nfloat Result_Q69;\nPick_Radius_B69(_Radius_,_Radius_Top_Left_,_Radius_Top_Right_,_Radius_Bottom_Left_,_Radius_Bottom_Right_,position,Result_Q69);\nfloat Anisotropy_Q53=Binormal_Length_Q28/Normal_Length_Q60;\nbool Not_Greater_Than_Q37;\nbool Greater_Than_Q37;\nGreater_Than_B37(Z_Q78,0.0,Not_Greater_Than_Q37,Greater_Than_Q37);\nvec4 Linear_Q101;\nLinear_Q101.rgb=clamp(_Left_Color_.rgb*_Left_Color_.rgb,0.0,1.0);\nLinear_Q101.a=_Left_Color_.a;\nvec4 Linear_Q102;\nLinear_Q102.rgb=clamp(_Right_Color_.rgb*_Right_Color_.rgb,0.0,1.0);\nLinear_Q102.a=_Right_Color_.a;\nvec3 Difference_Q61=vec3(0,0,0)-Normal_World_N_Q60;\nvec4 Out_Color_Q34=vec4(X_Q78,Y_Q78,Z_Q78,1);\nfloat Result_Q36;\nConditional_Float_B36(Greater_Than_Q37,_Bevel_Back_,_Bevel_Front_,Result_Q36);\nfloat Result_Q94;\nConditional_Float_B36(Greater_Than_Q37,_Bevel_Back_Stretch_,_Bevel_Front_Stretch_,Result_Q94);\nvec3 New_P_Q130;\nvec2 New_UV_Q130;\nfloat Radial_Gradient_Q130;\nvec3 Radial_Dir_Q130;\nvec3 New_Normal_Q130;\nMove_Verts_B130(Anisotropy_Q29,position,Result_Q69,Result_Q36,normal,Anisotropy_Q53,Result_Q94,New_P_Q130,New_UV_Q130,Radial_Gradient_Q130,Radial_Dir_Q130,New_Normal_Q130);\nfloat X_Q98;\nfloat Y_Q98;\nX_Q98=New_UV_Q130.x;\nY_Q98=New_UV_Q130.y;\nvec3 Pos_World_Q12;\nObject_To_World_Pos_B12(New_P_Q130,Pos_World_Q12);\nvec3 Nrm_World_Q32;\nObject_To_World_Normal_B32(New_Normal_Q130,Nrm_World_Q32);\nvec4 Blob_Info_Q23;\n#if BLOB_ENABLE\nBlob_Vertex_B23(Pos_World_Q12,Nrm_World_Q26,Tangent_World_N_Q27,Binormal_World_N_Q28,_Blob_Position_,_Blob_Intensity_,_Blob_Near_Size_,_Blob_Far_Size_,_Blob_Near_Distance_,_Blob_Far_Distance_,_Blob_Fade_Length_,_Blob_Pulse_,_Blob_Fade_,Blob_Info_Q23);\n#else\nBlob_Info_Q23=vec4(0,0,0,0);\n#endif\nvec4 Blob_Info_Q24;\n#if BLOB_ENABLE_2\nBlob_Vertex_B24(Pos_World_Q12,Nrm_World_Q26,Tangent_World_N_Q27,Binormal_World_N_Q28,_Blob_Position_2_,_Blob_Intensity_,_Blob_Near_Size_2_,_Blob_Far_Size_,_Blob_Near_Distance_,_Blob_Far_Distance_,_Blob_Fade_Length_,_Blob_Pulse_2_,_Blob_Fade_2_,Blob_Info_Q24);\n#else\nBlob_Info_Q24=vec4(0,0,0,0);\n#endif\nfloat Out_Q105;\nRemap_Range_B105(0.0,1.0,0.0,1.0,X_Q98,Out_Q105);\nfloat X_Q86;\nfloat Y_Q86;\nfloat Z_Q86;\nTo_XYZ_B78(Nrm_World_Q32,X_Q86,Y_Q86,Z_Q86);\nvec4 Color_At_T_Q97=mix(Linear_Q101,Linear_Q102,Out_Q105);\nfloat Minus_F_Q87=-Z_Q86;\nfloat R_Q99;\nfloat G_Q99;\nfloat B_Q99;\nfloat A_Q99;\nR_Q99=Color_At_T_Q97.r; G_Q99=Color_At_T_Q97.g; B_Q99=Color_At_T_Q97.b; A_Q99=Color_At_T_Q97.a;\nfloat ClampF_Q88=clamp(0.0,Minus_F_Q87,1.0);\nfloat Result_Q93;\nConditional_Float_B93(_Decal_Front_Only_,ClampF_Q88,1.0,Result_Q93);\nvec4 Vec4_Q89=vec4(Result_Q93,Radial_Gradient_Q130,G_Q99,B_Q99);\nvec3 Position=Pos_World_Q12;\nvec3 Normal=Nrm_World_Q32;\nvec2 UV=XY_Q85;\nvec3 Tangent=Tangent_World_N_Q27;\nvec3 Binormal=Difference_Q61;\nvec4 Color=Out_Color_Q34;\nvec4 Extra1=Vec4_Q89;\nvec4 Extra2=Blob_Info_Q23;\nvec4 Extra3=Blob_Info_Q24;\ngl_Position=viewProjection*vec4(Position,1);\nvPosition=Position;\nvNormal=Normal;\nvUV=UV;\nvTangent=Tangent;\nvBinormal=Binormal;\nvColor=Color;\nvExtra1=Extra1;\nvExtra2=Extra2;\nvExtra3=Extra3;\n}";
|
|
27656
27401
|
// Sideeffect
|
|
27657
27402
|
core_Engines_shaderStore__WEBPACK_IMPORTED_MODULE_0__.ShaderStore.ShadersStore[name] = shader;
|
|
27658
|
-
/** @
|
|
27403
|
+
/** @internal */
|
|
27659
27404
|
var mrdlSliderBarVertexShader = { name: name, shader: shader };
|
|
27660
27405
|
|
|
27661
27406
|
|
|
@@ -27679,7 +27424,7 @@ var name = "mrdlSliderThumbPixelShader";
|
|
|
27679
27424
|
var shader = "uniform vec3 cameraPosition;\nvarying vec3 vPosition;\nvarying vec3 vNormal;\nvarying vec2 vUV;\nvarying vec3 vTangent;\nvarying vec3 vBinormal;\nvarying vec4 vColor;\nvarying vec4 vExtra1;\nvarying vec4 vExtra2;\nvarying vec4 vExtra3;\nuniform float _Radius_;\nuniform float _Bevel_Front_;\nuniform float _Bevel_Front_Stretch_;\nuniform float _Bevel_Back_;\nuniform float _Bevel_Back_Stretch_;\nuniform float _Radius_Top_Left_;\nuniform float _Radius_Top_Right_;\nuniform float _Radius_Bottom_Left_;\nuniform float _Radius_Bottom_Right_;\nuniform bool _Bulge_Enabled_;\nuniform float _Bulge_Height_;\nuniform float _Bulge_Radius_;\nuniform float _Sun_Intensity_;\nuniform float _Sun_Theta_;\nuniform float _Sun_Phi_;\nuniform float _Indirect_Diffuse_;\nuniform vec4 _Albedo_;\nuniform float _Specular_;\nuniform float _Shininess_;\nuniform float _Sharpness_;\nuniform float _Subsurface_;\nuniform vec4 _Left_Color_;\nuniform vec4 _Right_Color_;\nuniform float _Reflection_;\nuniform float _Front_Reflect_;\nuniform float _Edge_Reflect_;\nuniform float _Power_;\nuniform vec4 _Sky_Color_;\nuniform vec4 _Horizon_Color_;\nuniform vec4 _Ground_Color_;\nuniform float _Horizon_Power_;\nuniform sampler2D _Reflection_Map_;\nuniform sampler2D _Indirect_Environment_;\nuniform float _Width_;\nuniform float _Fuzz_;\nuniform float _Min_Fuzz_;\nuniform float _Clip_Fade_;\nuniform float _Hue_Shift_;\nuniform float _Saturation_Shift_;\nuniform float _Value_Shift_;\nuniform vec3 _Blob_Position_;\nuniform float _Blob_Intensity_;\nuniform float _Blob_Near_Size_;\nuniform float _Blob_Far_Size_;\nuniform float _Blob_Near_Distance_;\nuniform float _Blob_Far_Distance_;\nuniform float _Blob_Fade_Length_;\nuniform float _Blob_Pulse_;\nuniform float _Blob_Fade_;\nuniform sampler2D _Blob_Texture_;\nuniform vec3 _Blob_Position_2_;\nuniform float _Blob_Near_Size_2_;\nuniform float _Blob_Pulse_2_;\nuniform float _Blob_Fade_2_;\nuniform vec3 _Left_Index_Pos_;\nuniform vec3 _Right_Index_Pos_;\nuniform vec3 _Left_Index_Middle_Pos_;\nuniform vec3 _Right_Index_Middle_Pos_;\nuniform sampler2D _Decal_;\nuniform vec2 _Decal_Scale_XY_;\nuniform bool _Decal_Front_Only_;\nuniform float _Rim_Intensity_;\nuniform sampler2D _Rim_Texture_;\nuniform float _Rim_Hue_Shift_;\nuniform float _Rim_Saturation_Shift_;\nuniform float _Rim_Value_Shift_;\nuniform float _Iridescence_Intensity_;\nuniform sampler2D _Iridescence_Texture_;\nuniform bool Use_Global_Left_Index;\nuniform bool Use_Global_Right_Index;\nuniform vec4 Global_Left_Index_Tip_Position;\nuniform vec4 Global_Right_Index_Tip_Position;\nuniform vec4 Global_Left_Thumb_Tip_Position;\nuniform vec4 Global_Right_Thumb_Tip_Position;\nuniform vec4 Global_Left_Index_Middle_Position;\nuniform vec4 Global_Right_Index_Middle_Position;\nuniform float Global_Left_Index_Tip_Proximity;\nuniform float Global_Right_Index_Tip_Proximity;\nvoid Blob_Fragment_B180(\nsampler2D Blob_Texture,\nvec4 Blob_Info1,\nvec4 Blob_Info2,\nout vec4 Blob_Color)\n{\nfloat k1=dot(Blob_Info1.xy,Blob_Info1.xy);\nfloat k2=dot(Blob_Info2.xy,Blob_Info2.xy);\nvec3 closer=k1<k2 ? vec3(k1,Blob_Info1.z,Blob_Info1.w) : vec3(k2,Blob_Info2.z,Blob_Info2.w);\nBlob_Color=closer.z*texture(Blob_Texture,vec2(vec2(sqrt(closer.x),closer.y).x,1.0-vec2(sqrt(closer.x),closer.y).y))*clamp(1.0-closer.x,0.0,1.0);\n}\nvoid FastLinearTosRGB_B192(\nvec4 Linear,\nout vec4 sRGB)\n{\nsRGB.rgb=sqrt(clamp(Linear.rgb,0.0,1.0));\nsRGB.a=Linear.a;\n}\nvoid Scale_RGB_B209(\nvec4 Color,\nfloat Scalar,\nout vec4 Result)\n{\nResult=vec4(Scalar,Scalar,Scalar,1)*Color;\n}\nvoid Fragment_Main_B271(\nfloat Sun_Intensity,\nfloat Sun_Theta,\nfloat Sun_Phi,\nvec3 Normal,\nvec4 Albedo,\nfloat Fresnel_Reflect,\nfloat Shininess,\nvec3 Incident,\nvec4 Horizon_Color,\nvec4 Sky_Color,\nvec4 Ground_Color,\nfloat Indirect_Diffuse,\nfloat Specular,\nfloat Horizon_Power,\nfloat Reflection,\nvec4 Reflection_Sample,\nvec4 Indirect_Sample,\nfloat Sharpness,\nfloat SSS,\nfloat Subsurface,\nvec4 Translucence,\nvec4 Rim_Light,\nvec4 Iridescence,\nout vec4 Result)\n{\nfloat theta=Sun_Theta*2.0*3.14159;\nfloat phi=Sun_Phi*3.14159;\nvec3 lightDir= vec3(cos(phi)*cos(theta),sin(phi),cos(phi)*sin(theta));\nfloat NdotL=max(dot(lightDir,Normal),0.0);\nvec3 R=reflect(Incident,Normal);\nfloat RdotL=max(0.0,dot(R,lightDir));\nfloat specular=pow(RdotL,Shininess);\nspecular=mix(specular,smoothstep(0.495*Sharpness,1.0-0.495*Sharpness,specular),Sharpness);\nvec4 gi=mix(Ground_Color,Sky_Color,Normal.y*0.5+0.5);\nResult=((Sun_Intensity*NdotL+Indirect_Sample*Indirect_Diffuse+Translucence)*(1.0+SSS*Subsurface))*Albedo*(1.0-Fresnel_Reflect)+(Sun_Intensity*specular*Specular+Fresnel_Reflect*Reflection*Reflection_Sample)+Fresnel_Reflect*Rim_Light+Iridescence;\n}\nvoid Bulge_B229(\nbool Enabled,\nvec3 Normal,\nvec3 Tangent,\nfloat Bulge_Height,\nvec4 UV,\nfloat Bulge_Radius,\nvec3 ButtonN,\nout vec3 New_Normal)\n{\nvec2 xy=clamp(UV.xy*2.0,vec2(-1,-1),vec2(1,1));\nvec3 B=(cross(Normal,Tangent));\nfloat k=-clamp(1.0-length(xy)/Bulge_Radius,0.0,1.0)*Bulge_Height;\nk=sin(k*3.14159*0.5);\nk*=smoothstep(0.9998,0.9999,abs(dot(ButtonN,Normal)));\nNew_Normal=Normal*sqrt(1.0-k*k)+(xy.x*Tangent+xy.y*B)*k;\nNew_Normal=Enabled ? New_Normal : Normal;\n}\nvoid SSS_B227(\nvec3 ButtonN,\nvec3 Normal,\nvec3 Incident,\nout float Result)\n{\nfloat NdotI=abs(dot(Normal,Incident));\nfloat BdotI=abs(dot(ButtonN,Incident));\nResult=(abs(NdotI-BdotI)); \n}\nvoid FingerOcclusion_B217(\nfloat Width,\nfloat DistToCenter,\nfloat Fuzz,\nfloat Min_Fuzz,\nvec3 Position,\nvec3 Forward,\nvec3 Nearest,\nfloat Fade_Out,\nout float NotInShadow)\n{\nfloat d=dot((Nearest-Position),Forward);\nfloat sh=smoothstep(Width*0.5,Width*0.5+Fuzz*max(d,0.0)+Min_Fuzz,DistToCenter);\nNotInShadow=1.0-(1.0-sh)*smoothstep(-Fade_Out,0.0,d);\n}\nvoid FingerOcclusion_B218(\nfloat Width,\nfloat DistToCenter,\nfloat Fuzz,\nfloat Min_Fuzz,\nvec3 Position,\nvec3 Forward,\nvec3 Nearest,\nfloat Fade_Out,\nout float NotInShadow)\n{\nfloat d=dot((Nearest-Position),Forward);\nfloat sh=smoothstep(Width*0.5,Width*0.5+Fuzz*max(d,0.0)+Min_Fuzz,DistToCenter);\nNotInShadow=1.0-(1.0-sh)*smoothstep(-Fade_Out,0.0,d);\n}\nvoid Scale_Color_B241(\nvec4 Color,\nfloat Scalar,\nout vec4 Result)\n{\nResult=Scalar*Color;\n}\nvoid From_HSV_B223(\nfloat Hue,\nfloat Saturation,\nfloat Value,\nfloat Alpha,\nout vec4 Color)\n{\nvec4 K=vec4(1.0,2.0/3.0,1.0/3.0,3.0);\nvec3 p=abs(fract(vec3(Hue,Hue,Hue)+K.xyz)*6.0-K.www);\nColor.rgb=Value*mix(K.xxx,clamp(p-K.xxx,0.0,1.0),Saturation);\nColor.a=Alpha;\n}\nvoid Fast_Fresnel_B272(\nfloat Front_Reflect,\nfloat Edge_Reflect,\nfloat Power,\nvec3 Normal,\nvec3 Incident,\nout float Transmit,\nout float Reflect)\n{\nfloat d=max(-dot(Incident,Normal),0.0);\nReflect=Front_Reflect+(Edge_Reflect-Front_Reflect)*pow(1.0-d,Power);\nTransmit=1.0-Reflect;\n}\nvoid Mapped_Environment_B201(\nsampler2D Reflected_Environment,\nsampler2D Indirect_Environment,\nvec3 Dir,\nout vec4 Reflected_Color,\nout vec4 Indirect_Diffuse)\n{\nReflected_Color=texture(Reflected_Environment,vec2(atan(Dir.z,Dir.x)/3.14159*0.5,asin(Dir.y)/3.14159+0.5));\nIndirect_Diffuse=texture(Indirect_Environment,vec2(atan(Dir.z,Dir.x)/3.14159*0.5,asin(Dir.y)/3.14159+0.5));\n}\nvec4 SampleEnv_Bid200(vec3 D,vec4 S,vec4 H,vec4 G,float exponent)\n{\nfloat k=pow(abs(D.y),exponent);\nvec4 C;\nif (D.y>0.0) {\nC=mix(H,S,k);\n} else {\nC=mix(H,G,k); \n}\nreturn C;\n}\nvoid Sky_Environment_B200(\nvec3 Normal,\nvec3 Reflected,\nvec4 Sky_Color,\nvec4 Horizon_Color,\nvec4 Ground_Color,\nfloat Horizon_Power,\nout vec4 Reflected_Color,\nout vec4 Indirect_Color)\n{\nReflected_Color=SampleEnv_Bid200(Reflected,Sky_Color,Horizon_Color,Ground_Color,Horizon_Power);\nIndirect_Color=mix(Ground_Color,Sky_Color,Normal.y*0.5+0.5);\n}\nvoid Min_Segment_Distance_B215(\nvec3 P0,\nvec3 P1,\nvec3 Q0,\nvec3 Q1,\nout vec3 NearP,\nout vec3 NearQ,\nout float Distance)\n{\nvec3 u=P1-P0;\nvec3 v=Q1-Q0;\nvec3 w=P0-Q0;\nfloat a=dot(u,u);\nfloat b=dot(u,v);\nfloat c=dot(v,v);\nfloat d=dot(u,w);\nfloat e=dot(v,w);\nfloat D=a*c-b*b;\nfloat sD=D;\nfloat tD=D;\nfloat sc,sN,tc,tN;\nif (D<0.00001) {\nsN=0.0;\nsD=1.0;\ntN=e;\ntD=c;\n} else {\nsN=(b*e-c*d);\ntN=(a*e-b*d);\nif (sN<0.0) {\nsN=0.0;\ntN=e;\ntD=c;\n} else if (sN>sD) {\nsN=sD;\ntN=e+b;\ntD=c;\n}\n}\nif (tN<0.0) {\ntN=0.0;\nif (-d<0.0) {\nsN=0.0;\n} else if (-d>a) {\nsN=sD;\n} else {\nsN=-d;\nsD=a;\n}\n} else if (tN>tD) {\ntN=tD;\nif ((-d+b)<0.0) {\nsN=0.0;\n} else if ((-d+b)>a) {\nsN=sD;\n} else {\nsN=(-d+b);\nsD=a;\n}\n}\nsc=abs(sN)<0.000001 ? 0.0 : sN/sD;\ntc=abs(tN)<0.000001 ? 0.0 : tN/tD;\nNearP=P0+sc*u;\nNearQ=Q0+tc*v;\nDistance=distance(NearP,NearQ);\n}\nvoid To_XYZ_B224(\nvec3 Vec3,\nout float X,\nout float Y,\nout float Z)\n{\nX=Vec3.x;\nY=Vec3.y;\nZ=Vec3.z;\n}\nvoid Finger_Positions_B214(\nvec3 Left_Index_Pos,\nvec3 Right_Index_Pos,\nvec3 Left_Index_Middle_Pos,\nvec3 Right_Index_Middle_Pos,\nout vec3 Left_Index,\nout vec3 Right_Index,\nout vec3 Left_Index_Middle,\nout vec3 Right_Index_Middle)\n{\nLeft_Index= (Use_Global_Left_Index ? Global_Left_Index_Tip_Position.xyz : Left_Index_Pos);\nRight_Index= (Use_Global_Right_Index ? Global_Right_Index_Tip_Position.xyz : Right_Index_Pos);\nLeft_Index_Middle= (Use_Global_Left_Index ? Global_Left_Index_Middle_Position.xyz : Left_Index_Middle_Pos);\nRight_Index_Middle= (Use_Global_Right_Index ? Global_Right_Index_Middle_Position.xyz : Right_Index_Middle_Pos);\n}\nvoid VaryHSV_B258(\nvec3 HSV_In,\nfloat Hue_Shift,\nfloat Saturation_Shift,\nfloat Value_Shift,\nout vec3 HSV_Out)\n{\nHSV_Out=vec3(fract(HSV_In.x+Hue_Shift),clamp(HSV_In.y+Saturation_Shift,0.0,1.0),clamp(HSV_In.z+Value_Shift,0.0,1.0));\n}\nvoid Remap_Range_B264(\nfloat In_Min,\nfloat In_Max,\nfloat Out_Min,\nfloat Out_Max,\nfloat In,\nout float Out)\n{\nOut=mix(Out_Min,Out_Max,clamp((In-In_Min)/(In_Max-In_Min),0.0,1.0));\n}\nvoid To_HSV_B225(\nvec4 Color,\nout float Hue,\nout float Saturation,\nout float Value,\nout float Alpha,\nout vec3 HSV)\n{\nvec4 K=vec4(0.0,-1.0/3.0,2.0/3.0,-1.0);\nvec4 p=Color.g<Color.b ? vec4(Color.bg,K.wz) : vec4(Color.gb,K.xy);\nvec4 q=Color.r<p.x ? vec4(p.xyw,Color.r) : vec4(Color.r,p.yzx);\nfloat d=q.x-min(q.w,q.y);\nfloat e=1.0e-10;\nHue=abs(q.z+(q.w-q.y)/(6.0*d+e));\nSaturation=d/(q.x+e);\nValue=q.x;\nAlpha=Color.a;\nHSV=vec3(Hue,Saturation,Value);\n}\nvoid Code_B260(\nfloat X,\nout float Result)\n{\nResult=(acos(X)/3.14159-0.5)*2.0;\n}\nvoid Rim_Light_B282(\nvec3 Front,\nvec3 Normal,\nvec3 Incident,\nfloat Rim_Intensity,\nsampler2D Texture,\nout vec4 Result)\n{\nvec3 R=reflect(Incident,Normal);\nfloat RdotF=dot(R,Front);\nfloat RdotL=sqrt(1.0-RdotF*RdotF);\nvec2 UV=vec2(R.y*0.5+0.5,0.5);\nvec4 Color=texture(Texture,UV);\nResult=Color;\n}\nvoid main()\n{\nvec4 Blob_Color_Q180;\n#if BLOB_ENABLE\nBlob_Fragment_B180(_Blob_Texture_,vExtra2,vExtra3,Blob_Color_Q180);\n#else\nBlob_Color_Q180=vec4(0,0,0,0);\n#endif\nvec3 Incident_Q189=normalize(vPosition-cameraPosition);\nvec3 Normalized_Q188=normalize(vNormal);\nvec3 Normalized_Q221=normalize(vTangent);\nvec4 Color_Q233;\n#if DECAL_ENABLE\nColor_Q233=texture(_Decal_,vUV);\n#else\nColor_Q233=vec4(0,0,0,0);\n#endif\nfloat X_Q240;\nfloat Y_Q240;\nfloat Z_Q240;\nfloat W_Q240;\nX_Q240=vExtra1.x;\nY_Q240=vExtra1.y;\nZ_Q240=vExtra1.z;\nW_Q240=vExtra1.w;\nvec4 Linear_Q193;\nLinear_Q193.rgb=clamp(_Sky_Color_.rgb*_Sky_Color_.rgb,0.0,1.0);\nLinear_Q193.a=_Sky_Color_.a;\nvec4 Linear_Q194;\nLinear_Q194.rgb=clamp(_Horizon_Color_.rgb*_Horizon_Color_.rgb,0.0,1.0);\nLinear_Q194.a=_Horizon_Color_.a;\nvec4 Linear_Q195;\nLinear_Q195.rgb=clamp(_Ground_Color_.rgb*_Ground_Color_.rgb,0.0,1.0);\nLinear_Q195.a=_Ground_Color_.a;\nvec3 Left_Index_Q214;\nvec3 Right_Index_Q214;\nvec3 Left_Index_Middle_Q214;\nvec3 Right_Index_Middle_Q214;\nFinger_Positions_B214(_Left_Index_Pos_,_Right_Index_Pos_,_Left_Index_Middle_Pos_,_Right_Index_Middle_Pos_,Left_Index_Q214,Right_Index_Q214,Left_Index_Middle_Q214,Right_Index_Middle_Q214);\nvec4 Linear_Q196;\nLinear_Q196.rgb=clamp(_Albedo_.rgb*_Albedo_.rgb,0.0,1.0);\nLinear_Q196.a=_Albedo_.a;\nvec3 Normalized_Q257=normalize(vBinormal);\nvec3 Incident_Q220=normalize(vPosition-cameraPosition);\nvec3 New_Normal_Q229;\nBulge_B229(_Bulge_Enabled_,Normalized_Q188,Normalized_Q221,_Bulge_Height_,vColor,_Bulge_Radius_,vBinormal,New_Normal_Q229);\nfloat Result_Q227;\nSSS_B227(vBinormal,New_Normal_Q229,Incident_Q189,Result_Q227);\nvec4 Result_Q241;\nScale_Color_B241(Color_Q233,X_Q240,Result_Q241);\nfloat Transmit_Q272;\nfloat Reflect_Q272;\nFast_Fresnel_B272(_Front_Reflect_,_Edge_Reflect_,_Power_,New_Normal_Q229,Incident_Q189,Transmit_Q272,Reflect_Q272);\nfloat Product_Q275=Y_Q240*Y_Q240;\nvec3 NearP_Q215;\nvec3 NearQ_Q215;\nfloat Distance_Q215;\nMin_Segment_Distance_B215(Left_Index_Q214,Left_Index_Middle_Q214,vPosition,cameraPosition,NearP_Q215,NearQ_Q215,Distance_Q215);\nvec3 NearP_Q213;\nvec3 NearQ_Q213;\nfloat Distance_Q213;\nMin_Segment_Distance_B215(Right_Index_Q214,Right_Index_Middle_Q214,vPosition,cameraPosition,NearP_Q213,NearQ_Q213,Distance_Q213);\nvec3 Reflected_Q197=reflect(Incident_Q189,New_Normal_Q229);\nvec4 Product_Q253=Linear_Q196*vec4(1,1,1,1);\nvec4 Result_Q282;\nRim_Light_B282(Normalized_Q257,Normalized_Q188,Incident_Q220,_Rim_Intensity_,_Rim_Texture_,Result_Q282);\nfloat Dot_Q222=dot(Incident_Q220, Normalized_Q221);\nfloat MaxAB_Q273=max(Reflect_Q272,Product_Q275);\nfloat NotInShadow_Q217;\n#if OCCLUSION_ENABLED\nFingerOcclusion_B217(_Width_,Distance_Q215,_Fuzz_,_Min_Fuzz_,vPosition,vBinormal,NearP_Q215,_Clip_Fade_,NotInShadow_Q217);\n#else\nNotInShadow_Q217=1.0;\n#endif\nfloat NotInShadow_Q218;\n#if OCCLUSION_ENABLED\nFingerOcclusion_B218(_Width_,Distance_Q213,_Fuzz_,_Min_Fuzz_,vPosition,vBinormal,NearP_Q213,_Clip_Fade_,NotInShadow_Q218);\n#else\nNotInShadow_Q218=1.0;\n#endif\nvec4 Reflected_Color_Q201;\nvec4 Indirect_Diffuse_Q201;\n#if ENV_ENABLE\nMapped_Environment_B201(_Reflection_Map_,_Indirect_Environment_,Reflected_Q197,Reflected_Color_Q201,Indirect_Diffuse_Q201);\n#else\nReflected_Color_Q201=vec4(0,0,0,1);\nIndirect_Diffuse_Q201=vec4(0,0,0,1);\n#endif\nvec4 Reflected_Color_Q200;\nvec4 Indirect_Color_Q200;\n#if SKY_ENABLED\nSky_Environment_B200(New_Normal_Q229,Reflected_Q197,Linear_Q193,Linear_Q194,Linear_Q195,_Horizon_Power_,Reflected_Color_Q200,Indirect_Color_Q200);\n#else\nReflected_Color_Q200=vec4(0,0,0,1);\nIndirect_Color_Q200=vec4(0,0,0,1);\n#endif\nfloat Hue_Q225;\nfloat Saturation_Q225;\nfloat Value_Q225;\nfloat Alpha_Q225;\nvec3 HSV_Q225;\nTo_HSV_B225(Product_Q253,Hue_Q225,Saturation_Q225,Value_Q225,Alpha_Q225,HSV_Q225);\nfloat Hue_Q277;\nfloat Saturation_Q277;\nfloat Value_Q277;\nfloat Alpha_Q277;\nvec3 HSV_Q277;\nTo_HSV_B225(Result_Q282,Hue_Q277,Saturation_Q277,Value_Q277,Alpha_Q277,HSV_Q277);\nfloat Result_Q260;\nCode_B260(Dot_Q222,Result_Q260);\nfloat AbsA_Q226=abs(Result_Q260);\nfloat MinAB_Q208=min(NotInShadow_Q217,NotInShadow_Q218);\nvec4 Sum_Q198=Reflected_Color_Q201+Reflected_Color_Q200;\nvec4 Sum_Q199=Indirect_Diffuse_Q201+Indirect_Color_Q200;\nvec3 HSV_Out_Q276;\nVaryHSV_B258(HSV_Q277,_Rim_Hue_Shift_,_Rim_Saturation_Shift_,_Rim_Value_Shift_,HSV_Out_Q276);\nfloat Out_Q264;\nRemap_Range_B264(-1.0,1.0,0.0,1.0,Result_Q260,Out_Q264);\nfloat Product_Q256;\nProduct_Q256=AbsA_Q226*_Hue_Shift_;\nfloat X_Q278;\nfloat Y_Q278;\nfloat Z_Q278;\nTo_XYZ_B224(HSV_Out_Q276,X_Q278,Y_Q278,Z_Q278);\nvec2 Vec2_Q262=vec2(Out_Q264,0.5);\nvec3 HSV_Out_Q258;\nVaryHSV_B258(HSV_Q225,Product_Q256,_Saturation_Shift_,_Value_Shift_,HSV_Out_Q258);\nvec4 Color_Q279;\nFrom_HSV_B223(X_Q278,Y_Q278,Z_Q278,0.0,Color_Q279);\nvec4 Color_Q261;\n#if IRIDESCENCE_ENABLED\nColor_Q261=texture(_Iridescence_Texture_,Vec2_Q262);\n#else\nColor_Q261=vec4(0,0,0,0);\n#endif\nfloat X_Q224;\nfloat Y_Q224;\nfloat Z_Q224;\nTo_XYZ_B224(HSV_Out_Q258,X_Q224,Y_Q224,Z_Q224);\nvec4 Result_Q281=_Rim_Intensity_*Color_Q279;\nvec4 Result_Q263=_Iridescence_Intensity_*Color_Q261;\nvec4 Color_Q223;\nFrom_HSV_B223(X_Q224,Y_Q224,Z_Q224,0.0,Color_Q223);\nvec4 Result_Q234=Result_Q241+(1.0-Result_Q241.a)*Color_Q223;\nvec4 Result_Q271;\nFragment_Main_B271(_Sun_Intensity_,_Sun_Theta_,_Sun_Phi_,New_Normal_Q229,Result_Q234,MaxAB_Q273,_Shininess_,Incident_Q189,_Horizon_Color_,_Sky_Color_,_Ground_Color_,_Indirect_Diffuse_,_Specular_,_Horizon_Power_,_Reflection_,Sum_Q198,Sum_Q199,_Sharpness_,Result_Q227,_Subsurface_,vec4(0,0,0,0),Result_Q281,Result_Q263,Result_Q271);\nvec4 Result_Q209;\nScale_RGB_B209(Result_Q271,MinAB_Q208,Result_Q209);\nvec4 sRGB_Q192;\nFastLinearTosRGB_B192(Result_Q209,sRGB_Q192);\nvec4 Result_Q181=Blob_Color_Q180+(1.0-Blob_Color_Q180.a)*sRGB_Q192;\nvec4 Result_Q190=Result_Q181; Result_Q190.a=1.0;\nvec4 Out_Color=Result_Q190;\nfloat Clip_Threshold=0.001;\nbool To_sRGB=false;\ngl_FragColor=Out_Color;\n}";
|
|
27680
27425
|
// Sideeffect
|
|
27681
27426
|
core_Engines_shaderStore__WEBPACK_IMPORTED_MODULE_0__.ShaderStore.ShadersStore[name] = shader;
|
|
27682
|
-
/** @
|
|
27427
|
+
/** @internal */
|
|
27683
27428
|
var mrdlSliderThumbPixelShader = { name: name, shader: shader };
|
|
27684
27429
|
|
|
27685
27430
|
|
|
@@ -27703,7 +27448,7 @@ var name = "mrdlSliderThumbVertexShader";
|
|
|
27703
27448
|
var shader = "uniform mat4 world;\nuniform mat4 viewProjection;\nuniform vec3 cameraPosition;\nattribute vec3 position;\nattribute vec3 normal;\nattribute vec2 uv;\n#ifdef TANGENT\nattribute vec3 tangent;\n#else\nconst vec3 tangent=vec3(0.);\n#endif\nuniform float _Radius_;\nuniform float _Bevel_Front_;\nuniform float _Bevel_Front_Stretch_;\nuniform float _Bevel_Back_;\nuniform float _Bevel_Back_Stretch_;\nuniform float _Radius_Top_Left_;\nuniform float _Radius_Top_Right_;\nuniform float _Radius_Bottom_Left_;\nuniform float _Radius_Bottom_Right_;\nuniform bool _Bulge_Enabled_;\nuniform float _Bulge_Height_;\nuniform float _Bulge_Radius_;\nuniform float _Sun_Intensity_;\nuniform float _Sun_Theta_;\nuniform float _Sun_Phi_;\nuniform float _Indirect_Diffuse_;\nuniform vec4 _Albedo_;\nuniform float _Specular_;\nuniform float _Shininess_;\nuniform float _Sharpness_;\nuniform float _Subsurface_;\nuniform vec4 _Left_Color_;\nuniform vec4 _Right_Color_;\nuniform float _Reflection_;\nuniform float _Front_Reflect_;\nuniform float _Edge_Reflect_;\nuniform float _Power_;\nuniform vec4 _Sky_Color_;\nuniform vec4 _Horizon_Color_;\nuniform vec4 _Ground_Color_;\nuniform float _Horizon_Power_;\nuniform sampler2D _Reflection_Map_;\nuniform sampler2D _Indirect_Environment_;\nuniform float _Width_;\nuniform float _Fuzz_;\nuniform float _Min_Fuzz_;\nuniform float _Clip_Fade_;\nuniform float _Hue_Shift_;\nuniform float _Saturation_Shift_;\nuniform float _Value_Shift_;\nuniform vec3 _Blob_Position_;\nuniform float _Blob_Intensity_;\nuniform float _Blob_Near_Size_;\nuniform float _Blob_Far_Size_;\nuniform float _Blob_Near_Distance_;\nuniform float _Blob_Far_Distance_;\nuniform float _Blob_Fade_Length_;\nuniform float _Blob_Pulse_;\nuniform float _Blob_Fade_;\nuniform sampler2D _Blob_Texture_;\nuniform vec3 _Blob_Position_2_;\nuniform float _Blob_Near_Size_2_;\nuniform float _Blob_Pulse_2_;\nuniform float _Blob_Fade_2_;\nuniform vec3 _Left_Index_Pos_;\nuniform vec3 _Right_Index_Pos_;\nuniform vec3 _Left_Index_Middle_Pos_;\nuniform vec3 _Right_Index_Middle_Pos_;\nuniform sampler2D _Decal_;\nuniform vec2 _Decal_Scale_XY_;\nuniform bool _Decal_Front_Only_;\nuniform float _Rim_Intensity_;\nuniform sampler2D _Rim_Texture_;\nuniform float _Rim_Hue_Shift_;\nuniform float _Rim_Saturation_Shift_;\nuniform float _Rim_Value_Shift_;\nuniform float _Iridescence_Intensity_;\nuniform sampler2D _Iridescence_Texture_;\nuniform bool Use_Global_Left_Index;\nuniform bool Use_Global_Right_Index;\nuniform vec4 Global_Left_Index_Tip_Position;\nuniform vec4 Global_Right_Index_Tip_Position;\nuniform vec4 Global_Left_Thumb_Tip_Position;\nuniform vec4 Global_Right_Thumb_Tip_Position;\nuniform float Global_Left_Index_Tip_Proximity;\nuniform float Global_Right_Index_Tip_Proximity;\nvarying vec3 vPosition;\nvarying vec3 vNormal;\nvarying vec2 vUV;\nvarying vec3 vTangent;\nvarying vec3 vBinormal;\nvarying vec4 vColor;\nvarying vec4 vExtra1;\nvarying vec4 vExtra2;\nvarying vec4 vExtra3;\nvoid Object_To_World_Pos_B162(\nvec3 Pos_Object,\nout vec3 Pos_World)\n{\nPos_World=(world*vec4(Pos_Object,1.0)).xyz;\n}\nvoid Object_To_World_Normal_B182(\nvec3 Nrm_Object,\nout vec3 Nrm_World)\n{\nNrm_World=(vec4(Nrm_Object,0.0)).xyz;\n}\nvoid Blob_Vertex_B173(\nvec3 Position,\nvec3 Normal,\nvec3 Tangent,\nvec3 Bitangent,\nvec3 Blob_Position,\nfloat Intensity,\nfloat Blob_Near_Size,\nfloat Blob_Far_Size,\nfloat Blob_Near_Distance,\nfloat Blob_Far_Distance,\nfloat Blob_Fade_Length,\nfloat Blob_Pulse,\nfloat Blob_Fade,\nout vec4 Blob_Info)\n{\nvec3 blob= (Use_Global_Left_Index ? Global_Left_Index_Tip_Position.xyz : Blob_Position);\nvec3 delta=blob-Position;\nfloat dist=dot(Normal,delta);\nfloat lerpValue=clamp((abs(dist)-Blob_Near_Distance)/(Blob_Far_Distance-Blob_Near_Distance),0.0,1.0);\nfloat fadeValue=1.0-clamp((abs(dist)-Blob_Far_Distance)/Blob_Fade_Length,0.0,1.0);\nfloat size=Blob_Near_Size+(Blob_Far_Size-Blob_Near_Size)*lerpValue;\nvec2 blobXY=vec2(dot(delta,Tangent),dot(delta,Bitangent))/(0.0001+size);\nfloat Fade=fadeValue*Intensity*Blob_Fade;\nfloat Distance=(lerpValue*0.5+0.5)*(1.0-Blob_Pulse);\nBlob_Info=vec4(blobXY.x,blobXY.y,Distance,Fade);\n}\nvoid Blob_Vertex_B174(\nvec3 Position,\nvec3 Normal,\nvec3 Tangent,\nvec3 Bitangent,\nvec3 Blob_Position,\nfloat Intensity,\nfloat Blob_Near_Size,\nfloat Blob_Far_Size,\nfloat Blob_Near_Distance,\nfloat Blob_Far_Distance,\nfloat Blob_Fade_Length,\nfloat Blob_Pulse,\nfloat Blob_Fade,\nout vec4 Blob_Info)\n{\nvec3 blob= (Use_Global_Right_Index ? Global_Right_Index_Tip_Position.xyz : Blob_Position);\nvec3 delta=blob-Position;\nfloat dist=dot(Normal,delta);\nfloat lerpValue=clamp((abs(dist)-Blob_Near_Distance)/(Blob_Far_Distance-Blob_Near_Distance),0.0,1.0);\nfloat fadeValue=1.0-clamp((abs(dist)-Blob_Far_Distance)/Blob_Fade_Length,0.0,1.0);\nfloat size=Blob_Near_Size+(Blob_Far_Size-Blob_Near_Size)*lerpValue;\nvec2 blobXY=vec2(dot(delta,Tangent),dot(delta,Bitangent))/(0.0001+size);\nfloat Fade=fadeValue*Intensity*Blob_Fade;\nfloat Distance=(lerpValue*0.5+0.5)*(1.0-Blob_Pulse);\nBlob_Info=vec4(blobXY.x,blobXY.y,Distance,Fade);\n}\nvoid Move_Verts_B280(\nfloat Anisotropy,\nvec3 P,\nfloat Radius,\nfloat Bevel,\nvec3 Normal_Object,\nfloat ScaleZ,\nfloat Stretch,\nout vec3 New_P,\nout vec2 New_UV,\nout float Radial_Gradient,\nout vec3 Radial_Dir,\nout vec3 New_Normal)\n{\nvec2 UV=P.xy*2.0+0.5;\nvec2 center=clamp(UV,0.0,1.0);\nvec2 delta=UV-center;\nfloat deltad=(length(delta)*2.0);\nfloat f=(Bevel+(Radius-Bevel)*Stretch)/Radius;\nfloat innerd=clamp(deltad*2.0,0.0,1.0);\nfloat outerd=clamp(deltad*2.0-1.0,0.0,1.0);\nfloat bevelAngle=outerd*3.14159*0.5;\nfloat sinb=sin(bevelAngle);\nfloat cosb=cos(bevelAngle);\nfloat beveld=(1.0-f)*innerd+f*sinb;\nfloat br=outerd;\nvec2 r2=2.0*vec2(Radius/Anisotropy,Radius);\nfloat dir=P.z<0.0001 ? 1.0 : -1.0;\nNew_UV=center+r2*((0.5-center)+normalize(delta+vec2(0.0,0.000001))*beveld*0.5);\nNew_P=vec3(New_UV-0.5,P.z+dir*(1.0-cosb)*Bevel*ScaleZ);\nRadial_Gradient=clamp((deltad-0.5)*2.0,0.0,1.0);\nRadial_Dir=vec3(delta*r2,0.0);\nvec3 beveledNormal=cosb*Normal_Object+sinb*vec3(delta.x,delta.y,0.0);\nNew_Normal=Normal_Object.z==0.0 ? Normal_Object : beveledNormal;\n}\nvoid Object_To_World_Dir_B210(\nvec3 Dir_Object,\nout vec3 Normal_World,\nout vec3 Normal_World_N,\nout float Normal_Length)\n{\nNormal_World=(world*vec4(Dir_Object,0.0)).xyz;\nNormal_Length=length(Normal_World);\nNormal_World_N=Normal_World/Normal_Length;\n}\nvoid To_XYZ_B228(\nvec3 Vec3,\nout float X,\nout float Y,\nout float Z)\n{\nX=Vec3.x;\nY=Vec3.y;\nZ=Vec3.z;\n}\nvoid Conditional_Float_B243(\nbool Which,\nfloat If_True,\nfloat If_False,\nout float Result)\n{\nResult=Which ? If_True : If_False;\n}\nvoid Object_To_World_Dir_B178(\nvec3 Dir_Object,\nout vec3 Binormal_World,\nout vec3 Binormal_World_N,\nout float Binormal_Length)\n{\nBinormal_World=(world*vec4(Dir_Object,0.0)).xyz;\nBinormal_Length=length(Binormal_World);\nBinormal_World_N=Binormal_World/Binormal_Length;\n}\nvoid Pick_Radius_B219(\nfloat Radius,\nfloat Radius_Top_Left,\nfloat Radius_Top_Right,\nfloat Radius_Bottom_Left,\nfloat Radius_Bottom_Right,\nvec3 Position,\nout float Result)\n{\nbool whichY=Position.y>0.0;\nResult=Position.x<0.0 ? (whichY ? Radius_Top_Left : Radius_Bottom_Left) : (whichY ? Radius_Top_Right : Radius_Bottom_Right);\nResult*=Radius;\n}\nvoid Conditional_Float_B186(\nbool Which,\nfloat If_True,\nfloat If_False,\nout float Result)\n{\nResult=Which ? If_True : If_False;\n}\nvoid Greater_Than_B187(\nfloat Left,\nfloat Right,\nout bool Not_Greater_Than,\nout bool Greater_Than)\n{\nGreater_Than=Left>Right;\nNot_Greater_Than=!Greater_Than;\n}\nvoid Remap_Range_B255(\nfloat In_Min,\nfloat In_Max,\nfloat Out_Min,\nfloat Out_Max,\nfloat In,\nout float Out)\n{\nOut=mix(Out_Min,Out_Max,clamp((In-In_Min)/(In_Max-In_Min),0.0,1.0));\n}\nvoid main()\n{\nvec2 XY_Q235;\nXY_Q235=(uv-vec2(0.5,0.5))*_Decal_Scale_XY_+vec2(0.5,0.5);\nvec3 Tangent_World_Q177;\nvec3 Tangent_World_N_Q177;\nfloat Tangent_Length_Q177;\nTangent_World_Q177=(world*vec4(vec3(1,0,0),0.0)).xyz;\nTangent_Length_Q177=length(Tangent_World_Q177);\nTangent_World_N_Q177=Tangent_World_Q177/Tangent_Length_Q177;\nvec3 Normal_World_Q210;\nvec3 Normal_World_N_Q210;\nfloat Normal_Length_Q210;\nObject_To_World_Dir_B210(vec3(0,0,1),Normal_World_Q210,Normal_World_N_Q210,Normal_Length_Q210);\nfloat X_Q228;\nfloat Y_Q228;\nfloat Z_Q228;\nTo_XYZ_B228(position,X_Q228,Y_Q228,Z_Q228);\nvec3 Nrm_World_Q176;\nNrm_World_Q176=normalize((world*vec4(normal,0.0)).xyz);\nvec3 Binormal_World_Q178;\nvec3 Binormal_World_N_Q178;\nfloat Binormal_Length_Q178;\nObject_To_World_Dir_B178(vec3(0,1,0),Binormal_World_Q178,Binormal_World_N_Q178,Binormal_Length_Q178);\nfloat Anisotropy_Q179=Tangent_Length_Q177/Binormal_Length_Q178;\nfloat Result_Q219;\nPick_Radius_B219(_Radius_,_Radius_Top_Left_,_Radius_Top_Right_,_Radius_Bottom_Left_,_Radius_Bottom_Right_,position,Result_Q219);\nfloat Anisotropy_Q203=Binormal_Length_Q178/Normal_Length_Q210;\nbool Not_Greater_Than_Q187;\nbool Greater_Than_Q187;\nGreater_Than_B187(Z_Q228,0.0,Not_Greater_Than_Q187,Greater_Than_Q187);\nvec4 Linear_Q251;\nLinear_Q251.rgb=clamp(_Left_Color_.rgb*_Left_Color_.rgb,0.0,1.0);\nLinear_Q251.a=_Left_Color_.a;\nvec4 Linear_Q252;\nLinear_Q252.rgb=clamp(_Right_Color_.rgb*_Right_Color_.rgb,0.0,1.0);\nLinear_Q252.a=_Right_Color_.a;\nvec3 Difference_Q211=vec3(0,0,0)-Normal_World_N_Q210;\nvec4 Out_Color_Q184=vec4(X_Q228,Y_Q228,Z_Q228,1);\nfloat Result_Q186;\nConditional_Float_B186(Greater_Than_Q187,_Bevel_Back_,_Bevel_Front_,Result_Q186);\nfloat Result_Q244;\nConditional_Float_B186(Greater_Than_Q187,_Bevel_Back_Stretch_,_Bevel_Front_Stretch_,Result_Q244);\nvec3 New_P_Q280;\nvec2 New_UV_Q280;\nfloat Radial_Gradient_Q280;\nvec3 Radial_Dir_Q280;\nvec3 New_Normal_Q280;\nMove_Verts_B280(Anisotropy_Q179,position,Result_Q219,Result_Q186,normal,Anisotropy_Q203,Result_Q244,New_P_Q280,New_UV_Q280,Radial_Gradient_Q280,Radial_Dir_Q280,New_Normal_Q280);\nfloat X_Q248;\nfloat Y_Q248;\nX_Q248=New_UV_Q280.x;\nY_Q248=New_UV_Q280.y;\nvec3 Pos_World_Q162;\nObject_To_World_Pos_B162(New_P_Q280,Pos_World_Q162);\nvec3 Nrm_World_Q182;\nObject_To_World_Normal_B182(New_Normal_Q280,Nrm_World_Q182);\nvec4 Blob_Info_Q173;\n#if BLOB_ENABLE\nBlob_Vertex_B173(Pos_World_Q162,Nrm_World_Q176,Tangent_World_N_Q177,Binormal_World_N_Q178,_Blob_Position_,_Blob_Intensity_,_Blob_Near_Size_,_Blob_Far_Size_,_Blob_Near_Distance_,_Blob_Far_Distance_,_Blob_Fade_Length_,_Blob_Pulse_,_Blob_Fade_,Blob_Info_Q173);\n#else\nBlob_Info_Q173=vec4(0,0,0,0);\n#endif\nvec4 Blob_Info_Q174;\n#if BLOB_ENABLE_2\nBlob_Vertex_B174(Pos_World_Q162,Nrm_World_Q176,Tangent_World_N_Q177,Binormal_World_N_Q178,_Blob_Position_2_,_Blob_Intensity_,_Blob_Near_Size_2_,_Blob_Far_Size_,_Blob_Near_Distance_,_Blob_Far_Distance_,_Blob_Fade_Length_,_Blob_Pulse_2_,_Blob_Fade_2_,Blob_Info_Q174);\n#else\nBlob_Info_Q174=vec4(0,0,0,0);\n#endif\nfloat Out_Q255;\nRemap_Range_B255(0.0,1.0,0.0,1.0,X_Q248,Out_Q255);\nfloat X_Q236;\nfloat Y_Q236;\nfloat Z_Q236;\nTo_XYZ_B228(Nrm_World_Q182,X_Q236,Y_Q236,Z_Q236);\nvec4 Color_At_T_Q247=mix(Linear_Q251,Linear_Q252,Out_Q255);\nfloat Minus_F_Q237=-Z_Q236;\nfloat R_Q249;\nfloat G_Q249;\nfloat B_Q249;\nfloat A_Q249;\nR_Q249=Color_At_T_Q247.r; G_Q249=Color_At_T_Q247.g; B_Q249=Color_At_T_Q247.b; A_Q249=Color_At_T_Q247.a;\nfloat ClampF_Q238=clamp(0.0,Minus_F_Q237,1.0);\nfloat Result_Q243;\nConditional_Float_B243(_Decal_Front_Only_,ClampF_Q238,1.0,Result_Q243);\nvec4 Vec4_Q239=vec4(Result_Q243,Radial_Gradient_Q280,G_Q249,B_Q249);\nvec3 Position=Pos_World_Q162;\nvec3 Normal=Nrm_World_Q182;\nvec2 UV=XY_Q235;\nvec3 Tangent=Tangent_World_N_Q177;\nvec3 Binormal=Difference_Q211;\nvec4 Color=Out_Color_Q184;\nvec4 Extra1=Vec4_Q239;\nvec4 Extra2=Blob_Info_Q173;\nvec4 Extra3=Blob_Info_Q174;\ngl_Position=viewProjection*vec4(Position,1);\nvPosition=Position;\nvNormal=Normal;\nvUV=UV;\nvTangent=Tangent;\nvBinormal=Binormal;\nvColor=Color;\nvExtra1=Extra1;\nvExtra2=Extra2;\nvExtra3=Extra3;\n}";
|
|
27704
27449
|
// Sideeffect
|
|
27705
27450
|
core_Engines_shaderStore__WEBPACK_IMPORTED_MODULE_0__.ShaderStore.ShadersStore[name] = shader;
|
|
27706
|
-
/** @
|
|
27451
|
+
/** @internal */
|
|
27707
27452
|
var mrdlSliderThumbVertexShader = { name: name, shader: shader };
|
|
27708
27453
|
|
|
27709
27454
|
|