babylonjs-gui 5.24.0 → 5.26.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 +273 -520
- package/babylon.gui.js +274 -514
- package/babylon.gui.js.map +1 -1
- package/babylon.gui.min.js +1 -1
- package/babylon.gui.min.js.map +1 -1
- package/babylon.gui.module.d.ts +547 -1040
- 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;
|
|
@@ -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,14 +1302,28 @@ 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);
|
|
1318
1309
|
this._cleanControlAfterRemovalFromList(this._lastControlOver, control);
|
|
1319
1310
|
};
|
|
1320
|
-
|
|
1311
|
+
/**
|
|
1312
|
+
* This function will run a pointer event on this ADT and will trigger any pointer events on any controls
|
|
1313
|
+
* This will work on a fullscreen ADT only. For mesh based ADT, simulate pointer events using the scene directly.
|
|
1314
|
+
* @param x pointer X on the canvas for the picking
|
|
1315
|
+
* @param y pointer Y on the canvas for the picking
|
|
1316
|
+
* @param pi optional pointer information
|
|
1317
|
+
*/
|
|
1318
|
+
AdvancedDynamicTexture.prototype.pick = function (x, y, pi) {
|
|
1319
|
+
if (pi === void 0) { pi = null; }
|
|
1320
|
+
if (this._isFullscreen && this._scene) {
|
|
1321
|
+
this._translateToPicking(this._scene, new core_Misc_observable__WEBPACK_IMPORTED_MODULE_1__.Viewport(0, 0, 0, 0), pi, x, y);
|
|
1322
|
+
}
|
|
1323
|
+
};
|
|
1324
|
+
AdvancedDynamicTexture.prototype._translateToPicking = function (scene, tempViewport, pi, x, y) {
|
|
1325
|
+
if (x === void 0) { x = scene.pointerX; }
|
|
1326
|
+
if (y === void 0) { y = scene.pointerY; }
|
|
1321
1327
|
var camera = scene.cameraToUseForPointers || scene.activeCamera;
|
|
1322
1328
|
var engine = scene.getEngine();
|
|
1323
1329
|
var originalCameraToUseForPointers = scene.cameraToUseForPointers;
|
|
@@ -1334,10 +1340,10 @@ var AdvancedDynamicTexture = /** @class */ (function (_super) {
|
|
|
1334
1340
|
camera.rigCameras.forEach(function (rigCamera) {
|
|
1335
1341
|
// generate the viewport of this camera
|
|
1336
1342
|
rigCamera.viewport.toGlobalToRef(engine.getRenderWidth(), engine.getRenderHeight(), rigViewport_1);
|
|
1337
|
-
var
|
|
1338
|
-
var
|
|
1343
|
+
var transformedX = x / engine.getHardwareScalingLevel() - rigViewport_1.x;
|
|
1344
|
+
var transformedY = y / engine.getHardwareScalingLevel() - (engine.getRenderHeight() - rigViewport_1.y - rigViewport_1.height);
|
|
1339
1345
|
// check if the pointer is in the camera's viewport
|
|
1340
|
-
if (
|
|
1346
|
+
if (transformedX < 0 || transformedY < 0 || x > rigViewport_1.width || y > rigViewport_1.height) {
|
|
1341
1347
|
// out of viewport - don't use this camera
|
|
1342
1348
|
return;
|
|
1343
1349
|
}
|
|
@@ -1354,20 +1360,20 @@ var AdvancedDynamicTexture = /** @class */ (function (_super) {
|
|
|
1354
1360
|
camera.viewport.toGlobalToRef(engine.getRenderWidth(), engine.getRenderHeight(), tempViewport);
|
|
1355
1361
|
}
|
|
1356
1362
|
}
|
|
1357
|
-
var
|
|
1358
|
-
var
|
|
1363
|
+
var transformedX = x / engine.getHardwareScalingLevel() - tempViewport.x;
|
|
1364
|
+
var transformedY = y / engine.getHardwareScalingLevel() - (engine.getRenderHeight() - tempViewport.y - tempViewport.height);
|
|
1359
1365
|
this._shouldBlockPointer = false;
|
|
1360
1366
|
// Do picking modifies _shouldBlockPointer
|
|
1361
1367
|
if (pi) {
|
|
1362
1368
|
var pointerId = pi.event.pointerId || this._defaultMousePointerId;
|
|
1363
|
-
this._doPicking(
|
|
1369
|
+
this._doPicking(transformedX, transformedY, pi, pi.type, pointerId, pi.event.button, pi.event.deltaX, pi.event.deltaY);
|
|
1364
1370
|
// Avoid overwriting a true skipOnPointerObservable to false
|
|
1365
1371
|
if (this._shouldBlockPointer || this._capturingControl[pointerId]) {
|
|
1366
1372
|
pi.skipOnPointerObservable = true;
|
|
1367
1373
|
}
|
|
1368
1374
|
}
|
|
1369
1375
|
else {
|
|
1370
|
-
this._doPicking(
|
|
1376
|
+
this._doPicking(transformedX, transformedY, null, core_Misc_observable__WEBPACK_IMPORTED_MODULE_1__.PointerEventTypes.POINTERMOVE, this._defaultMousePointerId, 0);
|
|
1371
1377
|
}
|
|
1372
1378
|
// if overridden by a rig camera - reset back to the original value
|
|
1373
1379
|
scene.cameraToUseForPointers = originalCameraToUseForPointers;
|
|
@@ -1980,15 +1986,7 @@ var Button = /** @class */ (function (_super) {
|
|
|
1980
1986
|
};
|
|
1981
1987
|
// While being a container, the button behaves like a control.
|
|
1982
1988
|
/**
|
|
1983
|
-
* @
|
|
1984
|
-
* @param y
|
|
1985
|
-
* @param pi
|
|
1986
|
-
* @param type
|
|
1987
|
-
* @param pointerId
|
|
1988
|
-
* @param buttonIndex
|
|
1989
|
-
* @param deltaX
|
|
1990
|
-
* @param deltaY
|
|
1991
|
-
* @hidden
|
|
1989
|
+
* @internal
|
|
1992
1990
|
*/
|
|
1993
1991
|
Button.prototype._processPicking = function (x, y, pi, type, pointerId, buttonIndex, deltaX, deltaY) {
|
|
1994
1992
|
if (!this._isEnabled || !this.isHitTestVisible || !this.isVisible || this.notRenderable) {
|
|
@@ -2014,9 +2012,7 @@ var Button = /** @class */ (function (_super) {
|
|
|
2014
2012
|
return true;
|
|
2015
2013
|
};
|
|
2016
2014
|
/**
|
|
2017
|
-
* @
|
|
2018
|
-
* @param pi
|
|
2019
|
-
* @hidden
|
|
2015
|
+
* @internal
|
|
2020
2016
|
*/
|
|
2021
2017
|
Button.prototype._onPointerEnter = function (target, pi) {
|
|
2022
2018
|
if (!_super.prototype._onPointerEnter.call(this, target, pi)) {
|
|
@@ -2028,10 +2024,7 @@ var Button = /** @class */ (function (_super) {
|
|
|
2028
2024
|
return true;
|
|
2029
2025
|
};
|
|
2030
2026
|
/**
|
|
2031
|
-
* @
|
|
2032
|
-
* @param pi
|
|
2033
|
-
* @param force
|
|
2034
|
-
* @hidden
|
|
2027
|
+
* @internal
|
|
2035
2028
|
*/
|
|
2036
2029
|
Button.prototype._onPointerOut = function (target, pi, force) {
|
|
2037
2030
|
if (force === void 0) { force = false; }
|
|
@@ -2041,12 +2034,7 @@ var Button = /** @class */ (function (_super) {
|
|
|
2041
2034
|
_super.prototype._onPointerOut.call(this, target, pi, force);
|
|
2042
2035
|
};
|
|
2043
2036
|
/**
|
|
2044
|
-
* @
|
|
2045
|
-
* @param coordinates
|
|
2046
|
-
* @param pointerId
|
|
2047
|
-
* @param buttonIndex
|
|
2048
|
-
* @param pi
|
|
2049
|
-
* @hidden
|
|
2037
|
+
* @internal
|
|
2050
2038
|
*/
|
|
2051
2039
|
Button.prototype._onPointerDown = function (target, coordinates, pointerId, buttonIndex, pi) {
|
|
2052
2040
|
if (!_super.prototype._onPointerDown.call(this, target, coordinates, pointerId, buttonIndex, pi)) {
|
|
@@ -2058,13 +2046,7 @@ var Button = /** @class */ (function (_super) {
|
|
|
2058
2046
|
return true;
|
|
2059
2047
|
};
|
|
2060
2048
|
/**
|
|
2061
|
-
* @
|
|
2062
|
-
* @param coordinates
|
|
2063
|
-
* @param pointerId
|
|
2064
|
-
* @param buttonIndex
|
|
2065
|
-
* @param notifyClick
|
|
2066
|
-
* @param pi
|
|
2067
|
-
* @hidden
|
|
2049
|
+
* @internal
|
|
2068
2050
|
*/
|
|
2069
2051
|
Button.prototype._onPointerUp = function (target, coordinates, pointerId, buttonIndex, notifyClick, pi) {
|
|
2070
2052
|
if (!this.isReadOnly && this.pointerUpAnimation) {
|
|
@@ -2086,9 +2068,7 @@ var Button = /** @class */ (function (_super) {
|
|
|
2086
2068
|
}
|
|
2087
2069
|
};
|
|
2088
2070
|
/**
|
|
2089
|
-
* @
|
|
2090
|
-
* @param host
|
|
2091
|
-
* @hidden
|
|
2071
|
+
* @internal
|
|
2092
2072
|
*/
|
|
2093
2073
|
Button.prototype._parseFromContent = function (serializedObject, host) {
|
|
2094
2074
|
_super.prototype._parseFromContent.call(this, serializedObject, host);
|
|
@@ -2303,8 +2283,7 @@ var Checkbox = /** @class */ (function (_super) {
|
|
|
2303
2283
|
return "Checkbox";
|
|
2304
2284
|
};
|
|
2305
2285
|
/**
|
|
2306
|
-
* @
|
|
2307
|
-
* @hidden
|
|
2286
|
+
* @internal
|
|
2308
2287
|
*/
|
|
2309
2288
|
Checkbox.prototype._draw = function (context) {
|
|
2310
2289
|
context.save();
|
|
@@ -2337,12 +2316,7 @@ var Checkbox = /** @class */ (function (_super) {
|
|
|
2337
2316
|
};
|
|
2338
2317
|
// Events
|
|
2339
2318
|
/**
|
|
2340
|
-
* @
|
|
2341
|
-
* @param coordinates
|
|
2342
|
-
* @param pointerId
|
|
2343
|
-
* @param buttonIndex
|
|
2344
|
-
* @param pi
|
|
2345
|
-
* @hidden
|
|
2319
|
+
* @internal
|
|
2346
2320
|
*/
|
|
2347
2321
|
Checkbox.prototype._onPointerDown = function (target, coordinates, pointerId, buttonIndex, pi) {
|
|
2348
2322
|
if (!_super.prototype._onPointerDown.call(this, target, coordinates, pointerId, buttonIndex, pi)) {
|
|
@@ -2564,8 +2538,7 @@ var ColorPicker = /** @class */ (function (_super) {
|
|
|
2564
2538
|
return "ColorPicker";
|
|
2565
2539
|
};
|
|
2566
2540
|
/**
|
|
2567
|
-
* @
|
|
2568
|
-
* @hidden
|
|
2541
|
+
* @internal
|
|
2569
2542
|
*/
|
|
2570
2543
|
ColorPicker.prototype._preMeasure = function (parentMeasure) {
|
|
2571
2544
|
if (parentMeasure.width < parentMeasure.height) {
|
|
@@ -2668,8 +2641,7 @@ var ColorPicker = /** @class */ (function (_super) {
|
|
|
2668
2641
|
return canvas;
|
|
2669
2642
|
};
|
|
2670
2643
|
/**
|
|
2671
|
-
* @
|
|
2672
|
-
* @hidden
|
|
2644
|
+
* @internal
|
|
2673
2645
|
*/
|
|
2674
2646
|
ColorPicker.prototype._draw = function (context) {
|
|
2675
2647
|
context.save();
|
|
@@ -3876,19 +3848,19 @@ var Container = /** @class */ (function (_super) {
|
|
|
3876
3848
|
function Container(name) {
|
|
3877
3849
|
var _this = _super.call(this, name) || this;
|
|
3878
3850
|
_this.name = name;
|
|
3879
|
-
/** @
|
|
3851
|
+
/** @internal */
|
|
3880
3852
|
_this._children = new Array();
|
|
3881
|
-
/** @
|
|
3853
|
+
/** @internal */
|
|
3882
3854
|
_this._measureForChildren = _measure__WEBPACK_IMPORTED_MODULE_3__.Measure.Empty();
|
|
3883
|
-
/** @
|
|
3855
|
+
/** @internal */
|
|
3884
3856
|
_this._background = "";
|
|
3885
|
-
/** @
|
|
3857
|
+
/** @internal */
|
|
3886
3858
|
_this._adaptWidthToChildren = false;
|
|
3887
|
-
/** @
|
|
3859
|
+
/** @internal */
|
|
3888
3860
|
_this._adaptHeightToChildren = false;
|
|
3889
|
-
/** @
|
|
3861
|
+
/** @internal */
|
|
3890
3862
|
_this._renderToIntermediateTexture = false;
|
|
3891
|
-
/** @
|
|
3863
|
+
/** @internal */
|
|
3892
3864
|
_this._intermediateTexture = null;
|
|
3893
3865
|
/**
|
|
3894
3866
|
* Gets or sets a boolean indicating that layout cycle errors should be displayed on the console
|
|
@@ -4085,8 +4057,7 @@ var Container = /** @class */ (function (_super) {
|
|
|
4085
4057
|
return this;
|
|
4086
4058
|
};
|
|
4087
4059
|
/**
|
|
4088
|
-
* @
|
|
4089
|
-
* @hidden
|
|
4060
|
+
* @internal
|
|
4090
4061
|
*/
|
|
4091
4062
|
Container.prototype._reOrderControl = function (control) {
|
|
4092
4063
|
var linkedMesh = control.linkedMesh;
|
|
@@ -4109,8 +4080,7 @@ var Container = /** @class */ (function (_super) {
|
|
|
4109
4080
|
this._markAsDirty();
|
|
4110
4081
|
};
|
|
4111
4082
|
/**
|
|
4112
|
-
* @
|
|
4113
|
-
* @hidden
|
|
4083
|
+
* @internal
|
|
4114
4084
|
*/
|
|
4115
4085
|
Container.prototype._offsetLeft = function (offset) {
|
|
4116
4086
|
_super.prototype._offsetLeft.call(this, offset);
|
|
@@ -4120,8 +4090,7 @@ var Container = /** @class */ (function (_super) {
|
|
|
4120
4090
|
}
|
|
4121
4091
|
};
|
|
4122
4092
|
/**
|
|
4123
|
-
* @
|
|
4124
|
-
* @hidden
|
|
4093
|
+
* @internal
|
|
4125
4094
|
*/
|
|
4126
4095
|
Container.prototype._offsetTop = function (offset) {
|
|
4127
4096
|
_super.prototype._offsetTop.call(this, offset);
|
|
@@ -4130,7 +4099,7 @@ var Container = /** @class */ (function (_super) {
|
|
|
4130
4099
|
child._offsetTop(offset);
|
|
4131
4100
|
}
|
|
4132
4101
|
};
|
|
4133
|
-
/** @
|
|
4102
|
+
/** @internal */
|
|
4134
4103
|
Container.prototype._markAllAsDirty = function () {
|
|
4135
4104
|
_super.prototype._markAllAsDirty.call(this);
|
|
4136
4105
|
for (var index = 0; index < this._children.length; index++) {
|
|
@@ -4138,8 +4107,7 @@ var Container = /** @class */ (function (_super) {
|
|
|
4138
4107
|
}
|
|
4139
4108
|
};
|
|
4140
4109
|
/**
|
|
4141
|
-
* @
|
|
4142
|
-
* @hidden
|
|
4110
|
+
* @internal
|
|
4143
4111
|
*/
|
|
4144
4112
|
Container.prototype._localDraw = function (context) {
|
|
4145
4113
|
if (this._background) {
|
|
@@ -4156,8 +4124,7 @@ var Container = /** @class */ (function (_super) {
|
|
|
4156
4124
|
}
|
|
4157
4125
|
};
|
|
4158
4126
|
/**
|
|
4159
|
-
* @
|
|
4160
|
-
* @hidden
|
|
4127
|
+
* @internal
|
|
4161
4128
|
*/
|
|
4162
4129
|
Container.prototype._link = function (host) {
|
|
4163
4130
|
_super.prototype._link.call(this, host);
|
|
@@ -4166,14 +4133,12 @@ var Container = /** @class */ (function (_super) {
|
|
|
4166
4133
|
child._link(host);
|
|
4167
4134
|
}
|
|
4168
4135
|
};
|
|
4169
|
-
/** @
|
|
4136
|
+
/** @internal */
|
|
4170
4137
|
Container.prototype._beforeLayout = function () {
|
|
4171
4138
|
// Do nothing
|
|
4172
4139
|
};
|
|
4173
4140
|
/**
|
|
4174
|
-
* @
|
|
4175
|
-
* @param context
|
|
4176
|
-
* @hidden
|
|
4141
|
+
* @internal
|
|
4177
4142
|
*/
|
|
4178
4143
|
Container.prototype._processMeasures = function (parentMeasure, context) {
|
|
4179
4144
|
if (this._isDirty || !this._cachedParentMeasure.isEqualsTo(parentMeasure)) {
|
|
@@ -4195,9 +4160,7 @@ var Container = /** @class */ (function (_super) {
|
|
|
4195
4160
|
}
|
|
4196
4161
|
};
|
|
4197
4162
|
/**
|
|
4198
|
-
* @
|
|
4199
|
-
* @param context
|
|
4200
|
-
* @hidden
|
|
4163
|
+
* @internal
|
|
4201
4164
|
*/
|
|
4202
4165
|
Container.prototype._layout = function (parentMeasure, context) {
|
|
4203
4166
|
var _a, _b;
|
|
@@ -4268,9 +4231,7 @@ var Container = /** @class */ (function (_super) {
|
|
|
4268
4231
|
// Do nothing by default
|
|
4269
4232
|
};
|
|
4270
4233
|
/**
|
|
4271
|
-
* @
|
|
4272
|
-
* @param invalidatedRectangle
|
|
4273
|
-
* @hidden
|
|
4234
|
+
* @internal
|
|
4274
4235
|
*/
|
|
4275
4236
|
Container.prototype._draw = function (context, invalidatedRectangle) {
|
|
4276
4237
|
var renderToIntermediateTextureThisDraw = this._renderToIntermediateTexture && this._intermediateTexture;
|
|
@@ -4325,15 +4286,7 @@ var Container = /** @class */ (function (_super) {
|
|
|
4325
4286
|
}
|
|
4326
4287
|
};
|
|
4327
4288
|
/**
|
|
4328
|
-
* @
|
|
4329
|
-
* @param y
|
|
4330
|
-
* @param pi
|
|
4331
|
-
* @param type
|
|
4332
|
-
* @param pointerId
|
|
4333
|
-
* @param buttonIndex
|
|
4334
|
-
* @param deltaX
|
|
4335
|
-
* @param deltaY
|
|
4336
|
-
* @hidden
|
|
4289
|
+
* @internal
|
|
4337
4290
|
*/
|
|
4338
4291
|
Container.prototype._processPicking = function (x, y, pi, type, pointerId, buttonIndex, deltaX, deltaY) {
|
|
4339
4292
|
if (!this._isEnabled || !this.isVisible || this.notRenderable) {
|
|
@@ -4364,9 +4317,7 @@ var Container = /** @class */ (function (_super) {
|
|
|
4364
4317
|
return this._processObservables(type, x, y, pi, pointerId, buttonIndex, deltaX, deltaY);
|
|
4365
4318
|
};
|
|
4366
4319
|
/**
|
|
4367
|
-
* @
|
|
4368
|
-
* @param context
|
|
4369
|
-
* @hidden
|
|
4320
|
+
* @internal
|
|
4370
4321
|
*/
|
|
4371
4322
|
Container.prototype._additionalProcessing = function (parentMeasure, context) {
|
|
4372
4323
|
_super.prototype._additionalProcessing.call(this, parentMeasure, context);
|
|
@@ -4399,9 +4350,7 @@ var Container = /** @class */ (function (_super) {
|
|
|
4399
4350
|
(_a = this._intermediateTexture) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
4400
4351
|
};
|
|
4401
4352
|
/**
|
|
4402
|
-
* @
|
|
4403
|
-
* @param host
|
|
4404
|
-
* @hidden
|
|
4353
|
+
* @internal
|
|
4405
4354
|
*/
|
|
4406
4355
|
Container.prototype._parseFromContent = function (serializedObject, host) {
|
|
4407
4356
|
_super.prototype._parseFromContent.call(this, serializedObject, host);
|
|
@@ -4482,53 +4431,53 @@ var Control = /** @class */ (function () {
|
|
|
4482
4431
|
this._alpha = 1;
|
|
4483
4432
|
this._alphaSet = false;
|
|
4484
4433
|
this._zIndex = 0;
|
|
4485
|
-
/** @
|
|
4434
|
+
/** @internal */
|
|
4486
4435
|
this._currentMeasure = _measure__WEBPACK_IMPORTED_MODULE_3__.Measure.Empty();
|
|
4487
|
-
/** @
|
|
4436
|
+
/** @internal */
|
|
4488
4437
|
this._tempPaddingMeasure = _measure__WEBPACK_IMPORTED_MODULE_3__.Measure.Empty();
|
|
4489
4438
|
this._fontFamily = "Arial";
|
|
4490
4439
|
this._fontStyle = "";
|
|
4491
4440
|
this._fontWeight = "";
|
|
4492
4441
|
this._fontSize = new _valueAndUnit__WEBPACK_IMPORTED_MODULE_2__.ValueAndUnit(18, _valueAndUnit__WEBPACK_IMPORTED_MODULE_2__.ValueAndUnit.UNITMODE_PIXEL, false);
|
|
4493
|
-
/** @
|
|
4442
|
+
/** @internal */
|
|
4494
4443
|
this._width = new _valueAndUnit__WEBPACK_IMPORTED_MODULE_2__.ValueAndUnit(1, _valueAndUnit__WEBPACK_IMPORTED_MODULE_2__.ValueAndUnit.UNITMODE_PERCENTAGE, false);
|
|
4495
|
-
/** @
|
|
4444
|
+
/** @internal */
|
|
4496
4445
|
this._height = new _valueAndUnit__WEBPACK_IMPORTED_MODULE_2__.ValueAndUnit(1, _valueAndUnit__WEBPACK_IMPORTED_MODULE_2__.ValueAndUnit.UNITMODE_PERCENTAGE, false);
|
|
4497
4446
|
this._color = "";
|
|
4498
4447
|
this._style = null;
|
|
4499
|
-
/** @
|
|
4448
|
+
/** @internal */
|
|
4500
4449
|
this._horizontalAlignment = Control.HORIZONTAL_ALIGNMENT_CENTER;
|
|
4501
|
-
/** @
|
|
4450
|
+
/** @internal */
|
|
4502
4451
|
this._verticalAlignment = Control.VERTICAL_ALIGNMENT_CENTER;
|
|
4503
|
-
/** @
|
|
4452
|
+
/** @internal */
|
|
4504
4453
|
this._isDirty = true;
|
|
4505
|
-
/** @
|
|
4454
|
+
/** @internal */
|
|
4506
4455
|
this._wasDirty = false;
|
|
4507
|
-
/** @
|
|
4456
|
+
/** @internal */
|
|
4508
4457
|
this._tempParentMeasure = _measure__WEBPACK_IMPORTED_MODULE_3__.Measure.Empty();
|
|
4509
|
-
/** @
|
|
4458
|
+
/** @internal */
|
|
4510
4459
|
this._prevCurrentMeasureTransformedIntoGlobalSpace = _measure__WEBPACK_IMPORTED_MODULE_3__.Measure.Empty();
|
|
4511
|
-
/** @
|
|
4460
|
+
/** @internal */
|
|
4512
4461
|
this._cachedParentMeasure = _measure__WEBPACK_IMPORTED_MODULE_3__.Measure.Empty();
|
|
4513
4462
|
this._descendantsOnlyPadding = false;
|
|
4514
4463
|
this._paddingLeft = new _valueAndUnit__WEBPACK_IMPORTED_MODULE_2__.ValueAndUnit(0);
|
|
4515
4464
|
this._paddingRight = new _valueAndUnit__WEBPACK_IMPORTED_MODULE_2__.ValueAndUnit(0);
|
|
4516
4465
|
this._paddingTop = new _valueAndUnit__WEBPACK_IMPORTED_MODULE_2__.ValueAndUnit(0);
|
|
4517
4466
|
this._paddingBottom = new _valueAndUnit__WEBPACK_IMPORTED_MODULE_2__.ValueAndUnit(0);
|
|
4518
|
-
/** @
|
|
4467
|
+
/** @internal */
|
|
4519
4468
|
this._left = new _valueAndUnit__WEBPACK_IMPORTED_MODULE_2__.ValueAndUnit(0);
|
|
4520
|
-
/** @
|
|
4469
|
+
/** @internal */
|
|
4521
4470
|
this._top = new _valueAndUnit__WEBPACK_IMPORTED_MODULE_2__.ValueAndUnit(0);
|
|
4522
4471
|
this._scaleX = 1.0;
|
|
4523
4472
|
this._scaleY = 1.0;
|
|
4524
4473
|
this._rotation = 0;
|
|
4525
4474
|
this._transformCenterX = 0.5;
|
|
4526
4475
|
this._transformCenterY = 0.5;
|
|
4527
|
-
/** @
|
|
4476
|
+
/** @internal */
|
|
4528
4477
|
this._transformMatrix = _math2D__WEBPACK_IMPORTED_MODULE_4__.Matrix2D.Identity();
|
|
4529
|
-
/** @
|
|
4478
|
+
/** @internal */
|
|
4530
4479
|
this._invertTransformMatrix = _math2D__WEBPACK_IMPORTED_MODULE_4__.Matrix2D.Identity();
|
|
4531
|
-
/** @
|
|
4480
|
+
/** @internal */
|
|
4532
4481
|
this._transformedPosition = core_Misc_observable__WEBPACK_IMPORTED_MODULE_1__.Vector2.Zero();
|
|
4533
4482
|
this._isMatrixDirty = true;
|
|
4534
4483
|
this._isVisible = true;
|
|
@@ -4547,13 +4496,13 @@ var Control = /** @class */ (function () {
|
|
|
4547
4496
|
this._disabledColor = "#9a9a9a";
|
|
4548
4497
|
this._disabledColorItem = "#6a6a6a";
|
|
4549
4498
|
this._isReadOnly = false;
|
|
4550
|
-
/** @
|
|
4499
|
+
/** @internal */
|
|
4551
4500
|
this._rebuildLayout = false;
|
|
4552
|
-
/** @
|
|
4501
|
+
/** @internal */
|
|
4553
4502
|
this._customData = {};
|
|
4554
|
-
/** @
|
|
4503
|
+
/** @internal */
|
|
4555
4504
|
this._isClipped = false;
|
|
4556
|
-
/** @
|
|
4505
|
+
/** @internal */
|
|
4557
4506
|
this._automaticSize = false;
|
|
4558
4507
|
/**
|
|
4559
4508
|
* Gets or sets an object used to store user defined information for the node
|
|
@@ -4592,9 +4541,9 @@ var Control = /** @class */ (function () {
|
|
|
4592
4541
|
this._shadowColor = "black";
|
|
4593
4542
|
/** Gets or sets the cursor to use when the control is hovered */
|
|
4594
4543
|
this.hoverCursor = "";
|
|
4595
|
-
/** @
|
|
4544
|
+
/** @internal */
|
|
4596
4545
|
this._linkOffsetX = new _valueAndUnit__WEBPACK_IMPORTED_MODULE_2__.ValueAndUnit(0);
|
|
4597
|
-
/** @
|
|
4546
|
+
/** @internal */
|
|
4598
4547
|
this._linkOffsetY = new _valueAndUnit__WEBPACK_IMPORTED_MODULE_2__.ValueAndUnit(0);
|
|
4599
4548
|
/**
|
|
4600
4549
|
* An event triggered when pointer wheel is scrolled
|
|
@@ -5114,7 +5063,7 @@ var Control = /** @class */ (function () {
|
|
|
5114
5063
|
configurable: true
|
|
5115
5064
|
});
|
|
5116
5065
|
Object.defineProperty(Control.prototype, "_isFontSizeInPercentage", {
|
|
5117
|
-
/** @
|
|
5066
|
+
/** @internal */
|
|
5118
5067
|
get: function () {
|
|
5119
5068
|
return this._fontSize.isPercentage;
|
|
5120
5069
|
},
|
|
@@ -5288,7 +5237,7 @@ var Control = /** @class */ (function () {
|
|
|
5288
5237
|
configurable: true
|
|
5289
5238
|
});
|
|
5290
5239
|
Object.defineProperty(Control.prototype, "_paddingLeftInPixels", {
|
|
5291
|
-
/** @
|
|
5240
|
+
/** @internal */
|
|
5292
5241
|
get: function () {
|
|
5293
5242
|
if (this._descendantsOnlyPadding) {
|
|
5294
5243
|
return 0;
|
|
@@ -5332,7 +5281,7 @@ var Control = /** @class */ (function () {
|
|
|
5332
5281
|
configurable: true
|
|
5333
5282
|
});
|
|
5334
5283
|
Object.defineProperty(Control.prototype, "_paddingRightInPixels", {
|
|
5335
|
-
/** @
|
|
5284
|
+
/** @internal */
|
|
5336
5285
|
get: function () {
|
|
5337
5286
|
if (this._descendantsOnlyPadding) {
|
|
5338
5287
|
return 0;
|
|
@@ -5376,7 +5325,7 @@ var Control = /** @class */ (function () {
|
|
|
5376
5325
|
configurable: true
|
|
5377
5326
|
});
|
|
5378
5327
|
Object.defineProperty(Control.prototype, "_paddingTopInPixels", {
|
|
5379
|
-
/** @
|
|
5328
|
+
/** @internal */
|
|
5380
5329
|
get: function () {
|
|
5381
5330
|
if (this._descendantsOnlyPadding) {
|
|
5382
5331
|
return 0;
|
|
@@ -5420,7 +5369,7 @@ var Control = /** @class */ (function () {
|
|
|
5420
5369
|
configurable: true
|
|
5421
5370
|
});
|
|
5422
5371
|
Object.defineProperty(Control.prototype, "_paddingBottomInPixels", {
|
|
5423
|
-
/** @
|
|
5372
|
+
/** @internal */
|
|
5424
5373
|
get: function () {
|
|
5425
5374
|
if (this._descendantsOnlyPadding) {
|
|
5426
5375
|
return 0;
|
|
@@ -5640,7 +5589,7 @@ var Control = /** @class */ (function () {
|
|
|
5640
5589
|
enumerable: false,
|
|
5641
5590
|
configurable: true
|
|
5642
5591
|
});
|
|
5643
|
-
/** @
|
|
5592
|
+
/** @internal */
|
|
5644
5593
|
Control.prototype._getTypeName = function () {
|
|
5645
5594
|
return "Control";
|
|
5646
5595
|
};
|
|
@@ -5672,7 +5621,7 @@ var Control = /** @class */ (function () {
|
|
|
5672
5621
|
Control.prototype.markAllAsDirty = function () {
|
|
5673
5622
|
this._markAllAsDirty();
|
|
5674
5623
|
};
|
|
5675
|
-
/** @
|
|
5624
|
+
/** @internal */
|
|
5676
5625
|
Control.prototype._resetFontCache = function () {
|
|
5677
5626
|
this._fontSet = true;
|
|
5678
5627
|
this._markAsDirty();
|
|
@@ -5830,8 +5779,7 @@ var Control = /** @class */ (function () {
|
|
|
5830
5779
|
this.paddingLeftInPixels = left;
|
|
5831
5780
|
};
|
|
5832
5781
|
/**
|
|
5833
|
-
* @
|
|
5834
|
-
* @hidden
|
|
5782
|
+
* @internal
|
|
5835
5783
|
*/
|
|
5836
5784
|
Control.prototype._moveToProjectedPosition = function (projectedPosition) {
|
|
5837
5785
|
var _a;
|
|
@@ -5858,34 +5806,30 @@ var Control = /** @class */ (function () {
|
|
|
5858
5806
|
this._markAsDirty();
|
|
5859
5807
|
};
|
|
5860
5808
|
/**
|
|
5861
|
-
* @
|
|
5862
|
-
* @hidden
|
|
5809
|
+
* @internal
|
|
5863
5810
|
*/
|
|
5864
5811
|
Control.prototype._offsetLeft = function (offset) {
|
|
5865
5812
|
this._isDirty = true;
|
|
5866
5813
|
this._currentMeasure.left += offset;
|
|
5867
5814
|
};
|
|
5868
5815
|
/**
|
|
5869
|
-
* @
|
|
5870
|
-
* @hidden
|
|
5816
|
+
* @internal
|
|
5871
5817
|
*/
|
|
5872
5818
|
Control.prototype._offsetTop = function (offset) {
|
|
5873
5819
|
this._isDirty = true;
|
|
5874
5820
|
this._currentMeasure.top += offset;
|
|
5875
5821
|
};
|
|
5876
|
-
/** @
|
|
5822
|
+
/** @internal */
|
|
5877
5823
|
Control.prototype._markMatrixAsDirty = function () {
|
|
5878
5824
|
this._isMatrixDirty = true;
|
|
5879
5825
|
this._flagDescendantsAsMatrixDirty();
|
|
5880
5826
|
};
|
|
5881
|
-
/** @
|
|
5827
|
+
/** @internal */
|
|
5882
5828
|
Control.prototype._flagDescendantsAsMatrixDirty = function () {
|
|
5883
5829
|
// No child
|
|
5884
5830
|
};
|
|
5885
5831
|
/**
|
|
5886
|
-
* @
|
|
5887
|
-
* @param context
|
|
5888
|
-
* @hidden
|
|
5832
|
+
* @internal
|
|
5889
5833
|
*/
|
|
5890
5834
|
Control.prototype._intersectsRect = function (rect, context) {
|
|
5891
5835
|
// make sure we are transformed correctly before checking intersections. no-op if nothing is dirty.
|
|
@@ -5904,15 +5848,15 @@ var Control = /** @class */ (function () {
|
|
|
5904
5848
|
}
|
|
5905
5849
|
return true;
|
|
5906
5850
|
};
|
|
5907
|
-
/** @
|
|
5851
|
+
/** @internal */
|
|
5908
5852
|
Control.prototype._computeAdditionnalOffsetX = function () {
|
|
5909
5853
|
return 0;
|
|
5910
5854
|
};
|
|
5911
|
-
/** @
|
|
5855
|
+
/** @internal */
|
|
5912
5856
|
Control.prototype._computeAdditionnalOffsetY = function () {
|
|
5913
5857
|
return 0;
|
|
5914
5858
|
};
|
|
5915
|
-
/** @
|
|
5859
|
+
/** @internal */
|
|
5916
5860
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
5917
5861
|
Control.prototype.invalidateRect = function () {
|
|
5918
5862
|
this._transform();
|
|
@@ -5936,8 +5880,7 @@ var Control = /** @class */ (function () {
|
|
|
5936
5880
|
}
|
|
5937
5881
|
};
|
|
5938
5882
|
/**
|
|
5939
|
-
* @
|
|
5940
|
-
* @hidden
|
|
5883
|
+
* @internal
|
|
5941
5884
|
*/
|
|
5942
5885
|
Control.prototype._markAsDirty = function (force) {
|
|
5943
5886
|
if (force === void 0) { force = false; }
|
|
@@ -5951,7 +5894,7 @@ var Control = /** @class */ (function () {
|
|
|
5951
5894
|
this._host.markAsDirty();
|
|
5952
5895
|
}
|
|
5953
5896
|
};
|
|
5954
|
-
/** @
|
|
5897
|
+
/** @internal */
|
|
5955
5898
|
Control.prototype._markAllAsDirty = function () {
|
|
5956
5899
|
this._markAsDirty();
|
|
5957
5900
|
if (this._font) {
|
|
@@ -5959,8 +5902,7 @@ var Control = /** @class */ (function () {
|
|
|
5959
5902
|
}
|
|
5960
5903
|
};
|
|
5961
5904
|
/**
|
|
5962
|
-
* @
|
|
5963
|
-
* @hidden
|
|
5905
|
+
* @internal
|
|
5964
5906
|
*/
|
|
5965
5907
|
Control.prototype._link = function (host) {
|
|
5966
5908
|
this._host = host;
|
|
@@ -5969,8 +5911,7 @@ var Control = /** @class */ (function () {
|
|
|
5969
5911
|
}
|
|
5970
5912
|
};
|
|
5971
5913
|
/**
|
|
5972
|
-
* @
|
|
5973
|
-
* @hidden
|
|
5914
|
+
* @internal
|
|
5974
5915
|
*/
|
|
5975
5916
|
Control.prototype._transform = function (context) {
|
|
5976
5917
|
if (!this._isMatrixDirty && this._scaleX === 1 && this._scaleY === 1 && this._rotation === 0) {
|
|
@@ -6000,8 +5941,7 @@ var Control = /** @class */ (function () {
|
|
|
6000
5941
|
}
|
|
6001
5942
|
};
|
|
6002
5943
|
/**
|
|
6003
|
-
* @
|
|
6004
|
-
* @hidden
|
|
5944
|
+
* @internal
|
|
6005
5945
|
*/
|
|
6006
5946
|
Control.prototype._renderHighlight = function (context) {
|
|
6007
5947
|
if (!this.isHighlighted) {
|
|
@@ -6014,15 +5954,13 @@ var Control = /** @class */ (function () {
|
|
|
6014
5954
|
context.restore();
|
|
6015
5955
|
};
|
|
6016
5956
|
/**
|
|
6017
|
-
* @
|
|
6018
|
-
* @hidden
|
|
5957
|
+
* @internal
|
|
6019
5958
|
*/
|
|
6020
5959
|
Control.prototype._renderHighlightSpecific = function (context) {
|
|
6021
5960
|
context.strokeRect(this._currentMeasure.left, this._currentMeasure.top, this._currentMeasure.width, this._currentMeasure.height);
|
|
6022
5961
|
};
|
|
6023
5962
|
/**
|
|
6024
|
-
* @
|
|
6025
|
-
* @hidden
|
|
5963
|
+
* @internal
|
|
6026
5964
|
*/
|
|
6027
5965
|
Control.prototype._applyStates = function (context) {
|
|
6028
5966
|
if (this._isFontSizeInPercentage) {
|
|
@@ -6049,9 +5987,7 @@ var Control = /** @class */ (function () {
|
|
|
6049
5987
|
}
|
|
6050
5988
|
};
|
|
6051
5989
|
/**
|
|
6052
|
-
* @
|
|
6053
|
-
* @param context
|
|
6054
|
-
* @hidden
|
|
5990
|
+
* @internal
|
|
6055
5991
|
*/
|
|
6056
5992
|
Control.prototype._layout = function (parentMeasure, context) {
|
|
6057
5993
|
if (!this.isDirty && (!this.isVisible || this.notRenderable)) {
|
|
@@ -6080,9 +6016,7 @@ var Control = /** @class */ (function () {
|
|
|
6080
6016
|
return true;
|
|
6081
6017
|
};
|
|
6082
6018
|
/**
|
|
6083
|
-
* @
|
|
6084
|
-
* @param context
|
|
6085
|
-
* @hidden
|
|
6019
|
+
* @internal
|
|
6086
6020
|
*/
|
|
6087
6021
|
Control.prototype._processMeasures = function (parentMeasure, context) {
|
|
6088
6022
|
this._tempPaddingMeasure.copyFrom(parentMeasure);
|
|
@@ -6135,7 +6069,7 @@ var Control = /** @class */ (function () {
|
|
|
6135
6069
|
}
|
|
6136
6070
|
this._isClipped = false;
|
|
6137
6071
|
};
|
|
6138
|
-
/** @
|
|
6072
|
+
/** @internal */
|
|
6139
6073
|
Control.prototype._measure = function () {
|
|
6140
6074
|
// Width / Height
|
|
6141
6075
|
if (this._width.isPixel) {
|
|
@@ -6160,9 +6094,7 @@ var Control = /** @class */ (function () {
|
|
|
6160
6094
|
}
|
|
6161
6095
|
};
|
|
6162
6096
|
/**
|
|
6163
|
-
* @
|
|
6164
|
-
* @param context
|
|
6165
|
-
* @hidden
|
|
6097
|
+
* @internal
|
|
6166
6098
|
*/
|
|
6167
6099
|
Control.prototype._computeAlignment = function (parentMeasure, context) {
|
|
6168
6100
|
var width = this._currentMeasure.width;
|
|
@@ -6240,24 +6172,19 @@ var Control = /** @class */ (function () {
|
|
|
6240
6172
|
this._currentMeasure.top += y;
|
|
6241
6173
|
};
|
|
6242
6174
|
/**
|
|
6243
|
-
* @
|
|
6244
|
-
* @param context
|
|
6245
|
-
* @hidden
|
|
6175
|
+
* @internal
|
|
6246
6176
|
*/
|
|
6247
6177
|
Control.prototype._preMeasure = function (parentMeasure, context) {
|
|
6248
6178
|
// Do nothing
|
|
6249
6179
|
};
|
|
6250
6180
|
/**
|
|
6251
|
-
* @
|
|
6252
|
-
* @param context
|
|
6253
|
-
* @hidden
|
|
6181
|
+
* @internal
|
|
6254
6182
|
*/
|
|
6255
6183
|
Control.prototype._additionalProcessing = function (parentMeasure, context) {
|
|
6256
6184
|
// Do nothing
|
|
6257
6185
|
};
|
|
6258
6186
|
/**
|
|
6259
|
-
* @
|
|
6260
|
-
* @hidden
|
|
6187
|
+
* @internal
|
|
6261
6188
|
*/
|
|
6262
6189
|
Control.prototype._clipForChildren = function (context) {
|
|
6263
6190
|
// DO nothing
|
|
@@ -6292,9 +6219,7 @@ var Control = /** @class */ (function () {
|
|
|
6292
6219
|
context.clip();
|
|
6293
6220
|
};
|
|
6294
6221
|
/**
|
|
6295
|
-
* @
|
|
6296
|
-
* @param invalidatedRectangle
|
|
6297
|
-
* @hidden
|
|
6222
|
+
* @internal
|
|
6298
6223
|
*/
|
|
6299
6224
|
Control.prototype._render = function (context, invalidatedRectangle) {
|
|
6300
6225
|
if (!this.isVisible || this.notRenderable || this._isClipped) {
|
|
@@ -6330,9 +6255,7 @@ var Control = /** @class */ (function () {
|
|
|
6330
6255
|
return true;
|
|
6331
6256
|
};
|
|
6332
6257
|
/**
|
|
6333
|
-
* @
|
|
6334
|
-
* @param invalidatedRectangle
|
|
6335
|
-
* @hidden
|
|
6258
|
+
* @internal
|
|
6336
6259
|
*/
|
|
6337
6260
|
Control.prototype._draw = function (context, invalidatedRectangle) {
|
|
6338
6261
|
// Do nothing
|
|
@@ -6367,15 +6290,7 @@ var Control = /** @class */ (function () {
|
|
|
6367
6290
|
return true;
|
|
6368
6291
|
};
|
|
6369
6292
|
/**
|
|
6370
|
-
* @
|
|
6371
|
-
* @param y
|
|
6372
|
-
* @param pi
|
|
6373
|
-
* @param type
|
|
6374
|
-
* @param pointerId
|
|
6375
|
-
* @param buttonIndex
|
|
6376
|
-
* @param deltaX
|
|
6377
|
-
* @param deltaY
|
|
6378
|
-
* @hidden
|
|
6293
|
+
* @internal
|
|
6379
6294
|
*/
|
|
6380
6295
|
Control.prototype._processPicking = function (x, y, pi, type, pointerId, buttonIndex, deltaX, deltaY) {
|
|
6381
6296
|
if (!this._isEnabled) {
|
|
@@ -6391,11 +6306,7 @@ var Control = /** @class */ (function () {
|
|
|
6391
6306
|
return true;
|
|
6392
6307
|
};
|
|
6393
6308
|
/**
|
|
6394
|
-
* @
|
|
6395
|
-
* @param coordinates
|
|
6396
|
-
* @param pointerId
|
|
6397
|
-
* @param pi
|
|
6398
|
-
* @hidden
|
|
6309
|
+
* @internal
|
|
6399
6310
|
*/
|
|
6400
6311
|
Control.prototype._onPointerMove = function (target, coordinates, pointerId, pi) {
|
|
6401
6312
|
var canNotify = this.onPointerMoveObservable.notifyObservers(coordinates, -1, target, this, pi);
|
|
@@ -6404,9 +6315,7 @@ var Control = /** @class */ (function () {
|
|
|
6404
6315
|
}
|
|
6405
6316
|
};
|
|
6406
6317
|
/**
|
|
6407
|
-
* @
|
|
6408
|
-
* @param pi
|
|
6409
|
-
* @hidden
|
|
6318
|
+
* @internal
|
|
6410
6319
|
*/
|
|
6411
6320
|
Control.prototype._onPointerEnter = function (target, pi) {
|
|
6412
6321
|
if (!this._isEnabled) {
|
|
@@ -6427,10 +6336,7 @@ var Control = /** @class */ (function () {
|
|
|
6427
6336
|
return true;
|
|
6428
6337
|
};
|
|
6429
6338
|
/**
|
|
6430
|
-
* @
|
|
6431
|
-
* @param pi
|
|
6432
|
-
* @param force
|
|
6433
|
-
* @hidden
|
|
6339
|
+
* @internal
|
|
6434
6340
|
*/
|
|
6435
6341
|
Control.prototype._onPointerOut = function (target, pi, force) {
|
|
6436
6342
|
if (force === void 0) { force = false; }
|
|
@@ -6447,12 +6353,7 @@ var Control = /** @class */ (function () {
|
|
|
6447
6353
|
}
|
|
6448
6354
|
};
|
|
6449
6355
|
/**
|
|
6450
|
-
* @
|
|
6451
|
-
* @param coordinates
|
|
6452
|
-
* @param pointerId
|
|
6453
|
-
* @param buttonIndex
|
|
6454
|
-
* @param pi
|
|
6455
|
-
* @hidden
|
|
6356
|
+
* @internal
|
|
6456
6357
|
*/
|
|
6457
6358
|
Control.prototype._onPointerDown = function (target, coordinates, pointerId, buttonIndex, pi) {
|
|
6458
6359
|
// Prevent pointerout to lose control context.
|
|
@@ -6473,13 +6374,7 @@ var Control = /** @class */ (function () {
|
|
|
6473
6374
|
return true;
|
|
6474
6375
|
};
|
|
6475
6376
|
/**
|
|
6476
|
-
* @
|
|
6477
|
-
* @param coordinates
|
|
6478
|
-
* @param pointerId
|
|
6479
|
-
* @param buttonIndex
|
|
6480
|
-
* @param notifyClick
|
|
6481
|
-
* @param pi
|
|
6482
|
-
* @hidden
|
|
6377
|
+
* @internal
|
|
6483
6378
|
*/
|
|
6484
6379
|
Control.prototype._onPointerUp = function (target, coordinates, pointerId, buttonIndex, notifyClick, pi) {
|
|
6485
6380
|
if (!this._isEnabled) {
|
|
@@ -6500,8 +6395,7 @@ var Control = /** @class */ (function () {
|
|
|
6500
6395
|
}
|
|
6501
6396
|
};
|
|
6502
6397
|
/**
|
|
6503
|
-
* @
|
|
6504
|
-
* @hidden
|
|
6398
|
+
* @internal
|
|
6505
6399
|
*/
|
|
6506
6400
|
Control.prototype._forcePointerUp = function (pointerId) {
|
|
6507
6401
|
if (pointerId === void 0) { pointerId = null; }
|
|
@@ -6515,9 +6409,7 @@ var Control = /** @class */ (function () {
|
|
|
6515
6409
|
}
|
|
6516
6410
|
};
|
|
6517
6411
|
/**
|
|
6518
|
-
* @
|
|
6519
|
-
* @param deltaY
|
|
6520
|
-
* @hidden
|
|
6412
|
+
* @internal
|
|
6521
6413
|
*/
|
|
6522
6414
|
Control.prototype._onWheelScroll = function (deltaX, deltaY) {
|
|
6523
6415
|
if (!this._isEnabled) {
|
|
@@ -6528,18 +6420,10 @@ var Control = /** @class */ (function () {
|
|
|
6528
6420
|
this.parent._onWheelScroll(deltaX, deltaY);
|
|
6529
6421
|
}
|
|
6530
6422
|
};
|
|
6531
|
-
/** @
|
|
6423
|
+
/** @internal */
|
|
6532
6424
|
Control.prototype._onCanvasBlur = function () { };
|
|
6533
6425
|
/**
|
|
6534
|
-
* @
|
|
6535
|
-
* @param x
|
|
6536
|
-
* @param y
|
|
6537
|
-
* @param pi
|
|
6538
|
-
* @param pointerId
|
|
6539
|
-
* @param buttonIndex
|
|
6540
|
-
* @param deltaX
|
|
6541
|
-
* @param deltaY
|
|
6542
|
-
* @hidden
|
|
6426
|
+
* @internal
|
|
6543
6427
|
*/
|
|
6544
6428
|
Control.prototype._processObservables = function (type, x, y, pi, pointerId, buttonIndex, deltaX, deltaY) {
|
|
6545
6429
|
if (!this._isEnabled) {
|
|
@@ -6609,9 +6493,7 @@ var Control = /** @class */ (function () {
|
|
|
6609
6493
|
}
|
|
6610
6494
|
};
|
|
6611
6495
|
/**
|
|
6612
|
-
* @
|
|
6613
|
-
* @param host
|
|
6614
|
-
* @hidden
|
|
6496
|
+
* @internal
|
|
6615
6497
|
*/
|
|
6616
6498
|
Control.prototype._parseFromContent = function (serializedObject, host) {
|
|
6617
6499
|
if (serializedObject.fontFamily) {
|
|
@@ -6706,8 +6588,7 @@ var Control = /** @class */ (function () {
|
|
|
6706
6588
|
configurable: true
|
|
6707
6589
|
});
|
|
6708
6590
|
/**
|
|
6709
|
-
* @
|
|
6710
|
-
* @hidden
|
|
6591
|
+
* @internal
|
|
6711
6592
|
*/
|
|
6712
6593
|
Control._GetFontOffset = function (font) {
|
|
6713
6594
|
if (Control._FontHeightSizes[font]) {
|
|
@@ -6735,12 +6616,7 @@ var Control = /** @class */ (function () {
|
|
|
6735
6616
|
return control;
|
|
6736
6617
|
};
|
|
6737
6618
|
/**
|
|
6738
|
-
* @
|
|
6739
|
-
* @param y
|
|
6740
|
-
* @param width
|
|
6741
|
-
* @param height
|
|
6742
|
-
* @param context
|
|
6743
|
-
* @hidden
|
|
6619
|
+
* @internal
|
|
6744
6620
|
*/
|
|
6745
6621
|
Control.drawEllipse = function (x, y, width, height, context) {
|
|
6746
6622
|
context.translate(x, y);
|
|
@@ -7309,7 +7185,7 @@ var FocusableButton = /** @class */ (function (_super) {
|
|
|
7309
7185
|
_this._unfocusedColor = _this.color;
|
|
7310
7186
|
return _this;
|
|
7311
7187
|
}
|
|
7312
|
-
/** @
|
|
7188
|
+
/** @internal */
|
|
7313
7189
|
FocusableButton.prototype.onBlur = function () {
|
|
7314
7190
|
if (this._isFocused) {
|
|
7315
7191
|
this._isFocused = false;
|
|
@@ -7320,7 +7196,7 @@ var FocusableButton = /** @class */ (function (_super) {
|
|
|
7320
7196
|
this.onBlurObservable.notifyObservers(this);
|
|
7321
7197
|
}
|
|
7322
7198
|
};
|
|
7323
|
-
/** @
|
|
7199
|
+
/** @internal */
|
|
7324
7200
|
FocusableButton.prototype.onFocus = function () {
|
|
7325
7201
|
this._isFocused = true;
|
|
7326
7202
|
if (this.focusedColor) {
|
|
@@ -7357,12 +7233,7 @@ var FocusableButton = /** @class */ (function (_super) {
|
|
|
7357
7233
|
this.onKeyboardEventProcessedObservable.notifyObservers(evt, -1, this);
|
|
7358
7234
|
};
|
|
7359
7235
|
/**
|
|
7360
|
-
* @
|
|
7361
|
-
* @param coordinates
|
|
7362
|
-
* @param pointerId
|
|
7363
|
-
* @param buttonIndex
|
|
7364
|
-
* @param pi
|
|
7365
|
-
* @hidden
|
|
7236
|
+
* @internal
|
|
7366
7237
|
*/
|
|
7367
7238
|
FocusableButton.prototype._onPointerDown = function (target, coordinates, pointerId, buttonIndex, pi) {
|
|
7368
7239
|
if (!this.isReadOnly) {
|
|
@@ -7371,7 +7242,7 @@ var FocusableButton = /** @class */ (function (_super) {
|
|
|
7371
7242
|
}
|
|
7372
7243
|
return _super.prototype._onPointerDown.call(this, target, coordinates, pointerId, buttonIndex, pi);
|
|
7373
7244
|
};
|
|
7374
|
-
/** @
|
|
7245
|
+
/** @internal */
|
|
7375
7246
|
FocusableButton.prototype.displose = function () {
|
|
7376
7247
|
_super.prototype.dispose.call(this);
|
|
7377
7248
|
this.onBlurObservable.clear();
|
|
@@ -7904,9 +7775,7 @@ var Grid = /** @class */ (function (_super) {
|
|
|
7904
7775
|
});
|
|
7905
7776
|
};
|
|
7906
7777
|
/**
|
|
7907
|
-
* @
|
|
7908
|
-
* @param host
|
|
7909
|
-
* @hidden
|
|
7778
|
+
* @internal
|
|
7910
7779
|
*/
|
|
7911
7780
|
Grid.prototype._parseFromContent = function (serializedObject, host) {
|
|
7912
7781
|
_super.prototype._parseFromContent.call(this, serializedObject, host);
|
|
@@ -8262,9 +8131,7 @@ var Image = /** @class */ (function (_super) {
|
|
|
8262
8131
|
configurable: true
|
|
8263
8132
|
});
|
|
8264
8133
|
/**
|
|
8265
|
-
* @
|
|
8266
|
-
* @param preserveProperties
|
|
8267
|
-
* @hidden
|
|
8134
|
+
* @internal
|
|
8268
8135
|
*/
|
|
8269
8136
|
Image.prototype._rotate90 = function (n, preserveProperties) {
|
|
8270
8137
|
var _a, _b;
|
|
@@ -9394,7 +9261,7 @@ var InputText = /** @class */ (function (_super) {
|
|
|
9394
9261
|
enumerable: false,
|
|
9395
9262
|
configurable: true
|
|
9396
9263
|
});
|
|
9397
|
-
/** @
|
|
9264
|
+
/** @internal */
|
|
9398
9265
|
InputText.prototype.onBlur = function () {
|
|
9399
9266
|
this._isFocused = false;
|
|
9400
9267
|
this._scrollLeft = null;
|
|
@@ -9411,7 +9278,7 @@ var InputText = /** @class */ (function (_super) {
|
|
|
9411
9278
|
scene.onPointerObservable.remove(this._onPointerDblTapObserver);
|
|
9412
9279
|
}
|
|
9413
9280
|
};
|
|
9414
|
-
/** @
|
|
9281
|
+
/** @internal */
|
|
9415
9282
|
InputText.prototype.onFocus = function () {
|
|
9416
9283
|
var _this = this;
|
|
9417
9284
|
if (!this._isEnabled) {
|
|
@@ -9493,10 +9360,7 @@ var InputText = /** @class */ (function (_super) {
|
|
|
9493
9360
|
return [this._connectedVirtualKeyboard];
|
|
9494
9361
|
};
|
|
9495
9362
|
/**
|
|
9496
|
-
* @
|
|
9497
|
-
* @param key
|
|
9498
|
-
* @param evt
|
|
9499
|
-
* @hidden
|
|
9363
|
+
* @internal
|
|
9500
9364
|
*/
|
|
9501
9365
|
InputText.prototype.processKey = function (keyCode, key, evt) {
|
|
9502
9366
|
if (this.isReadOnly) {
|
|
@@ -9776,8 +9640,7 @@ var InputText = /** @class */ (function (_super) {
|
|
|
9776
9640
|
}
|
|
9777
9641
|
};
|
|
9778
9642
|
/**
|
|
9779
|
-
* @
|
|
9780
|
-
* @hidden
|
|
9643
|
+
* @internal
|
|
9781
9644
|
*/
|
|
9782
9645
|
InputText.prototype._updateValueFromCursorIndex = function (offset) {
|
|
9783
9646
|
//update the cursor
|
|
@@ -9804,8 +9667,7 @@ var InputText = /** @class */ (function (_super) {
|
|
|
9804
9667
|
this._markAsDirty();
|
|
9805
9668
|
};
|
|
9806
9669
|
/**
|
|
9807
|
-
* @
|
|
9808
|
-
* @hidden
|
|
9670
|
+
* @internal
|
|
9809
9671
|
*/
|
|
9810
9672
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
9811
9673
|
InputText.prototype._processDblClick = function (evt) {
|
|
@@ -9825,7 +9687,7 @@ var InputText = /** @class */ (function (_super) {
|
|
|
9825
9687
|
this._cursorIndex = -1;
|
|
9826
9688
|
this._markAsDirty();
|
|
9827
9689
|
};
|
|
9828
|
-
/** @
|
|
9690
|
+
/** @internal */
|
|
9829
9691
|
InputText.prototype._selectAllText = function () {
|
|
9830
9692
|
this._blinkIsEven = true;
|
|
9831
9693
|
this._isTextHighlightOn = true;
|
|
@@ -9845,8 +9707,7 @@ var InputText = /** @class */ (function (_super) {
|
|
|
9845
9707
|
this.onKeyboardEventProcessedObservable.notifyObservers(evt);
|
|
9846
9708
|
};
|
|
9847
9709
|
/**
|
|
9848
|
-
* @
|
|
9849
|
-
* @hidden
|
|
9710
|
+
* @internal
|
|
9850
9711
|
*/
|
|
9851
9712
|
InputText.prototype._onCopyText = function (ev) {
|
|
9852
9713
|
this._isTextHighlightOn = false;
|
|
@@ -9858,8 +9719,7 @@ var InputText = /** @class */ (function (_super) {
|
|
|
9858
9719
|
this._host.clipboardData = this._highlightedText;
|
|
9859
9720
|
};
|
|
9860
9721
|
/**
|
|
9861
|
-
* @
|
|
9862
|
-
* @hidden
|
|
9722
|
+
* @internal
|
|
9863
9723
|
*/
|
|
9864
9724
|
InputText.prototype._onCutText = function (ev) {
|
|
9865
9725
|
if (!this._highlightedText) {
|
|
@@ -9878,8 +9738,7 @@ var InputText = /** @class */ (function (_super) {
|
|
|
9878
9738
|
this._highlightedText = "";
|
|
9879
9739
|
};
|
|
9880
9740
|
/**
|
|
9881
|
-
* @
|
|
9882
|
-
* @hidden
|
|
9741
|
+
* @internal
|
|
9883
9742
|
*/
|
|
9884
9743
|
InputText.prototype._onPasteText = function (ev) {
|
|
9885
9744
|
var data = "";
|
|
@@ -10332,7 +10191,7 @@ var InputTextArea = /** @class */ (function (_super) {
|
|
|
10332
10191
|
* @param code The ascii input number
|
|
10333
10192
|
* @param key The key string representation
|
|
10334
10193
|
* @param evt The keyboard event emits with input
|
|
10335
|
-
* @
|
|
10194
|
+
* @internal
|
|
10336
10195
|
*/
|
|
10337
10196
|
InputTextArea.prototype.alternativeProcessKey = function (code, key, evt) {
|
|
10338
10197
|
//return if clipboard event keys (i.e -ctr/cmd + c,v,x)
|
|
@@ -10708,7 +10567,7 @@ var InputTextArea = /** @class */ (function (_super) {
|
|
|
10708
10567
|
*
|
|
10709
10568
|
* @param parentMeasure The parent measure
|
|
10710
10569
|
* @param context The rendering canvas
|
|
10711
|
-
* @
|
|
10570
|
+
* @internal
|
|
10712
10571
|
*/
|
|
10713
10572
|
InputTextArea.prototype._preMeasure = function (parentMeasure, context) {
|
|
10714
10573
|
if (!this._fontOffset || this._wasDirty) {
|
|
@@ -10767,7 +10626,7 @@ var InputTextArea = /** @class */ (function (_super) {
|
|
|
10767
10626
|
*
|
|
10768
10627
|
* @param parentMeasure The parent measure
|
|
10769
10628
|
* @param context The rendering canvas
|
|
10770
|
-
* @
|
|
10629
|
+
* @internal
|
|
10771
10630
|
*/
|
|
10772
10631
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10773
10632
|
InputTextArea.prototype._additionalProcessing = function (parentMeasure, context) {
|
|
@@ -10825,7 +10684,7 @@ var InputTextArea = /** @class */ (function (_super) {
|
|
|
10825
10684
|
* Copy the text in the clipboard
|
|
10826
10685
|
*
|
|
10827
10686
|
* @param ev The clipboard event
|
|
10828
|
-
* @
|
|
10687
|
+
* @internal
|
|
10829
10688
|
*/
|
|
10830
10689
|
InputTextArea.prototype._onCopyText = function (ev) {
|
|
10831
10690
|
this._isTextHighlightOn = false;
|
|
@@ -10840,7 +10699,7 @@ var InputTextArea = /** @class */ (function (_super) {
|
|
|
10840
10699
|
* Cut the text and copy it in the clipboard
|
|
10841
10700
|
*
|
|
10842
10701
|
* @param ev The clipboard event
|
|
10843
|
-
* @
|
|
10702
|
+
* @internal
|
|
10844
10703
|
*/
|
|
10845
10704
|
InputTextArea.prototype._onCutText = function (ev) {
|
|
10846
10705
|
if (!this._highlightedText) {
|
|
@@ -10859,7 +10718,7 @@ var InputTextArea = /** @class */ (function (_super) {
|
|
|
10859
10718
|
* Paste the copied text from the clipboard
|
|
10860
10719
|
*
|
|
10861
10720
|
* @param ev The clipboard event
|
|
10862
|
-
* @
|
|
10721
|
+
* @internal
|
|
10863
10722
|
*/
|
|
10864
10723
|
InputTextArea.prototype._onPasteText = function (ev) {
|
|
10865
10724
|
var data = "";
|
|
@@ -11185,7 +11044,7 @@ var InputTextArea = /** @class */ (function (_super) {
|
|
|
11185
11044
|
* Update all values of cursor information based on cursorIndex value
|
|
11186
11045
|
*
|
|
11187
11046
|
* @param offset The index to take care of
|
|
11188
|
-
* @
|
|
11047
|
+
* @internal
|
|
11189
11048
|
*/
|
|
11190
11049
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
11191
11050
|
InputTextArea.prototype._updateValueFromCursorIndex = function (offset) {
|
|
@@ -11195,7 +11054,7 @@ var InputTextArea = /** @class */ (function (_super) {
|
|
|
11195
11054
|
* Select the word immediatly under the cursor on double click
|
|
11196
11055
|
*
|
|
11197
11056
|
* @param _evt Pointer informations of double click
|
|
11198
|
-
* @
|
|
11057
|
+
* @internal
|
|
11199
11058
|
*/
|
|
11200
11059
|
InputTextArea.prototype._processDblClick = function (_evt) {
|
|
11201
11060
|
//pre-find the start and end index of the word under cursor, speeds up the rendering
|
|
@@ -11212,7 +11071,7 @@ var InputTextArea = /** @class */ (function (_super) {
|
|
|
11212
11071
|
this._blinkIsEven = true;
|
|
11213
11072
|
this._markAsDirty();
|
|
11214
11073
|
};
|
|
11215
|
-
/** @
|
|
11074
|
+
/** @internal */
|
|
11216
11075
|
InputTextArea.prototype._selectAllText = function () {
|
|
11217
11076
|
this._isTextHighlightOn = true;
|
|
11218
11077
|
this._blinkIsEven = true;
|
|
@@ -12112,7 +11971,7 @@ var Rectangle = /** @class */ (function (_super) {
|
|
|
12112
11971
|
Rectangle.prototype._getTypeName = function () {
|
|
12113
11972
|
return "Rectangle";
|
|
12114
11973
|
};
|
|
12115
|
-
/** @
|
|
11974
|
+
/** @internal */
|
|
12116
11975
|
Rectangle.prototype._computeAdditionnalOffsetX = function () {
|
|
12117
11976
|
if (this._cornerRadius) {
|
|
12118
11977
|
// Take in account the aliasing
|
|
@@ -12120,7 +11979,7 @@ var Rectangle = /** @class */ (function (_super) {
|
|
|
12120
11979
|
}
|
|
12121
11980
|
return 0;
|
|
12122
11981
|
};
|
|
12123
|
-
/** @
|
|
11982
|
+
/** @internal */
|
|
12124
11983
|
Rectangle.prototype._computeAdditionnalOffsetY = function () {
|
|
12125
11984
|
if (this._cornerRadius) {
|
|
12126
11985
|
// Take in account the aliasing
|
|
@@ -12804,7 +12663,7 @@ var ScrollViewer = /** @class */ (function (_super) {
|
|
|
12804
12663
|
}
|
|
12805
12664
|
}
|
|
12806
12665
|
};
|
|
12807
|
-
/** @
|
|
12666
|
+
/** @internal */
|
|
12808
12667
|
ScrollViewer.prototype._updateScroller = function () {
|
|
12809
12668
|
var windowContentsWidth = this._window._currentMeasure.width;
|
|
12810
12669
|
var windowContentsHeight = this._window._currentMeasure.height;
|
|
@@ -12840,11 +12699,7 @@ var ScrollViewer = /** @class */ (function (_super) {
|
|
|
12840
12699
|
this._attachWheel();
|
|
12841
12700
|
};
|
|
12842
12701
|
/**
|
|
12843
|
-
* @
|
|
12844
|
-
* @param barContainer
|
|
12845
|
-
* @param isVertical
|
|
12846
|
-
* @param rotation
|
|
12847
|
-
* @hidden
|
|
12702
|
+
* @internal
|
|
12848
12703
|
*/
|
|
12849
12704
|
ScrollViewer.prototype._addBar = function (barControl, barContainer, isVertical, rotation) {
|
|
12850
12705
|
var _this = this;
|
|
@@ -12864,7 +12719,7 @@ var ScrollViewer = /** @class */ (function (_super) {
|
|
|
12864
12719
|
_this._setWindowPosition();
|
|
12865
12720
|
});
|
|
12866
12721
|
};
|
|
12867
|
-
/** @
|
|
12722
|
+
/** @internal */
|
|
12868
12723
|
ScrollViewer.prototype._attachWheel = function () {
|
|
12869
12724
|
var _this = this;
|
|
12870
12725
|
if (!this._host || this._onWheelObserver) {
|
|
@@ -12951,7 +12806,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12951
12806
|
|
|
12952
12807
|
/**
|
|
12953
12808
|
* Class used to hold a the container for ScrollViewer
|
|
12954
|
-
* @
|
|
12809
|
+
* @internal
|
|
12955
12810
|
*/
|
|
12956
12811
|
var _ScrollViewerWindow = /** @class */ (function (_super) {
|
|
12957
12812
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(_ScrollViewerWindow, _super);
|
|
@@ -13094,9 +12949,7 @@ var _ScrollViewerWindow = /** @class */ (function (_super) {
|
|
|
13094
12949
|
return "ScrollViewerWindow";
|
|
13095
12950
|
};
|
|
13096
12951
|
/**
|
|
13097
|
-
* @
|
|
13098
|
-
* @param context
|
|
13099
|
-
* @hidden
|
|
12952
|
+
* @internal
|
|
13100
12953
|
*/
|
|
13101
12954
|
_ScrollViewerWindow.prototype._additionalProcessing = function (parentMeasure, context) {
|
|
13102
12955
|
_super.prototype._additionalProcessing.call(this, parentMeasure, context);
|
|
@@ -13107,9 +12960,7 @@ var _ScrollViewerWindow = /** @class */ (function (_super) {
|
|
|
13107
12960
|
this._measureForChildren.height = parentMeasure.height;
|
|
13108
12961
|
};
|
|
13109
12962
|
/**
|
|
13110
|
-
* @
|
|
13111
|
-
* @param context
|
|
13112
|
-
* @hidden
|
|
12963
|
+
* @internal
|
|
13113
12964
|
*/
|
|
13114
12965
|
_ScrollViewerWindow.prototype._layout = function (parentMeasure, context) {
|
|
13115
12966
|
if (this._freezeControls) {
|
|
@@ -13148,9 +12999,7 @@ var _ScrollViewerWindow = /** @class */ (function (_super) {
|
|
|
13148
12999
|
}
|
|
13149
13000
|
};
|
|
13150
13001
|
/**
|
|
13151
|
-
* @
|
|
13152
|
-
* @param invalidatedRectangle
|
|
13153
|
-
* @hidden
|
|
13002
|
+
* @internal
|
|
13154
13003
|
*/
|
|
13155
13004
|
_ScrollViewerWindow.prototype._draw = function (context, invalidatedRectangle) {
|
|
13156
13005
|
if (!this._freezeControls) {
|
|
@@ -13307,8 +13156,7 @@ var SelectorGroup = /** @class */ (function () {
|
|
|
13307
13156
|
configurable: true
|
|
13308
13157
|
});
|
|
13309
13158
|
/**
|
|
13310
|
-
* @
|
|
13311
|
-
* @hidden
|
|
13159
|
+
* @internal
|
|
13312
13160
|
*/
|
|
13313
13161
|
SelectorGroup.prototype._addGroupHeader = function (text) {
|
|
13314
13162
|
var groupHeading = new _textBlock__WEBPACK_IMPORTED_MODULE_4__.TextBlock("groupHead", text);
|
|
@@ -13323,8 +13171,7 @@ var SelectorGroup = /** @class */ (function () {
|
|
|
13323
13171
|
return groupHeading;
|
|
13324
13172
|
};
|
|
13325
13173
|
/**
|
|
13326
|
-
* @
|
|
13327
|
-
* @hidden
|
|
13174
|
+
* @internal
|
|
13328
13175
|
*/
|
|
13329
13176
|
SelectorGroup.prototype._getSelector = function (selectorNb) {
|
|
13330
13177
|
if (selectorNb < 0 || selectorNb >= this._selectors.length) {
|
|
@@ -13385,33 +13232,25 @@ var CheckboxGroup = /** @class */ (function (_super) {
|
|
|
13385
13232
|
}
|
|
13386
13233
|
};
|
|
13387
13234
|
/**
|
|
13388
|
-
* @
|
|
13389
|
-
* @param label
|
|
13390
|
-
* @hidden
|
|
13235
|
+
* @internal
|
|
13391
13236
|
*/
|
|
13392
13237
|
CheckboxGroup.prototype._setSelectorLabel = function (selectorNb, label) {
|
|
13393
13238
|
this.selectors[selectorNb].children[1].text = label;
|
|
13394
13239
|
};
|
|
13395
13240
|
/**
|
|
13396
|
-
* @
|
|
13397
|
-
* @param color
|
|
13398
|
-
* @hidden
|
|
13241
|
+
* @internal
|
|
13399
13242
|
*/
|
|
13400
13243
|
CheckboxGroup.prototype._setSelectorLabelColor = function (selectorNb, color) {
|
|
13401
13244
|
this.selectors[selectorNb].children[1].color = color;
|
|
13402
13245
|
};
|
|
13403
13246
|
/**
|
|
13404
|
-
* @
|
|
13405
|
-
* @param color
|
|
13406
|
-
* @hidden
|
|
13247
|
+
* @internal
|
|
13407
13248
|
*/
|
|
13408
13249
|
CheckboxGroup.prototype._setSelectorButtonColor = function (selectorNb, color) {
|
|
13409
13250
|
this.selectors[selectorNb].children[0].color = color;
|
|
13410
13251
|
};
|
|
13411
13252
|
/**
|
|
13412
|
-
* @
|
|
13413
|
-
* @param color
|
|
13414
|
-
* @hidden
|
|
13253
|
+
* @internal
|
|
13415
13254
|
*/
|
|
13416
13255
|
CheckboxGroup.prototype._setSelectorButtonBackground = function (selectorNb, color) {
|
|
13417
13256
|
this.selectors[selectorNb].children[0].background = color;
|
|
@@ -13465,33 +13304,25 @@ var RadioGroup = /** @class */ (function (_super) {
|
|
|
13465
13304
|
}
|
|
13466
13305
|
};
|
|
13467
13306
|
/**
|
|
13468
|
-
* @
|
|
13469
|
-
* @param label
|
|
13470
|
-
* @hidden
|
|
13307
|
+
* @internal
|
|
13471
13308
|
*/
|
|
13472
13309
|
RadioGroup.prototype._setSelectorLabel = function (selectorNb, label) {
|
|
13473
13310
|
this.selectors[selectorNb].children[1].text = label;
|
|
13474
13311
|
};
|
|
13475
13312
|
/**
|
|
13476
|
-
* @
|
|
13477
|
-
* @param color
|
|
13478
|
-
* @hidden
|
|
13313
|
+
* @internal
|
|
13479
13314
|
*/
|
|
13480
13315
|
RadioGroup.prototype._setSelectorLabelColor = function (selectorNb, color) {
|
|
13481
13316
|
this.selectors[selectorNb].children[1].color = color;
|
|
13482
13317
|
};
|
|
13483
13318
|
/**
|
|
13484
|
-
* @
|
|
13485
|
-
* @param color
|
|
13486
|
-
* @hidden
|
|
13319
|
+
* @internal
|
|
13487
13320
|
*/
|
|
13488
13321
|
RadioGroup.prototype._setSelectorButtonColor = function (selectorNb, color) {
|
|
13489
13322
|
this.selectors[selectorNb].children[0].color = color;
|
|
13490
13323
|
};
|
|
13491
13324
|
/**
|
|
13492
|
-
* @
|
|
13493
|
-
* @param color
|
|
13494
|
-
* @hidden
|
|
13325
|
+
* @internal
|
|
13495
13326
|
*/
|
|
13496
13327
|
RadioGroup.prototype._setSelectorButtonBackground = function (selectorNb, color) {
|
|
13497
13328
|
this.selectors[selectorNb].children[0].background = color;
|
|
@@ -13558,9 +13389,7 @@ var SliderGroup = /** @class */ (function (_super) {
|
|
|
13558
13389
|
}
|
|
13559
13390
|
};
|
|
13560
13391
|
/**
|
|
13561
|
-
* @
|
|
13562
|
-
* @param label
|
|
13563
|
-
* @hidden
|
|
13392
|
+
* @internal
|
|
13564
13393
|
*/
|
|
13565
13394
|
SliderGroup.prototype._setSelectorLabel = function (selectorNb, label) {
|
|
13566
13395
|
this.selectors[selectorNb].children[0].name = label;
|
|
@@ -13568,25 +13397,19 @@ var SliderGroup = /** @class */ (function (_super) {
|
|
|
13568
13397
|
label + ": " + this.selectors[selectorNb].children[1].value + " " + this.selectors[selectorNb].children[1].name;
|
|
13569
13398
|
};
|
|
13570
13399
|
/**
|
|
13571
|
-
* @
|
|
13572
|
-
* @param color
|
|
13573
|
-
* @hidden
|
|
13400
|
+
* @internal
|
|
13574
13401
|
*/
|
|
13575
13402
|
SliderGroup.prototype._setSelectorLabelColor = function (selectorNb, color) {
|
|
13576
13403
|
this.selectors[selectorNb].children[0].color = color;
|
|
13577
13404
|
};
|
|
13578
13405
|
/**
|
|
13579
|
-
* @
|
|
13580
|
-
* @param color
|
|
13581
|
-
* @hidden
|
|
13406
|
+
* @internal
|
|
13582
13407
|
*/
|
|
13583
13408
|
SliderGroup.prototype._setSelectorButtonColor = function (selectorNb, color) {
|
|
13584
13409
|
this.selectors[selectorNb].children[1].color = color;
|
|
13585
13410
|
};
|
|
13586
13411
|
/**
|
|
13587
|
-
* @
|
|
13588
|
-
* @param color
|
|
13589
|
-
* @hidden
|
|
13412
|
+
* @internal
|
|
13590
13413
|
*/
|
|
13591
13414
|
SliderGroup.prototype._setSelectorButtonBackground = function (selectorNb, color) {
|
|
13592
13415
|
this.selectors[selectorNb].children[1].background = color;
|
|
@@ -14226,9 +14049,7 @@ var BaseSlider = /** @class */ (function (_super) {
|
|
|
14226
14049
|
}
|
|
14227
14050
|
};
|
|
14228
14051
|
/**
|
|
14229
|
-
* @
|
|
14230
|
-
* @param y
|
|
14231
|
-
* @hidden
|
|
14052
|
+
* @internal
|
|
14232
14053
|
*/
|
|
14233
14054
|
BaseSlider.prototype._updateValueFromPointer = function (x, y) {
|
|
14234
14055
|
if (this.rotation != 0) {
|
|
@@ -14502,9 +14323,7 @@ var ImageBasedSlider = /** @class */ (function (_super) {
|
|
|
14502
14323
|
serializationObject.valueBarImage = valueBarImage;
|
|
14503
14324
|
};
|
|
14504
14325
|
/**
|
|
14505
|
-
* @
|
|
14506
|
-
* @param host
|
|
14507
|
-
* @hidden
|
|
14326
|
+
* @internal
|
|
14508
14327
|
*/
|
|
14509
14328
|
ImageBasedSlider.prototype._parseFromContent = function (serializedObject, host) {
|
|
14510
14329
|
_super.prototype._parseFromContent.call(this, serializedObject, host);
|
|
@@ -14764,9 +14583,7 @@ var ImageScrollBar = /** @class */ (function (_super) {
|
|
|
14764
14583
|
context.restore();
|
|
14765
14584
|
};
|
|
14766
14585
|
/**
|
|
14767
|
-
* @
|
|
14768
|
-
* @param y
|
|
14769
|
-
* @hidden
|
|
14586
|
+
* @internal
|
|
14770
14587
|
*/
|
|
14771
14588
|
ImageScrollBar.prototype._updateValueFromPointer = function (x, y) {
|
|
14772
14589
|
if (this.rotation != 0) {
|
|
@@ -14939,9 +14756,7 @@ var ScrollBar = /** @class */ (function (_super) {
|
|
|
14939
14756
|
context.restore();
|
|
14940
14757
|
};
|
|
14941
14758
|
/**
|
|
14942
|
-
* @
|
|
14943
|
-
* @param y
|
|
14944
|
-
* @hidden
|
|
14759
|
+
* @internal
|
|
14945
14760
|
*/
|
|
14946
14761
|
ScrollBar.prototype._updateValueFromPointer = function (x, y) {
|
|
14947
14762
|
if (this.rotation != 0) {
|
|
@@ -15412,9 +15227,7 @@ var StackPanel = /** @class */ (function (_super) {
|
|
|
15412
15227
|
return "StackPanel";
|
|
15413
15228
|
};
|
|
15414
15229
|
/**
|
|
15415
|
-
* @
|
|
15416
|
-
* @param context
|
|
15417
|
-
* @hidden
|
|
15230
|
+
* @internal
|
|
15418
15231
|
*/
|
|
15419
15232
|
StackPanel.prototype._preMeasure = function (parentMeasure, context) {
|
|
15420
15233
|
for (var _i = 0, _a = this._children; _i < _a.length; _i++) {
|
|
@@ -15521,9 +15334,7 @@ var StackPanel = /** @class */ (function (_super) {
|
|
|
15521
15334
|
serializationObject.manualHeight = this._manualHeight;
|
|
15522
15335
|
};
|
|
15523
15336
|
/**
|
|
15524
|
-
* @
|
|
15525
|
-
* @param host
|
|
15526
|
-
* @hidden
|
|
15337
|
+
* @internal
|
|
15527
15338
|
*/
|
|
15528
15339
|
StackPanel.prototype._parseFromContent = function (serializedObject, host) {
|
|
15529
15340
|
this._manualWidth = serializedObject.manualWidth;
|
|
@@ -15571,7 +15382,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15571
15382
|
|
|
15572
15383
|
/**
|
|
15573
15384
|
* Forcing an export so that this code will execute
|
|
15574
|
-
* @
|
|
15385
|
+
* @internal
|
|
15575
15386
|
*/
|
|
15576
15387
|
var name = "Statics";
|
|
15577
15388
|
|
|
@@ -16022,8 +15833,7 @@ var TextBlock = /** @class */ (function (_super) {
|
|
|
16022
15833
|
}
|
|
16023
15834
|
};
|
|
16024
15835
|
/**
|
|
16025
|
-
* @
|
|
16026
|
-
* @hidden
|
|
15836
|
+
* @internal
|
|
16027
15837
|
*/
|
|
16028
15838
|
TextBlock.prototype._draw = function (context) {
|
|
16029
15839
|
context.save();
|
|
@@ -16279,7 +16089,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16279
16089
|
/* harmony export */ });
|
|
16280
16090
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../../../node_modules/tslib/tslib.es6.js");
|
|
16281
16091
|
|
|
16282
|
-
/** @
|
|
16092
|
+
/** @internal */
|
|
16283
16093
|
var TextWrapper = /** @class */ (function () {
|
|
16284
16094
|
function TextWrapper() {
|
|
16285
16095
|
}
|
|
@@ -16531,15 +16341,7 @@ var ToggleButton = /** @class */ (function (_super) {
|
|
|
16531
16341
|
};
|
|
16532
16342
|
// While being a container, the toggle button behaves like a control.
|
|
16533
16343
|
/**
|
|
16534
|
-
* @
|
|
16535
|
-
* @param y
|
|
16536
|
-
* @param pi
|
|
16537
|
-
* @param type
|
|
16538
|
-
* @param pointerId
|
|
16539
|
-
* @param buttonIndex
|
|
16540
|
-
* @param deltaX
|
|
16541
|
-
* @param deltaY
|
|
16542
|
-
* @hidden
|
|
16344
|
+
* @internal
|
|
16543
16345
|
*/
|
|
16544
16346
|
ToggleButton.prototype._processPicking = function (x, y, pi, type, pointerId, buttonIndex, deltaX, deltaY) {
|
|
16545
16347
|
if (!this._isEnabled || !this.isHitTestVisible || !this.isVisible || this.notRenderable) {
|
|
@@ -16565,9 +16367,7 @@ var ToggleButton = /** @class */ (function (_super) {
|
|
|
16565
16367
|
return true;
|
|
16566
16368
|
};
|
|
16567
16369
|
/**
|
|
16568
|
-
* @
|
|
16569
|
-
* @param pi
|
|
16570
|
-
* @hidden
|
|
16370
|
+
* @internal
|
|
16571
16371
|
*/
|
|
16572
16372
|
ToggleButton.prototype._onPointerEnter = function (target, pi) {
|
|
16573
16373
|
if (!_super.prototype._onPointerEnter.call(this, target, pi)) {
|
|
@@ -16589,10 +16389,7 @@ var ToggleButton = /** @class */ (function (_super) {
|
|
|
16589
16389
|
return true;
|
|
16590
16390
|
};
|
|
16591
16391
|
/**
|
|
16592
|
-
* @
|
|
16593
|
-
* @param pi
|
|
16594
|
-
* @param force
|
|
16595
|
-
* @hidden
|
|
16392
|
+
* @internal
|
|
16596
16393
|
*/
|
|
16597
16394
|
ToggleButton.prototype._onPointerOut = function (target, pi, force) {
|
|
16598
16395
|
if (force === void 0) { force = false; }
|
|
@@ -16611,12 +16408,7 @@ var ToggleButton = /** @class */ (function (_super) {
|
|
|
16611
16408
|
_super.prototype._onPointerOut.call(this, target, pi, force);
|
|
16612
16409
|
};
|
|
16613
16410
|
/**
|
|
16614
|
-
* @
|
|
16615
|
-
* @param coordinates
|
|
16616
|
-
* @param pointerId
|
|
16617
|
-
* @param buttonIndex
|
|
16618
|
-
* @param pi
|
|
16619
|
-
* @hidden
|
|
16411
|
+
* @internal
|
|
16620
16412
|
*/
|
|
16621
16413
|
ToggleButton.prototype._onPointerDown = function (target, coordinates, pointerId, buttonIndex, pi) {
|
|
16622
16414
|
if (!_super.prototype._onPointerDown.call(this, target, coordinates, pointerId, buttonIndex, pi)) {
|
|
@@ -16638,13 +16430,7 @@ var ToggleButton = /** @class */ (function (_super) {
|
|
|
16638
16430
|
return true;
|
|
16639
16431
|
};
|
|
16640
16432
|
/**
|
|
16641
|
-
* @
|
|
16642
|
-
* @param coordinates
|
|
16643
|
-
* @param pointerId
|
|
16644
|
-
* @param buttonIndex
|
|
16645
|
-
* @param notifyClick
|
|
16646
|
-
* @param pi
|
|
16647
|
-
* @hidden
|
|
16433
|
+
* @internal
|
|
16648
16434
|
*/
|
|
16649
16435
|
ToggleButton.prototype._onPointerUp = function (target, coordinates, pointerId, buttonIndex, notifyClick, pi) {
|
|
16650
16436
|
if (!this.isReadOnly) {
|
|
@@ -16955,9 +16741,7 @@ var VirtualKeyboard = /** @class */ (function (_super) {
|
|
|
16955
16741
|
return returnValue;
|
|
16956
16742
|
};
|
|
16957
16743
|
/**
|
|
16958
|
-
* @
|
|
16959
|
-
* @param host
|
|
16960
|
-
* @hidden
|
|
16744
|
+
* @internal
|
|
16961
16745
|
*/
|
|
16962
16746
|
VirtualKeyboard.prototype._parseFromContent = function (serializedObject, host) {
|
|
16963
16747
|
var _this = this;
|
|
@@ -17631,7 +17415,7 @@ var Style = /** @class */ (function () {
|
|
|
17631
17415
|
this._fontFamily = "Arial";
|
|
17632
17416
|
this._fontStyle = "";
|
|
17633
17417
|
this._fontWeight = "";
|
|
17634
|
-
/** @
|
|
17418
|
+
/** @internal */
|
|
17635
17419
|
this._fontSize = new _valueAndUnit__WEBPACK_IMPORTED_MODULE_1__.ValueAndUnit(18, _valueAndUnit__WEBPACK_IMPORTED_MODULE_1__.ValueAndUnit.UNITMODE_PIXEL, false);
|
|
17636
17420
|
/**
|
|
17637
17421
|
* Observable raised when the style values are changed
|
|
@@ -18904,7 +18688,7 @@ var Control3D = /** @class */ (function () {
|
|
|
18904
18688
|
this._enterCount = -1;
|
|
18905
18689
|
this._downPointerIds = {}; // Store number of pointer downs per ID, from near and far interactions
|
|
18906
18690
|
this._isVisible = true;
|
|
18907
|
-
/** @
|
|
18691
|
+
/** @internal */
|
|
18908
18692
|
this._isScaledByManager = false;
|
|
18909
18693
|
/**
|
|
18910
18694
|
* An event triggered when the pointer moves over the control
|
|
@@ -19108,8 +18892,7 @@ var Control3D = /** @class */ (function () {
|
|
|
19108
18892
|
return this;
|
|
19109
18893
|
};
|
|
19110
18894
|
/**
|
|
19111
|
-
* @
|
|
19112
|
-
* @hidden*
|
|
18895
|
+
* @internal*
|
|
19113
18896
|
*/
|
|
19114
18897
|
Control3D.prototype._prepareNode = function (scene) {
|
|
19115
18898
|
if (!this._node) {
|
|
@@ -19154,16 +18937,13 @@ var Control3D = /** @class */ (function () {
|
|
|
19154
18937
|
};
|
|
19155
18938
|
// Pointers
|
|
19156
18939
|
/**
|
|
19157
|
-
* @
|
|
19158
|
-
* @param coordinates
|
|
19159
|
-
* @hidden
|
|
18940
|
+
* @internal
|
|
19160
18941
|
*/
|
|
19161
18942
|
Control3D.prototype._onPointerMove = function (target, coordinates) {
|
|
19162
18943
|
this.onPointerMoveObservable.notifyObservers(coordinates, -1, target, this);
|
|
19163
18944
|
};
|
|
19164
18945
|
/**
|
|
19165
|
-
* @
|
|
19166
|
-
* @hidden
|
|
18946
|
+
* @internal
|
|
19167
18947
|
*/
|
|
19168
18948
|
Control3D.prototype._onPointerEnter = function (target) {
|
|
19169
18949
|
if (this._enterCount === -1) {
|
|
@@ -19181,8 +18961,7 @@ var Control3D = /** @class */ (function () {
|
|
|
19181
18961
|
return true;
|
|
19182
18962
|
};
|
|
19183
18963
|
/**
|
|
19184
|
-
* @
|
|
19185
|
-
* @hidden
|
|
18964
|
+
* @internal
|
|
19186
18965
|
*/
|
|
19187
18966
|
Control3D.prototype._onPointerOut = function (target) {
|
|
19188
18967
|
this._enterCount--;
|
|
@@ -19196,11 +18975,7 @@ var Control3D = /** @class */ (function () {
|
|
|
19196
18975
|
}
|
|
19197
18976
|
};
|
|
19198
18977
|
/**
|
|
19199
|
-
* @
|
|
19200
|
-
* @param coordinates
|
|
19201
|
-
* @param pointerId
|
|
19202
|
-
* @param buttonIndex
|
|
19203
|
-
* @hidden
|
|
18978
|
+
* @internal
|
|
19204
18979
|
*/
|
|
19205
18980
|
Control3D.prototype._onPointerDown = function (target, coordinates, pointerId, buttonIndex) {
|
|
19206
18981
|
this._downCount++;
|
|
@@ -19215,12 +18990,7 @@ var Control3D = /** @class */ (function () {
|
|
|
19215
18990
|
return true;
|
|
19216
18991
|
};
|
|
19217
18992
|
/**
|
|
19218
|
-
* @
|
|
19219
|
-
* @param coordinates
|
|
19220
|
-
* @param pointerId
|
|
19221
|
-
* @param buttonIndex
|
|
19222
|
-
* @param notifyClick
|
|
19223
|
-
* @hidden
|
|
18993
|
+
* @internal
|
|
19224
18994
|
*/
|
|
19225
18995
|
Control3D.prototype._onPointerUp = function (target, coordinates, pointerId, buttonIndex, notifyClick) {
|
|
19226
18996
|
this._downCount--;
|
|
@@ -19244,8 +19014,7 @@ var Control3D = /** @class */ (function () {
|
|
|
19244
19014
|
}
|
|
19245
19015
|
};
|
|
19246
19016
|
/**
|
|
19247
|
-
* @
|
|
19248
|
-
* @hidden
|
|
19017
|
+
* @internal
|
|
19249
19018
|
*/
|
|
19250
19019
|
Control3D.prototype.forcePointerUp = function (pointerId) {
|
|
19251
19020
|
if (pointerId === void 0) { pointerId = null; }
|
|
@@ -19263,12 +19032,7 @@ var Control3D = /** @class */ (function () {
|
|
|
19263
19032
|
}
|
|
19264
19033
|
};
|
|
19265
19034
|
/**
|
|
19266
|
-
* @
|
|
19267
|
-
* @param pickedPoint
|
|
19268
|
-
* @param originMeshPosition
|
|
19269
|
-
* @param pointerId
|
|
19270
|
-
* @param buttonIndex
|
|
19271
|
-
* @hidden
|
|
19035
|
+
* @internal
|
|
19272
19036
|
*/
|
|
19273
19037
|
Control3D.prototype._processObservables = function (type, pickedPoint, originMeshPosition, pointerId, buttonIndex) {
|
|
19274
19038
|
if (this._isTouchButton3D(this) && originMeshPosition) {
|
|
@@ -19301,7 +19065,7 @@ var Control3D = /** @class */ (function () {
|
|
|
19301
19065
|
}
|
|
19302
19066
|
return false;
|
|
19303
19067
|
};
|
|
19304
|
-
/** @
|
|
19068
|
+
/** @internal */
|
|
19305
19069
|
Control3D.prototype._disposeNode = function () {
|
|
19306
19070
|
if (this._node) {
|
|
19307
19071
|
this._node.dispose();
|
|
@@ -20171,7 +19935,7 @@ var HolographicSlate = /** @class */ (function (_super) {
|
|
|
20171
19935
|
return "HolographicSlate";
|
|
20172
19936
|
};
|
|
20173
19937
|
/**
|
|
20174
|
-
* @
|
|
19938
|
+
* @internal
|
|
20175
19939
|
*/
|
|
20176
19940
|
HolographicSlate.prototype._positionElements = function () {
|
|
20177
19941
|
var followButton = this._followButton;
|
|
@@ -20226,7 +19990,7 @@ var HolographicSlate = /** @class */ (function (_super) {
|
|
|
20226
19990
|
this._contentScaleRatio = 1;
|
|
20227
19991
|
};
|
|
20228
19992
|
/**
|
|
20229
|
-
* @
|
|
19993
|
+
* @internal
|
|
20230
19994
|
*/
|
|
20231
19995
|
HolographicSlate.prototype._updatePivot = function () {
|
|
20232
19996
|
if (!this.mesh) {
|
|
@@ -20358,8 +20122,7 @@ var HolographicSlate = /** @class */ (function (_super) {
|
|
|
20358
20122
|
this._applyContentViewport();
|
|
20359
20123
|
};
|
|
20360
20124
|
/**
|
|
20361
|
-
* @
|
|
20362
|
-
* @hidden*
|
|
20125
|
+
* @internal*
|
|
20363
20126
|
*/
|
|
20364
20127
|
HolographicSlate.prototype._prepareNode = function (scene) {
|
|
20365
20128
|
var _this = this;
|
|
@@ -21623,10 +21386,7 @@ var TouchButton3D = /** @class */ (function (_super) {
|
|
|
21623
21386
|
return abc - d;
|
|
21624
21387
|
};
|
|
21625
21388
|
/**
|
|
21626
|
-
* @
|
|
21627
|
-
* @param nearMeshPosition
|
|
21628
|
-
* @param activeInteractionCount
|
|
21629
|
-
* @hidden
|
|
21389
|
+
* @internal
|
|
21630
21390
|
*/
|
|
21631
21391
|
TouchButton3D.prototype._generatePointerEventType = function (providedType, nearMeshPosition, activeInteractionCount) {
|
|
21632
21392
|
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 +23014,9 @@ var GUI3DManager = /** @class */ (function () {
|
|
|
23254
23014
|
function GUI3DManager(scene) {
|
|
23255
23015
|
var _this = this;
|
|
23256
23016
|
this._customControlScaling = 1.0;
|
|
23257
|
-
/** @
|
|
23017
|
+
/** @internal */
|
|
23258
23018
|
this._lastControlOver = {};
|
|
23259
|
-
/** @
|
|
23019
|
+
/** @internal */
|
|
23260
23020
|
this._lastControlDown = {};
|
|
23261
23021
|
/**
|
|
23262
23022
|
* Observable raised when the point picked by the pointer events changed
|
|
@@ -23267,9 +23027,9 @@ var GUI3DManager = /** @class */ (function () {
|
|
|
23267
23027
|
*/
|
|
23268
23028
|
this.onPickingObservable = new core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__.Observable();
|
|
23269
23029
|
// Shared resources
|
|
23270
|
-
/** @
|
|
23030
|
+
/** @internal */
|
|
23271
23031
|
this._sharedMaterials = {};
|
|
23272
|
-
/** @
|
|
23032
|
+
/** @internal */
|
|
23273
23033
|
this._touchSharedMaterials = {};
|
|
23274
23034
|
this._scene = scene || core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__.EngineStore.LastCreatedScene;
|
|
23275
23035
|
this._sceneDisposeObserver = this._scene.onDisposeObservable.add(function () {
|
|
@@ -23583,7 +23343,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
23583
23343
|
|
|
23584
23344
|
|
|
23585
23345
|
|
|
23586
|
-
/** @
|
|
23346
|
+
/** @internal */
|
|
23587
23347
|
var FluentMaterialDefines = /** @class */ (function (_super) {
|
|
23588
23348
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(FluentMaterialDefines, _super);
|
|
23589
23349
|
function FluentMaterialDefines() {
|
|
@@ -23903,7 +23663,7 @@ var name = "fluentPixelShader";
|
|
|
23903
23663
|
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
23664
|
// Sideeffect
|
|
23905
23665
|
core_Engines_shaderStore__WEBPACK_IMPORTED_MODULE_0__.ShaderStore.ShadersStore[name] = shader;
|
|
23906
|
-
/** @
|
|
23666
|
+
/** @internal */
|
|
23907
23667
|
var fluentPixelShader = { name: name, shader: shader };
|
|
23908
23668
|
|
|
23909
23669
|
|
|
@@ -23927,7 +23687,7 @@ var name = "fluentVertexShader";
|
|
|
23927
23687
|
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
23688
|
// Sideeffect
|
|
23929
23689
|
core_Engines_shaderStore__WEBPACK_IMPORTED_MODULE_0__.ShaderStore.ShadersStore[name] = shader;
|
|
23930
|
-
/** @
|
|
23690
|
+
/** @internal */
|
|
23931
23691
|
var fluentVertexShader = { name: name, shader: shader };
|
|
23932
23692
|
|
|
23933
23693
|
|
|
@@ -23962,7 +23722,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
23962
23722
|
|
|
23963
23723
|
|
|
23964
23724
|
|
|
23965
|
-
/** @
|
|
23725
|
+
/** @internal */
|
|
23966
23726
|
var FluentBackplateMaterialDefines = /** @class */ (function (_super) {
|
|
23967
23727
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(FluentBackplateMaterialDefines, _super);
|
|
23968
23728
|
function FluentBackplateMaterialDefines() {
|
|
@@ -23997,7 +23757,7 @@ var FluentBackplateMaterial = /** @class */ (function (_super) {
|
|
|
23997
23757
|
* Since desktop and VR/AR have different relative sizes, it's usually best to keep this false.
|
|
23998
23758
|
*/
|
|
23999
23759
|
_this.absoluteSizes = false;
|
|
24000
|
-
/** @
|
|
23760
|
+
/** @internal */
|
|
24001
23761
|
_this._filterWidth = 1;
|
|
24002
23762
|
/**
|
|
24003
23763
|
* Gets or sets the base color of the backplate.
|
|
@@ -24051,7 +23811,7 @@ var FluentBackplateMaterial = /** @class */ (function (_super) {
|
|
|
24051
23811
|
* Gets or sets the opacity of the fluent hover glow effect corresponding to the right pointer (0.0 - 1.0). Default is 0.
|
|
24052
23812
|
*/
|
|
24053
23813
|
_this.blobFade2 = 0;
|
|
24054
|
-
/** @
|
|
23814
|
+
/** @internal */
|
|
24055
23815
|
_this._rate = 0.135;
|
|
24056
23816
|
/**
|
|
24057
23817
|
* Gets or sets the color of the highlights on the backplate line.
|
|
@@ -24061,9 +23821,9 @@ var FluentBackplateMaterial = /** @class */ (function (_super) {
|
|
|
24061
23821
|
* Gets or sets the width of the highlights on the backplate line.
|
|
24062
23822
|
*/
|
|
24063
23823
|
_this.highlightWidth = 0.25;
|
|
24064
|
-
/** @
|
|
23824
|
+
/** @internal */
|
|
24065
23825
|
_this._highlightTransform = new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_1__.Vector4(1, 1, 0, 0);
|
|
24066
|
-
/** @
|
|
23826
|
+
/** @internal */
|
|
24067
23827
|
_this._highlight = 1;
|
|
24068
23828
|
/**
|
|
24069
23829
|
* Gets or sets the intensity of the iridescence effect.
|
|
@@ -24073,17 +23833,17 @@ var FluentBackplateMaterial = /** @class */ (function (_super) {
|
|
|
24073
23833
|
* Gets or sets the intensity of the iridescence effect on the backplate edges.
|
|
24074
23834
|
*/
|
|
24075
23835
|
_this.iridescenceEdgeIntensity = 1;
|
|
24076
|
-
/** @
|
|
23836
|
+
/** @internal */
|
|
24077
23837
|
_this._angle = -45;
|
|
24078
23838
|
/**
|
|
24079
23839
|
* Gets or sets the opacity of the backplate (0.0 - 1.0).
|
|
24080
23840
|
*/
|
|
24081
23841
|
_this.fadeOut = 1;
|
|
24082
|
-
/** @
|
|
23842
|
+
/** @internal */
|
|
24083
23843
|
_this._reflected = true;
|
|
24084
|
-
/** @
|
|
23844
|
+
/** @internal */
|
|
24085
23845
|
_this._frequency = 1;
|
|
24086
|
-
/** @
|
|
23846
|
+
/** @internal */
|
|
24087
23847
|
_this._verticalOffset = 0;
|
|
24088
23848
|
/**
|
|
24089
23849
|
* Gets or sets the world-space position of the tip of the left index finger.
|
|
@@ -24455,7 +24215,7 @@ var name = "fluentBackplatePixelShader";
|
|
|
24455
24215
|
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
24216
|
// Sideeffect
|
|
24457
24217
|
core_Engines_shaderStore__WEBPACK_IMPORTED_MODULE_0__.ShaderStore.ShadersStore[name] = shader;
|
|
24458
|
-
/** @
|
|
24218
|
+
/** @internal */
|
|
24459
24219
|
var fluentBackplatePixelShader = { name: name, shader: shader };
|
|
24460
24220
|
|
|
24461
24221
|
|
|
@@ -24479,7 +24239,7 @@ var name = "fluentBackplateVertexShader";
|
|
|
24479
24239
|
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
24240
|
// Sideeffect
|
|
24481
24241
|
core_Engines_shaderStore__WEBPACK_IMPORTED_MODULE_0__.ShaderStore.ShadersStore[name] = shader;
|
|
24482
|
-
/** @
|
|
24242
|
+
/** @internal */
|
|
24483
24243
|
var fluentBackplateVertexShader = { name: name, shader: shader };
|
|
24484
24244
|
|
|
24485
24245
|
|
|
@@ -24514,7 +24274,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
24514
24274
|
|
|
24515
24275
|
|
|
24516
24276
|
|
|
24517
|
-
/** @
|
|
24277
|
+
/** @internal */
|
|
24518
24278
|
var FluentButtonMaterialDefines = /** @class */ (function (_super) {
|
|
24519
24279
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(FluentButtonMaterialDefines, _super);
|
|
24520
24280
|
function FluentButtonMaterialDefines() {
|
|
@@ -25077,7 +24837,7 @@ var name = "fluentButtonPixelShader";
|
|
|
25077
24837
|
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
24838
|
// Sideeffect
|
|
25079
24839
|
core_Engines_shaderStore__WEBPACK_IMPORTED_MODULE_0__.ShaderStore.ShadersStore[name] = shader;
|
|
25080
|
-
/** @
|
|
24840
|
+
/** @internal */
|
|
25081
24841
|
var fluentButtonPixelShader = { name: name, shader: shader };
|
|
25082
24842
|
|
|
25083
24843
|
|
|
@@ -25101,7 +24861,7 @@ var name = "fluentButtonVertexShader";
|
|
|
25101
24861
|
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
24862
|
// Sideeffect
|
|
25103
24863
|
core_Engines_shaderStore__WEBPACK_IMPORTED_MODULE_0__.ShaderStore.ShadersStore[name] = shader;
|
|
25104
|
-
/** @
|
|
24864
|
+
/** @internal */
|
|
25105
24865
|
var fluentButtonVertexShader = { name: name, shader: shader };
|
|
25106
24866
|
|
|
25107
24867
|
|
|
@@ -25175,7 +24935,7 @@ var HandleMaterial = /** @class */ (function (_super) {
|
|
|
25175
24935
|
*/
|
|
25176
24936
|
_this.dragScale = 0.55;
|
|
25177
24937
|
/**
|
|
25178
|
-
* @
|
|
24938
|
+
* @internal
|
|
25179
24939
|
*/
|
|
25180
24940
|
_this._positionOffset = core_Materials_shaderMaterial__WEBPACK_IMPORTED_MODULE_1__.Vector3.Zero();
|
|
25181
24941
|
_this._updateInterpolationTarget();
|
|
@@ -25286,7 +25046,7 @@ var name = "handlePixelShader";
|
|
|
25286
25046
|
var shader = "uniform vec3 color;\nvoid main(void) {\ngl_FragColor=vec4(color,1.0);\n}";
|
|
25287
25047
|
// Sideeffect
|
|
25288
25048
|
core_Engines_shaderStore__WEBPACK_IMPORTED_MODULE_0__.ShaderStore.ShadersStore[name] = shader;
|
|
25289
|
-
/** @
|
|
25049
|
+
/** @internal */
|
|
25290
25050
|
var handlePixelShader = { name: name, shader: shader };
|
|
25291
25051
|
|
|
25292
25052
|
|
|
@@ -25310,7 +25070,7 @@ var name = "handleVertexShader";
|
|
|
25310
25070
|
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
25071
|
// Sideeffect
|
|
25312
25072
|
core_Engines_shaderStore__WEBPACK_IMPORTED_MODULE_0__.ShaderStore.ShadersStore[name] = shader;
|
|
25313
|
-
/** @
|
|
25073
|
+
/** @internal */
|
|
25314
25074
|
var handleVertexShader = { name: name, shader: shader };
|
|
25315
25075
|
|
|
25316
25076
|
|
|
@@ -25399,7 +25159,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
25399
25159
|
|
|
25400
25160
|
|
|
25401
25161
|
|
|
25402
|
-
/** @
|
|
25162
|
+
/** @internal */
|
|
25403
25163
|
var MRDLBackplateMaterialDefines = /** @class */ (function (_super) {
|
|
25404
25164
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(MRDLBackplateMaterialDefines, _super);
|
|
25405
25165
|
function MRDLBackplateMaterialDefines() {
|
|
@@ -25435,7 +25195,7 @@ var MRDLBackplateMaterial = /** @class */ (function (_super) {
|
|
|
25435
25195
|
* Since desktop and VR/AR have different relative sizes, it's usually best to keep this false.
|
|
25436
25196
|
*/
|
|
25437
25197
|
_this.absoluteSizes = false;
|
|
25438
|
-
/** @
|
|
25198
|
+
/** @internal */
|
|
25439
25199
|
_this._filterWidth = 1;
|
|
25440
25200
|
/**
|
|
25441
25201
|
* Gets or sets the base color of the backplate.
|
|
@@ -25461,7 +25221,7 @@ var MRDLBackplateMaterial = /** @class */ (function (_super) {
|
|
|
25461
25221
|
* Gets or sets the top left Radii Multiplier.
|
|
25462
25222
|
*/
|
|
25463
25223
|
_this.radiusBottomRight = 1.0;
|
|
25464
|
-
/** @
|
|
25224
|
+
/** @internal */
|
|
25465
25225
|
_this._rate = 0;
|
|
25466
25226
|
/**
|
|
25467
25227
|
* Gets or sets the color of the highlights on the backplate line.
|
|
@@ -25471,9 +25231,9 @@ var MRDLBackplateMaterial = /** @class */ (function (_super) {
|
|
|
25471
25231
|
* Gets or sets the width of the highlights on the backplate line.
|
|
25472
25232
|
*/
|
|
25473
25233
|
_this.highlightWidth = 0;
|
|
25474
|
-
/** @
|
|
25234
|
+
/** @internal */
|
|
25475
25235
|
_this._highlightTransform = new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_1__.Vector4(1, 1, 0, 0);
|
|
25476
|
-
/** @
|
|
25236
|
+
/** @internal */
|
|
25477
25237
|
_this._highlight = 1;
|
|
25478
25238
|
/**
|
|
25479
25239
|
* Gets or sets the intensity of the iridescence effect.
|
|
@@ -25487,17 +25247,17 @@ var MRDLBackplateMaterial = /** @class */ (function (_super) {
|
|
|
25487
25247
|
* Gets or sets the Tint of the iridescence effect on the backplate.
|
|
25488
25248
|
*/
|
|
25489
25249
|
_this.iridescenceTint = new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_1__.Color4(1, 1, 1, 1);
|
|
25490
|
-
/** @
|
|
25250
|
+
/** @internal */
|
|
25491
25251
|
_this._angle = -45;
|
|
25492
25252
|
/**
|
|
25493
25253
|
* Gets or sets the opacity of the backplate (0.0 - 1.0).
|
|
25494
25254
|
*/
|
|
25495
25255
|
_this.fadeOut = 1;
|
|
25496
|
-
/** @
|
|
25256
|
+
/** @internal */
|
|
25497
25257
|
_this._reflected = true;
|
|
25498
|
-
/** @
|
|
25258
|
+
/** @internal */
|
|
25499
25259
|
_this._frequency = 1;
|
|
25500
|
-
/** @
|
|
25260
|
+
/** @internal */
|
|
25501
25261
|
_this._verticalOffset = 0;
|
|
25502
25262
|
/**
|
|
25503
25263
|
* Gets or sets the gradient color effect on the backplate.
|
|
@@ -25854,7 +25614,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
25854
25614
|
|
|
25855
25615
|
|
|
25856
25616
|
|
|
25857
|
-
/** @
|
|
25617
|
+
/** @internal */
|
|
25858
25618
|
var MRDLSliderBarMaterialDefines = /** @class */ (function (_super) {
|
|
25859
25619
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(MRDLSliderBarMaterialDefines, _super);
|
|
25860
25620
|
function MRDLSliderBarMaterialDefines() {
|
|
@@ -26134,43 +25894,43 @@ var MRDLSliderBarMaterial = /** @class */ (function (_super) {
|
|
|
26134
25894
|
*/
|
|
26135
25895
|
_this.iridescenceIntensity = 0;
|
|
26136
25896
|
/**
|
|
26137
|
-
* @
|
|
25897
|
+
* @internal
|
|
26138
25898
|
*/
|
|
26139
25899
|
_this.useGlobalLeftIndex = 1.0;
|
|
26140
25900
|
/**
|
|
26141
|
-
* @
|
|
25901
|
+
* @internal
|
|
26142
25902
|
*/
|
|
26143
25903
|
_this.useGlobalRightIndex = 1.0;
|
|
26144
25904
|
/**
|
|
26145
|
-
* @
|
|
25905
|
+
* @internal
|
|
26146
25906
|
*/
|
|
26147
25907
|
_this.globalLeftIndexTipProximity = 0.0;
|
|
26148
25908
|
/**
|
|
26149
|
-
* @
|
|
25909
|
+
* @internal
|
|
26150
25910
|
*/
|
|
26151
25911
|
_this.globalRightIndexTipProximity = 0.0;
|
|
26152
25912
|
/**
|
|
26153
|
-
* @
|
|
25913
|
+
* @internal
|
|
26154
25914
|
*/
|
|
26155
25915
|
_this.globalLeftIndexTipPosition = new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_1__.Vector4(0.5, 0.0, -0.55, 1.0);
|
|
26156
25916
|
/**
|
|
26157
|
-
* @
|
|
25917
|
+
* @internal
|
|
26158
25918
|
*/
|
|
26159
25919
|
_this.globaRightIndexTipPosition = new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_1__.Vector4(0.0, 0.0, 0.0, 1.0);
|
|
26160
25920
|
/**
|
|
26161
|
-
* @
|
|
25921
|
+
* @internal
|
|
26162
25922
|
*/
|
|
26163
25923
|
_this.globalLeftThumbTipPosition = new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_1__.Vector4(0.5, 0.0, -0.55, 1.0);
|
|
26164
25924
|
/**
|
|
26165
|
-
* @
|
|
25925
|
+
* @internal
|
|
26166
25926
|
*/
|
|
26167
25927
|
_this.globalRightThumbTipPosition = new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_1__.Vector4(0.0, 0.0, 0.0, 1.0);
|
|
26168
25928
|
/**
|
|
26169
|
-
* @
|
|
25929
|
+
* @internal
|
|
26170
25930
|
*/
|
|
26171
25931
|
_this.globalLeftIndexMiddlePosition = new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_1__.Vector4(0.5, 0.0, -0.55, 1.0);
|
|
26172
25932
|
/**
|
|
26173
|
-
* @
|
|
25933
|
+
* @internal
|
|
26174
25934
|
*/
|
|
26175
25935
|
_this.globalRightIndexMiddlePosition = new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_1__.Vector4(0.0, 0.0, 0.0, 1.0);
|
|
26176
25936
|
_this.alphaMode = core_Misc_decorators__WEBPACK_IMPORTED_MODULE_1__.Constants.ALPHA_DISABLE;
|
|
@@ -26724,7 +26484,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
26724
26484
|
|
|
26725
26485
|
|
|
26726
26486
|
|
|
26727
|
-
/** @
|
|
26487
|
+
/** @internal */
|
|
26728
26488
|
var MRDLSliderThumbMaterialDefines = /** @class */ (function (_super) {
|
|
26729
26489
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(MRDLSliderThumbMaterialDefines, _super);
|
|
26730
26490
|
function MRDLSliderThumbMaterialDefines() {
|
|
@@ -27004,43 +26764,43 @@ var MRDLSliderThumbMaterial = /** @class */ (function (_super) {
|
|
|
27004
26764
|
*/
|
|
27005
26765
|
_this.iridescenceIntensity = 0;
|
|
27006
26766
|
/**
|
|
27007
|
-
* @
|
|
26767
|
+
* @internal
|
|
27008
26768
|
*/
|
|
27009
26769
|
_this.useGlobalLeftIndex = 1.0;
|
|
27010
26770
|
/**
|
|
27011
|
-
* @
|
|
26771
|
+
* @internal
|
|
27012
26772
|
*/
|
|
27013
26773
|
_this.useGlobalRightIndex = 1.0;
|
|
27014
26774
|
/**
|
|
27015
|
-
* @
|
|
26775
|
+
* @internal
|
|
27016
26776
|
*/
|
|
27017
26777
|
_this.globalLeftIndexTipProximity = 0.0;
|
|
27018
26778
|
/**
|
|
27019
|
-
* @
|
|
26779
|
+
* @internal
|
|
27020
26780
|
*/
|
|
27021
26781
|
_this.globalRightIndexTipProximity = 0.0;
|
|
27022
26782
|
/**
|
|
27023
|
-
* @
|
|
26783
|
+
* @internal
|
|
27024
26784
|
*/
|
|
27025
26785
|
_this.globalLeftIndexTipPosition = new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_1__.Vector4(0.5, 0.0, -0.55, 1.0);
|
|
27026
26786
|
/**
|
|
27027
|
-
* @
|
|
26787
|
+
* @internal
|
|
27028
26788
|
*/
|
|
27029
26789
|
_this.globaRightIndexTipPosition = new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_1__.Vector4(0.0, 0.0, 0.0, 1.0);
|
|
27030
26790
|
/**
|
|
27031
|
-
* @
|
|
26791
|
+
* @internal
|
|
27032
26792
|
*/
|
|
27033
26793
|
_this.globalLeftThumbTipPosition = new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_1__.Vector4(0.5, 0.0, -0.55, 1.0);
|
|
27034
26794
|
/**
|
|
27035
|
-
* @
|
|
26795
|
+
* @internal
|
|
27036
26796
|
*/
|
|
27037
26797
|
_this.globalRightThumbTipPosition = new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_1__.Vector4(0.0, 0.0, 0.0, 1.0);
|
|
27038
26798
|
/**
|
|
27039
|
-
* @
|
|
26799
|
+
* @internal
|
|
27040
26800
|
*/
|
|
27041
26801
|
_this.globalLeftIndexMiddlePosition = new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_1__.Vector4(0.5, 0.0, -0.55, 1.0);
|
|
27042
26802
|
/**
|
|
27043
|
-
* @
|
|
26803
|
+
* @internal
|
|
27044
26804
|
*/
|
|
27045
26805
|
_this.globalRightIndexMiddlePosition = new core_Misc_decorators__WEBPACK_IMPORTED_MODULE_1__.Vector4(0.0, 0.0, 0.0, 1.0);
|
|
27046
26806
|
_this.alphaMode = core_Misc_decorators__WEBPACK_IMPORTED_MODULE_1__.Constants.ALPHA_DISABLE;
|
|
@@ -27583,7 +27343,7 @@ var name = "mrdlBackplatePixelShader";
|
|
|
27583
27343
|
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
27344
|
// Sideeffect
|
|
27585
27345
|
core_Engines_shaderStore__WEBPACK_IMPORTED_MODULE_0__.ShaderStore.ShadersStore[name] = shader;
|
|
27586
|
-
/** @
|
|
27346
|
+
/** @internal */
|
|
27587
27347
|
var mrdlBackplatePixelShader = { name: name, shader: shader };
|
|
27588
27348
|
|
|
27589
27349
|
|
|
@@ -27607,7 +27367,7 @@ var name = "mrdlBackplateVertexShader";
|
|
|
27607
27367
|
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
27368
|
// Sideeffect
|
|
27609
27369
|
core_Engines_shaderStore__WEBPACK_IMPORTED_MODULE_0__.ShaderStore.ShadersStore[name] = shader;
|
|
27610
|
-
/** @
|
|
27370
|
+
/** @internal */
|
|
27611
27371
|
var mrdlBackplateVertexShader = { name: name, shader: shader };
|
|
27612
27372
|
|
|
27613
27373
|
|
|
@@ -27631,7 +27391,7 @@ var name = "mrdlSliderBarPixelShader";
|
|
|
27631
27391
|
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
27392
|
// Sideeffect
|
|
27633
27393
|
core_Engines_shaderStore__WEBPACK_IMPORTED_MODULE_0__.ShaderStore.ShadersStore[name] = shader;
|
|
27634
|
-
/** @
|
|
27394
|
+
/** @internal */
|
|
27635
27395
|
var mrdlSliderBarPixelShader = { name: name, shader: shader };
|
|
27636
27396
|
|
|
27637
27397
|
|
|
@@ -27655,7 +27415,7 @@ var name = "mrdlSliderBarVertexShader";
|
|
|
27655
27415
|
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
27416
|
// Sideeffect
|
|
27657
27417
|
core_Engines_shaderStore__WEBPACK_IMPORTED_MODULE_0__.ShaderStore.ShadersStore[name] = shader;
|
|
27658
|
-
/** @
|
|
27418
|
+
/** @internal */
|
|
27659
27419
|
var mrdlSliderBarVertexShader = { name: name, shader: shader };
|
|
27660
27420
|
|
|
27661
27421
|
|
|
@@ -27679,7 +27439,7 @@ var name = "mrdlSliderThumbPixelShader";
|
|
|
27679
27439
|
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
27440
|
// Sideeffect
|
|
27681
27441
|
core_Engines_shaderStore__WEBPACK_IMPORTED_MODULE_0__.ShaderStore.ShadersStore[name] = shader;
|
|
27682
|
-
/** @
|
|
27442
|
+
/** @internal */
|
|
27683
27443
|
var mrdlSliderThumbPixelShader = { name: name, shader: shader };
|
|
27684
27444
|
|
|
27685
27445
|
|
|
@@ -27703,7 +27463,7 @@ var name = "mrdlSliderThumbVertexShader";
|
|
|
27703
27463
|
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
27464
|
// Sideeffect
|
|
27705
27465
|
core_Engines_shaderStore__WEBPACK_IMPORTED_MODULE_0__.ShaderStore.ShadersStore[name] = shader;
|
|
27706
|
-
/** @
|
|
27466
|
+
/** @internal */
|
|
27707
27467
|
var mrdlSliderThumbVertexShader = { name: name, shader: shader };
|
|
27708
27468
|
|
|
27709
27469
|
|