@galacean/engine-core 0.9.21 → 0.9.22
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/dist/main.js +1491 -824
- package/dist/main.js.map +1 -1
- package/dist/miniprogram.js +1491 -824
- package/dist/module.js +1105 -603
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
- package/types/RenderPipeline/RenderData.d.ts +1 -8
- package/types/RenderPipeline/enums/PipelineStage.d.ts +0 -2
- package/types/asset/GraphicsResource.d.ts +0 -4
- package/types/renderingHardwareInterface/IPlatformBuffer.d.ts +1 -0
- package/types/shader/ShaderPart.d.ts +0 -5
- package/types/shader/SubShader.d.ts +1 -0
package/dist/module.js
CHANGED
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import _create_class from '@swc/helpers/src/_create_class.mjs';
|
|
3
|
-
import _inherits from '@swc/helpers/src/_inherits.mjs';
|
|
4
|
-
import _ts_decorate from '@swc/helpers/src/_ts_decorate.mjs';
|
|
5
|
-
import _instanceof from '@swc/helpers/src/_instanceof.mjs';
|
|
6
|
-
import { Vector3, Quaternion, Matrix, MathUtil as MathUtil$1, Matrix3x3, Vector2, Ray, Color as Color$1, Vector4, BoundingBox, Plane, BoundingSphere, FrustumFace, CollisionUtil, BoundingFrustum, Rect } from '@galacean/engine-math';
|
|
7
|
-
import _extends from '@swc/helpers/src/_extends.mjs';
|
|
1
|
+
import { Quaternion, Vector3, Matrix3x3, Matrix, MathUtil as MathUtil$1, Vector2, Ray, Color as Color$1, Vector4, BoundingBox, Plane, BoundingSphere, FrustumFace, CollisionUtil, BoundingFrustum, Rect } from '@galacean/engine-math';
|
|
8
2
|
|
|
9
3
|
/**
|
|
10
4
|
* The platform (including operating system and hardware) is running on.
|
|
@@ -17,6 +11,50 @@ import _extends from '@swc/helpers/src/_extends.mjs';
|
|
|
17
11
|
Platform[Platform[/** Unknown platform. */ "Unknown"] = 4] = "Unknown";
|
|
18
12
|
})(Platform || (Platform = {}));
|
|
19
13
|
|
|
14
|
+
function _assert_this_initialized(self) {
|
|
15
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
16
|
+
|
|
17
|
+
return self;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function _defineProperties(target, props) {
|
|
21
|
+
for (var i = 0; i < props.length; i++) {
|
|
22
|
+
var descriptor = props[i];
|
|
23
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
24
|
+
descriptor.configurable = true;
|
|
25
|
+
|
|
26
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
27
|
+
|
|
28
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
32
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
33
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
34
|
+
|
|
35
|
+
return Constructor;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function _set_prototype_of(o, p) {
|
|
39
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
40
|
+
o.__proto__ = p;
|
|
41
|
+
|
|
42
|
+
return o;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
return _set_prototype_of(o, p);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function _inherits(subClass, superClass) {
|
|
49
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
50
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } });
|
|
54
|
+
|
|
55
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
56
|
+
}
|
|
57
|
+
|
|
20
58
|
/**
|
|
21
59
|
* Common utility methods for math operations.
|
|
22
60
|
*/ var MathUtil = /*#__PURE__*/ function() {
|
|
@@ -62,9 +100,15 @@ import _extends from '@swc/helpers/src/_extends.mjs';
|
|
|
62
100
|
};
|
|
63
101
|
return MathUtil;
|
|
64
102
|
}();
|
|
65
|
-
|
|
66
|
-
/** The
|
|
67
|
-
|
|
103
|
+
(function() {
|
|
104
|
+
/** The value for which all absolute numbers smaller than are considered equal to zero. */ MathUtil.zeroTolerance = 1e-6;
|
|
105
|
+
})();
|
|
106
|
+
(function() {
|
|
107
|
+
/** The conversion factor that radian to degree. */ MathUtil.radToDegreeFactor = 180 / Math.PI;
|
|
108
|
+
})();
|
|
109
|
+
(function() {
|
|
110
|
+
/** The conversion factor that degree to radian. */ MathUtil.degreeToRadFactor = Math.PI / 180;
|
|
111
|
+
})();
|
|
68
112
|
|
|
69
113
|
/**
|
|
70
114
|
* Describes a color in the from of RGBA (in order: R, G, B, A).
|
|
@@ -327,6 +371,34 @@ import _extends from '@swc/helpers/src/_extends.mjs';
|
|
|
327
371
|
return Color;
|
|
328
372
|
}();
|
|
329
373
|
|
|
374
|
+
/******************************************************************************
|
|
375
|
+
Copyright (c) Microsoft Corporation.
|
|
376
|
+
|
|
377
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
378
|
+
purpose with or without fee is hereby granted.
|
|
379
|
+
|
|
380
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
381
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
382
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
383
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
384
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
385
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
386
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
387
|
+
***************************************************************************** */
|
|
388
|
+
|
|
389
|
+
function __decorate(decorators, target, key, desc) {
|
|
390
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
391
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
392
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
393
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
function _instanceof(left, right) {
|
|
397
|
+
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
398
|
+
return !!right[Symbol.hasInstance](left);
|
|
399
|
+
} else return left instanceof right;
|
|
400
|
+
}
|
|
401
|
+
|
|
330
402
|
/**
|
|
331
403
|
* Clone mode.
|
|
332
404
|
*/ var CloneMode;
|
|
@@ -505,16 +577,22 @@ import _extends from '@swc/helpers/src/_extends.mjs';
|
|
|
505
577
|
};
|
|
506
578
|
return CloneManager;
|
|
507
579
|
}();
|
|
508
|
-
|
|
509
|
-
/** @internal */ CloneManager.
|
|
510
|
-
|
|
580
|
+
(function() {
|
|
581
|
+
/** @internal */ CloneManager._subCloneModeMap = new Map();
|
|
582
|
+
})();
|
|
583
|
+
(function() {
|
|
584
|
+
/** @internal */ CloneManager._cloneModeMap = new Map();
|
|
585
|
+
})();
|
|
586
|
+
(function() {
|
|
587
|
+
CloneManager._objectType = Object.getPrototypeOf(Object);
|
|
588
|
+
})();
|
|
511
589
|
|
|
512
590
|
/**
|
|
513
591
|
* EngineObject.
|
|
514
592
|
*/ var EngineObject = /*#__PURE__*/ function() {
|
|
515
593
|
function EngineObject(engine) {
|
|
516
|
-
this._destroyed = false;
|
|
517
594
|
/** Engine unique id. */ this.instanceId = ++EngineObject._instanceIdCounter;
|
|
595
|
+
this._destroyed = false;
|
|
518
596
|
this._engine = engine;
|
|
519
597
|
}
|
|
520
598
|
var _proto = EngineObject.prototype;
|
|
@@ -546,11 +624,13 @@ CloneManager._objectType = Object.getPrototypeOf(Object);
|
|
|
546
624
|
]);
|
|
547
625
|
return EngineObject;
|
|
548
626
|
}();
|
|
549
|
-
|
|
550
|
-
|
|
627
|
+
(function() {
|
|
628
|
+
EngineObject._instanceIdCounter = 0;
|
|
629
|
+
})();
|
|
630
|
+
__decorate([
|
|
551
631
|
ignoreClone
|
|
552
632
|
], EngineObject.prototype, "instanceId", void 0);
|
|
553
|
-
|
|
633
|
+
__decorate([
|
|
554
634
|
ignoreClone
|
|
555
635
|
], EngineObject.prototype, "_engine", void 0);
|
|
556
636
|
|
|
@@ -1952,9 +2032,10 @@ var GLCapabilityType;
|
|
|
1952
2032
|
]);
|
|
1953
2033
|
return Font;
|
|
1954
2034
|
}(RefObject);
|
|
1955
|
-
|
|
2035
|
+
(function() {
|
|
2036
|
+
Font._fontMap = {};
|
|
2037
|
+
})();
|
|
1956
2038
|
|
|
1957
|
-
var _Symbol_toStringTag = Symbol.toStringTag;
|
|
1958
2039
|
var AssetPromise = /*#__PURE__*/ function() {
|
|
1959
2040
|
function AssetPromise(executor) {
|
|
1960
2041
|
var _this = this;
|
|
@@ -2075,7 +2156,7 @@ var AssetPromise = /*#__PURE__*/ function() {
|
|
|
2075
2156
|
};
|
|
2076
2157
|
_create_class(AssetPromise, [
|
|
2077
2158
|
{
|
|
2078
|
-
key:
|
|
2159
|
+
key: Symbol.toStringTag,
|
|
2079
2160
|
get: /** compatible with Promise */ function get() {
|
|
2080
2161
|
return "AssetPromise";
|
|
2081
2162
|
}
|
|
@@ -2346,13 +2427,13 @@ var /** @internal */ PromiseState;
|
|
|
2346
2427
|
};
|
|
2347
2428
|
_proto._parseQueryPath = function _parseQueryPath(string) {
|
|
2348
2429
|
var result = [];
|
|
2349
|
-
if (string.charCodeAt(0) === charCodeOfDot) {
|
|
2430
|
+
if (string.charCodeAt(0) === charCodeOfDot$1) {
|
|
2350
2431
|
result.push("");
|
|
2351
2432
|
}
|
|
2352
|
-
string.replace(rePropName, function(match, expression, quote, subString) {
|
|
2433
|
+
string.replace(rePropName$1, function(match, expression, quote, subString) {
|
|
2353
2434
|
var key = match;
|
|
2354
2435
|
if (quote) {
|
|
2355
|
-
key = subString.replace(reEscapeChar, "$1");
|
|
2436
|
+
key = subString.replace(reEscapeChar$1, "$1");
|
|
2356
2437
|
} else if (expression) {
|
|
2357
2438
|
key = expression.trim();
|
|
2358
2439
|
}
|
|
@@ -2410,8 +2491,12 @@ var /** @internal */ PromiseState;
|
|
|
2410
2491
|
};
|
|
2411
2492
|
return ResourceManager;
|
|
2412
2493
|
}();
|
|
2413
|
-
|
|
2414
|
-
ResourceManager.
|
|
2494
|
+
(function() {
|
|
2495
|
+
/** Loader collection. */ ResourceManager._loaders = {};
|
|
2496
|
+
})();
|
|
2497
|
+
(function() {
|
|
2498
|
+
ResourceManager._extTypeMapping = {};
|
|
2499
|
+
})();
|
|
2415
2500
|
/**
|
|
2416
2501
|
* Declare ResourceLoader's decorator.
|
|
2417
2502
|
* @param assetType - Type of asset
|
|
@@ -2423,9 +2508,9 @@ ResourceManager._extTypeMapping = {};
|
|
|
2423
2508
|
ResourceManager._addLoader(assetType, loader, extnames);
|
|
2424
2509
|
};
|
|
2425
2510
|
}
|
|
2426
|
-
var charCodeOfDot = ".".charCodeAt(0);
|
|
2427
|
-
var reEscapeChar = /\\(\\)?/g;
|
|
2428
|
-
var rePropName = RegExp(// Match anything that isn't a dot or bracket.
|
|
2511
|
+
var charCodeOfDot$1 = ".".charCodeAt(0);
|
|
2512
|
+
var reEscapeChar$1 = /\\(\\)?/g;
|
|
2513
|
+
var rePropName$1 = RegExp(// Match anything that isn't a dot or bracket.
|
|
2429
2514
|
"[^.[\\]]+" + "|" + // Or match property names within brackets.
|
|
2430
2515
|
"\\[(?:" + // Match a non-string expression.
|
|
2431
2516
|
"([^\"'][^[]*)" + "|" + // Or match strings (supports escaping characters).
|
|
@@ -2769,10 +2854,14 @@ var ComponentCloner = /*#__PURE__*/ function() {
|
|
|
2769
2854
|
};
|
|
2770
2855
|
return ComponentsDependencies;
|
|
2771
2856
|
}();
|
|
2772
|
-
|
|
2857
|
+
(function() {
|
|
2858
|
+
/**
|
|
2773
2859
|
* @internal
|
|
2774
2860
|
*/ ComponentsDependencies._dependenciesMap = new Map();
|
|
2775
|
-
|
|
2861
|
+
})();
|
|
2862
|
+
(function() {
|
|
2863
|
+
ComponentsDependencies._invDependenciesMap = new Map();
|
|
2864
|
+
})();
|
|
2776
2865
|
/**
|
|
2777
2866
|
* Dependent components, automatically added if they do not exist.
|
|
2778
2867
|
* @param components - Dependent components
|
|
@@ -2988,19 +3077,19 @@ ComponentsDependencies._invDependenciesMap = new Map();
|
|
|
2988
3077
|
]);
|
|
2989
3078
|
return Component;
|
|
2990
3079
|
}(EngineObject);
|
|
2991
|
-
|
|
3080
|
+
__decorate([
|
|
2992
3081
|
ignoreClone
|
|
2993
3082
|
], Component.prototype, "_entity", void 0);
|
|
2994
|
-
|
|
3083
|
+
__decorate([
|
|
2995
3084
|
ignoreClone
|
|
2996
3085
|
], Component.prototype, "_awoken", void 0);
|
|
2997
|
-
|
|
3086
|
+
__decorate([
|
|
2998
3087
|
ignoreClone
|
|
2999
3088
|
], Component.prototype, "_destroyed", void 0);
|
|
3000
|
-
|
|
3089
|
+
__decorate([
|
|
3001
3090
|
ignoreClone
|
|
3002
3091
|
], Component.prototype, "_phasedActive", void 0);
|
|
3003
|
-
|
|
3092
|
+
__decorate([
|
|
3004
3093
|
assignmentClone
|
|
3005
3094
|
], Component.prototype, "_enabled", void 0);
|
|
3006
3095
|
|
|
@@ -3072,7 +3161,6 @@ _ts_decorate([
|
|
|
3072
3161
|
function Transform(entity) {
|
|
3073
3162
|
var _this;
|
|
3074
3163
|
_this = Component.call(this, entity) || this;
|
|
3075
|
-
_this._dirtyFlag = 0xbc;
|
|
3076
3164
|
_this._position = new Vector3();
|
|
3077
3165
|
_this._rotation = new Vector3();
|
|
3078
3166
|
_this._rotationQuaternion = new Quaternion();
|
|
@@ -3085,6 +3173,7 @@ _ts_decorate([
|
|
|
3085
3173
|
_this._worldMatrix = new Matrix();
|
|
3086
3174
|
_this._isParentDirty = true;
|
|
3087
3175
|
_this._parentTransformCache = null;
|
|
3176
|
+
_this._dirtyFlag = 0xbc;
|
|
3088
3177
|
/** @internal */ _this._updateFlagManager = new UpdateFlagManager();
|
|
3089
3178
|
_this._onPositionChanged = _this._onPositionChanged.bind(_assert_this_initialized(_this));
|
|
3090
3179
|
_this._onWorldPositionChanged = _this._onWorldPositionChanged.bind(_assert_this_initialized(_this));
|
|
@@ -3730,73 +3819,91 @@ _ts_decorate([
|
|
|
3730
3819
|
]);
|
|
3731
3820
|
return Transform;
|
|
3732
3821
|
}(Component);
|
|
3733
|
-
|
|
3734
|
-
Transform.
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
Transform.
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
Transform.
|
|
3741
|
-
|
|
3742
|
-
|
|
3822
|
+
(function() {
|
|
3823
|
+
Transform._tempQuat0 = new Quaternion();
|
|
3824
|
+
})();
|
|
3825
|
+
(function() {
|
|
3826
|
+
Transform._tempVec30 = new Vector3();
|
|
3827
|
+
})();
|
|
3828
|
+
(function() {
|
|
3829
|
+
Transform._tempVec31 = new Vector3();
|
|
3830
|
+
})();
|
|
3831
|
+
(function() {
|
|
3832
|
+
Transform._tempVec32 = new Vector3();
|
|
3833
|
+
})();
|
|
3834
|
+
(function() {
|
|
3835
|
+
Transform._tempMat30 = new Matrix3x3();
|
|
3836
|
+
})();
|
|
3837
|
+
(function() {
|
|
3838
|
+
Transform._tempMat31 = new Matrix3x3();
|
|
3839
|
+
})();
|
|
3840
|
+
(function() {
|
|
3841
|
+
Transform._tempMat32 = new Matrix3x3();
|
|
3842
|
+
})();
|
|
3843
|
+
(function() {
|
|
3844
|
+
Transform._tempMat41 = new Matrix();
|
|
3845
|
+
})();
|
|
3846
|
+
(function() {
|
|
3847
|
+
Transform._tempMat42 = new Matrix();
|
|
3848
|
+
})();
|
|
3849
|
+
__decorate([
|
|
3743
3850
|
deepClone
|
|
3744
3851
|
], Transform.prototype, "_position", void 0);
|
|
3745
|
-
|
|
3852
|
+
__decorate([
|
|
3746
3853
|
deepClone
|
|
3747
3854
|
], Transform.prototype, "_rotation", void 0);
|
|
3748
|
-
|
|
3855
|
+
__decorate([
|
|
3749
3856
|
deepClone
|
|
3750
3857
|
], Transform.prototype, "_rotationQuaternion", void 0);
|
|
3751
|
-
|
|
3858
|
+
__decorate([
|
|
3752
3859
|
deepClone
|
|
3753
3860
|
], Transform.prototype, "_scale", void 0);
|
|
3754
|
-
|
|
3861
|
+
__decorate([
|
|
3755
3862
|
deepClone
|
|
3756
3863
|
], Transform.prototype, "_worldPosition", void 0);
|
|
3757
|
-
|
|
3864
|
+
__decorate([
|
|
3758
3865
|
deepClone
|
|
3759
3866
|
], Transform.prototype, "_worldRotation", void 0);
|
|
3760
|
-
|
|
3867
|
+
__decorate([
|
|
3761
3868
|
deepClone
|
|
3762
3869
|
], Transform.prototype, "_worldRotationQuaternion", void 0);
|
|
3763
|
-
|
|
3870
|
+
__decorate([
|
|
3764
3871
|
deepClone
|
|
3765
3872
|
], Transform.prototype, "_lossyWorldScale", void 0);
|
|
3766
|
-
|
|
3873
|
+
__decorate([
|
|
3767
3874
|
deepClone
|
|
3768
3875
|
], Transform.prototype, "_localMatrix", void 0);
|
|
3769
|
-
|
|
3876
|
+
__decorate([
|
|
3770
3877
|
deepClone
|
|
3771
3878
|
], Transform.prototype, "_worldMatrix", void 0);
|
|
3772
|
-
|
|
3879
|
+
__decorate([
|
|
3773
3880
|
ignoreClone
|
|
3774
3881
|
], Transform.prototype, "_isParentDirty", void 0);
|
|
3775
|
-
|
|
3882
|
+
__decorate([
|
|
3776
3883
|
ignoreClone
|
|
3777
3884
|
], Transform.prototype, "_parentTransformCache", void 0);
|
|
3778
|
-
|
|
3885
|
+
__decorate([
|
|
3779
3886
|
ignoreClone
|
|
3780
3887
|
], Transform.prototype, "_updateFlagManager", void 0);
|
|
3781
|
-
|
|
3888
|
+
__decorate([
|
|
3782
3889
|
ignoreClone
|
|
3783
3890
|
], Transform.prototype, "_onPositionChanged", null);
|
|
3784
|
-
|
|
3891
|
+
__decorate([
|
|
3785
3892
|
ignoreClone
|
|
3786
3893
|
], Transform.prototype, "_onWorldPositionChanged", null);
|
|
3787
|
-
|
|
3894
|
+
__decorate([
|
|
3788
3895
|
ignoreClone
|
|
3789
3896
|
], Transform.prototype, "_onRotationChanged", null);
|
|
3790
|
-
|
|
3897
|
+
__decorate([
|
|
3791
3898
|
ignoreClone
|
|
3792
3899
|
], Transform.prototype, "_onWorldRotationChanged", null);
|
|
3793
|
-
|
|
3900
|
+
__decorate([
|
|
3794
3901
|
ignoreClone
|
|
3795
3902
|
], Transform.prototype, "_onRotationQuaternionChanged", null);
|
|
3796
|
-
|
|
3903
|
+
__decorate([
|
|
3797
3904
|
ignoreClone
|
|
3798
3905
|
], Transform.prototype, "_onWorldRotationQuaternionChanged", null);
|
|
3799
|
-
|
|
3906
|
+
__decorate([
|
|
3800
3907
|
ignoreClone
|
|
3801
3908
|
], Transform.prototype, "_onScaleChanged", null);
|
|
3802
3909
|
var TransformModifyFlags;
|
|
@@ -4477,8 +4584,12 @@ var TransformModifyFlags;
|
|
|
4477
4584
|
]);
|
|
4478
4585
|
return SystemInfo;
|
|
4479
4586
|
}();
|
|
4480
|
-
|
|
4481
|
-
/** The
|
|
4587
|
+
(function() {
|
|
4588
|
+
/** The platform is running on. */ SystemInfo.platform = Platform.Unknown;
|
|
4589
|
+
})();
|
|
4590
|
+
(function() {
|
|
4591
|
+
/** The operating system is running on. */ SystemInfo.operatingSystem = "";
|
|
4592
|
+
})();
|
|
4482
4593
|
SystemInfo._initialize();
|
|
4483
4594
|
|
|
4484
4595
|
/**
|
|
@@ -5233,8 +5344,8 @@ var Collider = /*#__PURE__*/ function(Component) {
|
|
|
5233
5344
|
function Collider(entity) {
|
|
5234
5345
|
var _this;
|
|
5235
5346
|
_this = Component.call(this, entity) || this;
|
|
5236
|
-
_this._shapes = [];
|
|
5237
5347
|
/** @internal */ _this._index = -1;
|
|
5348
|
+
_this._shapes = [];
|
|
5238
5349
|
_this._updateFlag = _this.entity.transform.registerWorldChangeFlag();
|
|
5239
5350
|
return _this;
|
|
5240
5351
|
}
|
|
@@ -5325,10 +5436,10 @@ var Collider = /*#__PURE__*/ function(Component) {
|
|
|
5325
5436
|
]);
|
|
5326
5437
|
return Collider;
|
|
5327
5438
|
}(Component);
|
|
5328
|
-
|
|
5439
|
+
__decorate([
|
|
5329
5440
|
ignoreClone
|
|
5330
5441
|
], Collider.prototype, "_index", void 0);
|
|
5331
|
-
Collider =
|
|
5442
|
+
Collider = __decorate([
|
|
5332
5443
|
dependentComponents(Transform)
|
|
5333
5444
|
], Collider);
|
|
5334
5445
|
|
|
@@ -5609,7 +5720,9 @@ Collider = _ts_decorate([
|
|
|
5609
5720
|
]);
|
|
5610
5721
|
return ColliderShape;
|
|
5611
5722
|
}();
|
|
5612
|
-
|
|
5723
|
+
(function() {
|
|
5724
|
+
ColliderShape._idGenerator = 0;
|
|
5725
|
+
})();
|
|
5613
5726
|
|
|
5614
5727
|
/**
|
|
5615
5728
|
* Physical collider shape for box.
|
|
@@ -5889,7 +6002,7 @@ var Joint = /*#__PURE__*/ function(Component) {
|
|
|
5889
6002
|
]);
|
|
5890
6003
|
return Joint;
|
|
5891
6004
|
}(Component);
|
|
5892
|
-
Joint =
|
|
6005
|
+
Joint = __decorate([
|
|
5893
6006
|
dependentComponents(Collider)
|
|
5894
6007
|
], Joint);
|
|
5895
6008
|
/**
|
|
@@ -6864,9 +6977,15 @@ var DynamicColliderConstraints;
|
|
|
6864
6977
|
};
|
|
6865
6978
|
return PointerManager;
|
|
6866
6979
|
}();
|
|
6867
|
-
|
|
6868
|
-
PointerManager.
|
|
6869
|
-
|
|
6980
|
+
(function() {
|
|
6981
|
+
PointerManager._tempRay = new Ray();
|
|
6982
|
+
})();
|
|
6983
|
+
(function() {
|
|
6984
|
+
PointerManager._tempPoint = new Vector2();
|
|
6985
|
+
})();
|
|
6986
|
+
(function() {
|
|
6987
|
+
PointerManager._tempHitResult = new HitResult();
|
|
6988
|
+
})();
|
|
6870
6989
|
|
|
6871
6990
|
/**
|
|
6872
6991
|
* Wheel Manager.
|
|
@@ -7259,8 +7378,12 @@ PointerManager._tempHitResult = new HitResult();
|
|
|
7259
7378
|
}
|
|
7260
7379
|
this._nameId = nameID;
|
|
7261
7380
|
};
|
|
7262
|
-
|
|
7263
|
-
ShaderMacro.
|
|
7381
|
+
(function() {
|
|
7382
|
+
/** @internal */ ShaderMacro._macroNameIdMap = Object.create(null);
|
|
7383
|
+
})();
|
|
7384
|
+
(function() {
|
|
7385
|
+
ShaderMacro._macroNameCounter = 0;
|
|
7386
|
+
})();
|
|
7264
7387
|
|
|
7265
7388
|
/**
|
|
7266
7389
|
* Shader macro collection.
|
|
@@ -7412,6 +7535,19 @@ ShaderMacro._macroNameCounter = 0;
|
|
|
7412
7535
|
return ShaderMacroCollection;
|
|
7413
7536
|
}();
|
|
7414
7537
|
|
|
7538
|
+
function _extends() {
|
|
7539
|
+
_extends = Object.assign || function assign(target) {
|
|
7540
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
7541
|
+
var source = arguments[i];
|
|
7542
|
+
for (var key in source) if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
7543
|
+
}
|
|
7544
|
+
|
|
7545
|
+
return target;
|
|
7546
|
+
};
|
|
7547
|
+
|
|
7548
|
+
return _extends.apply(this, arguments);
|
|
7549
|
+
}
|
|
7550
|
+
|
|
7415
7551
|
var camera_declare = "#define GLSLIFY 1\nuniform vec3 u_cameraPos;"; // eslint-disable-line
|
|
7416
7552
|
|
|
7417
7553
|
var common = "#define GLSLIFY 1\n#define PI 3.14159265359\n#define RECIPROCAL_PI 0.31830988618\n#define EPSILON 1e-6\n#define LOG2 1.442695\n#define saturate( a ) clamp( a, 0.0, 1.0 )\nfloat pow2(float x){return x*x;}vec4 RGBMToLinear(vec4 value,float maxRange){return vec4(value.rgb*value.a*maxRange,1.0);}vec4 gammaToLinear(vec4 srgbIn){return vec4(pow(srgbIn.rgb,vec3(2.2)),srgbIn.a);}vec4 linearToGamma(vec4 linearIn){return vec4(pow(linearIn.rgb,vec3(1.0/2.2)),linearIn.a);}\n#ifdef GRAPHICS_API_WEBGL2\n#define INVERSE_MAT(mat) inverse(mat)\n#else\nmat2 inverseMat(mat2 m){return mat2(m[1][1],-m[0][1],-m[1][0],m[0][0])/(m[0][0]*m[1][1]-m[0][1]*m[1][0]);}mat3 inverseMat(mat3 m){float a00=m[0][0],a01=m[0][1],a02=m[0][2];float a10=m[1][0],a11=m[1][1],a12=m[1][2];float a20=m[2][0],a21=m[2][1],a22=m[2][2];float b01=a22*a11-a12*a21;float b11=-a22*a10+a12*a20;float b21=a21*a10-a11*a20;float det=a00*b01+a01*b11+a02*b21;return mat3(b01,(-a22*a01+a02*a21),(a12*a01-a02*a11),b11,(a22*a00-a02*a20),(-a12*a00+a02*a10),b21,(-a21*a00+a01*a20),(a11*a00-a01*a10))/det;}mat4 inverseMat(mat4 m){float a00=m[0][0],a01=m[0][1],a02=m[0][2],a03=m[0][3],a10=m[1][0],a11=m[1][1],a12=m[1][2],a13=m[1][3],a20=m[2][0],a21=m[2][1],a22=m[2][2],a23=m[2][3],a30=m[3][0],a31=m[3][1],a32=m[3][2],a33=m[3][3],b00=a00*a11-a01*a10,b01=a00*a12-a02*a10,b02=a00*a13-a03*a10,b03=a01*a12-a02*a11,b04=a01*a13-a03*a11,b05=a02*a13-a03*a12,b06=a20*a31-a21*a30,b07=a20*a32-a22*a30,b08=a20*a33-a23*a30,b09=a21*a32-a22*a31,b10=a21*a33-a23*a31,b11=a22*a33-a23*a32,det=b00*b11-b01*b10+b02*b09+b03*b08-b04*b07+b05*b06;return mat4(a11*b11-a12*b10+a13*b09,a02*b10-a01*b11-a03*b09,a31*b05-a32*b04+a33*b03,a22*b04-a21*b05-a23*b03,a12*b08-a10*b11-a13*b07,a00*b11-a02*b08+a03*b07,a32*b02-a30*b05-a33*b01,a20*b05-a22*b02+a23*b01,a10*b10-a11*b08+a13*b06,a01*b08-a00*b10-a03*b06,a30*b04-a31*b02+a33*b00,a21*b02-a20*b04-a23*b00,a11*b07-a10*b09-a12*b06,a00*b09-a01*b07+a02*b06,a31*b01-a30*b03-a32*b00,a20*b03-a21*b01+a22*b00)/det;}\n#define INVERSE_MAT(mat) inverseMat(mat)\n#endif\n"; // eslint-disable-line
|
|
@@ -7521,7 +7657,7 @@ var PBRShaderLib = {
|
|
|
7521
7657
|
|
|
7522
7658
|
var ShadowCoord = "#define GLSLIFY 1\nuniform mat4 u_shadowMatrices[CASCADED_COUNT+1];uniform vec4 u_shadowSplitSpheres[4];mediump int computeCascadeIndex(vec3 positionWS){vec3 fromCenter0=positionWS-u_shadowSplitSpheres[0].xyz;vec3 fromCenter1=positionWS-u_shadowSplitSpheres[1].xyz;vec3 fromCenter2=positionWS-u_shadowSplitSpheres[2].xyz;vec3 fromCenter3=positionWS-u_shadowSplitSpheres[3].xyz;mediump vec4 comparison=vec4(dot(fromCenter0,fromCenter0)<u_shadowSplitSpheres[0].w,dot(fromCenter1,fromCenter1)<u_shadowSplitSpheres[1].w,dot(fromCenter2,fromCenter2)<u_shadowSplitSpheres[2].w,dot(fromCenter3,fromCenter3)<u_shadowSplitSpheres[3].w);comparison.yzw=clamp(comparison.yzw-comparison.xyz,0.0,1.0);mediump vec4 indexCoefficient=vec4(4.0,3.0,2.0,1.0);mediump int index=4-int(dot(comparison,indexCoefficient));return index;}vec3 getShadowCoord(){\n#if CASCADED_COUNT == 1\nmediump int cascadeIndex=0;\n#else\nmediump int cascadeIndex=computeCascadeIndex(v_pos);\n#endif\n#ifdef GRAPHICS_API_WEBGL2\nmat4 shadowMatrix=u_shadowMatrices[cascadeIndex];\n#else\nmat4 shadowMatrix;\n#if CASCADED_COUNT == 4\nif(cascadeIndex==0){shadowMatrix=u_shadowMatrices[0];}else if(cascadeIndex==1){shadowMatrix=u_shadowMatrices[1];}else if(cascadeIndex==2){shadowMatrix=u_shadowMatrices[2];}else if(cascadeIndex==3){shadowMatrix=u_shadowMatrices[3];}else{shadowMatrix=u_shadowMatrices[4];}\n#endif\n#if CASCADED_COUNT == 2\nif(cascadeIndex==0){shadowMatrix=u_shadowMatrices[0];}else if(cascadeIndex==1){shadowMatrix=u_shadowMatrices[1];}else{shadowMatrix=u_shadowMatrices[2];}\n#endif\n#if CASCADED_COUNT == 1\nif(cascadeIndex==0){shadowMatrix=u_shadowMatrices[0];}else{shadowMatrix=u_shadowMatrices[1];}\n#endif\n#endif\nvec4 shadowCoord=shadowMatrix*vec4(v_pos,1.0);return shadowCoord.xyz;}"; // eslint-disable-line
|
|
7523
7659
|
|
|
7524
|
-
var ShadowFragmentDeclaration = "#define GLSLIFY 1\n#if defined(SHADOW_TYPE) && defined(OASIS_RECEIVE_SHADOWS)\n#define OASIS_CALCULATE_SHADOWS\n#endif\n#ifdef OASIS_CALCULATE_SHADOWS\n#if CASCADED_COUNT == 1\nvarying vec3 v_shadowCoord;\n#else\n#include <ShadowCoord>\n#endif\nuniform vec3 u_shadowInfo;uniform vec4 u_shadowMapSize;\n#ifdef GRAPHICS_API_WEBGL2\nuniform mediump sampler2DShadow u_shadowMap;\n#define SAMPLE_TEXTURE2D_SHADOW(textureName, coord3) textureLod(textureName, coord3 , 0.0)\n#define TEXTURE2D_SHADOW_PARAM(shadowMap) mediump sampler2DShadow shadowMap\n#else\nuniform sampler2D u_shadowMap;\n#ifdef OASIS_NO_DEPTH_TEXTURE\nconst vec4 bitShift=vec4(1.0,1.0/256.0,1.0/(256.0*256.0),1.0/(256.0*256.0*256.0))
|
|
7660
|
+
var ShadowFragmentDeclaration = "#define GLSLIFY 1\n#if defined(SHADOW_TYPE) && defined(OASIS_RECEIVE_SHADOWS)\n#define OASIS_CALCULATE_SHADOWS\n#endif\n#ifdef OASIS_CALCULATE_SHADOWS\n#if CASCADED_COUNT == 1\nvarying vec3 v_shadowCoord;\n#else\n#include <ShadowCoord>\n#endif\nuniform vec3 u_shadowInfo;uniform vec4 u_shadowMapSize;\n#ifdef GRAPHICS_API_WEBGL2\nuniform mediump sampler2DShadow u_shadowMap;\n#define SAMPLE_TEXTURE2D_SHADOW(textureName, coord3) textureLod(textureName, coord3 , 0.0)\n#define TEXTURE2D_SHADOW_PARAM(shadowMap) mediump sampler2DShadow shadowMap\n#else\nuniform sampler2D u_shadowMap;\n#ifdef OASIS_NO_DEPTH_TEXTURE\nconst vec4 bitShift=vec4(1.0,1.0/256.0,1.0/(256.0*256.0),1.0/(256.0*256.0*256.0));float unpack(const in vec4 rgbaDepth){return dot(rgbaDepth,bitShift);}\n#define SAMPLE_TEXTURE2D_SHADOW(textureName, coord3) (unpack(texture2D(textureName, coord3.xy)) < coord3.z ? 0.0 : 1.0)\n#else\n#define SAMPLE_TEXTURE2D_SHADOW(textureName, coord3) (texture2D(textureName, coord3.xy).r < coord3.z ? 0.0 : 1.0)\n#endif\n#define TEXTURE2D_SHADOW_PARAM(shadowMap) mediump sampler2D shadowMap\n#endif\n#if SHADOW_TYPE == 2\nfloat sampleShadowMapFiltered4(TEXTURE2D_SHADOW_PARAM(shadowMap),vec3 shadowCoord,vec4 shadowMapSize){float attenuation;vec4 attenuation4;vec2 offset=shadowMapSize.xy/2.0;vec3 shadowCoord0=shadowCoord+vec3(-offset,0.0);vec3 shadowCoord1=shadowCoord+vec3(offset.x,-offset.y,0.0);vec3 shadowCoord2=shadowCoord+vec3(-offset.x,offset.y,0.0);vec3 shadowCoord3=shadowCoord+vec3(offset,0.0);attenuation4.x=SAMPLE_TEXTURE2D_SHADOW(shadowMap,shadowCoord0);attenuation4.y=SAMPLE_TEXTURE2D_SHADOW(shadowMap,shadowCoord1);attenuation4.z=SAMPLE_TEXTURE2D_SHADOW(shadowMap,shadowCoord2);attenuation4.w=SAMPLE_TEXTURE2D_SHADOW(shadowMap,shadowCoord3);attenuation=dot(attenuation4,vec4(0.25));return attenuation;}\n#endif\n#if SHADOW_TYPE == 3\n#include <shadow_sample_tent>\nfloat sampleShadowMapFiltered9(TEXTURE2D_SHADOW_PARAM(shadowMap),vec3 shadowCoord,vec4 shadowmapSize){float attenuation;float fetchesWeights[9];vec2 fetchesUV[9];sampleShadowComputeSamplesTent5x5(shadowmapSize,shadowCoord.xy,fetchesWeights,fetchesUV);attenuation=fetchesWeights[0]*SAMPLE_TEXTURE2D_SHADOW(shadowMap,vec3(fetchesUV[0].xy,shadowCoord.z));attenuation+=fetchesWeights[1]*SAMPLE_TEXTURE2D_SHADOW(shadowMap,vec3(fetchesUV[1].xy,shadowCoord.z));attenuation+=fetchesWeights[2]*SAMPLE_TEXTURE2D_SHADOW(shadowMap,vec3(fetchesUV[2].xy,shadowCoord.z));attenuation+=fetchesWeights[3]*SAMPLE_TEXTURE2D_SHADOW(shadowMap,vec3(fetchesUV[3].xy,shadowCoord.z));attenuation+=fetchesWeights[4]*SAMPLE_TEXTURE2D_SHADOW(shadowMap,vec3(fetchesUV[4].xy,shadowCoord.z));attenuation+=fetchesWeights[5]*SAMPLE_TEXTURE2D_SHADOW(shadowMap,vec3(fetchesUV[5].xy,shadowCoord.z));attenuation+=fetchesWeights[6]*SAMPLE_TEXTURE2D_SHADOW(shadowMap,vec3(fetchesUV[6].xy,shadowCoord.z));attenuation+=fetchesWeights[7]*SAMPLE_TEXTURE2D_SHADOW(shadowMap,vec3(fetchesUV[7].xy,shadowCoord.z));attenuation+=fetchesWeights[8]*SAMPLE_TEXTURE2D_SHADOW(shadowMap,vec3(fetchesUV[8].xy,shadowCoord.z));return attenuation;}\n#endif\nfloat sampleShadowMap(){\n#if CASCADED_COUNT == 1\nvec3 shadowCoord=v_shadowCoord;\n#else\nvec3 shadowCoord=getShadowCoord();\n#endif\nfloat attenuation=1.0;if(shadowCoord.z>0.0&&shadowCoord.z<1.0){\n#if SHADOW_TYPE == 1\nattenuation=SAMPLE_TEXTURE2D_SHADOW(u_shadowMap,shadowCoord);\n#endif\n#if SHADOW_TYPE == 2\nattenuation=sampleShadowMapFiltered4(u_shadowMap,shadowCoord,u_shadowMapSize);\n#endif\n#if SHADOW_TYPE == 3\nattenuation=sampleShadowMapFiltered9(u_shadowMap,shadowCoord,u_shadowMapSize);\n#endif\nattenuation=mix(1.0,attenuation,u_shadowInfo.x);}return attenuation;}\n#endif\n"; // eslint-disable-line
|
|
7525
7661
|
|
|
7526
7662
|
var shadow_sample_tent = "#define GLSLIFY 1\nfloat sampleShadowGetIRTriangleTexelArea(float triangleHeight){return triangleHeight-0.5;}void sampleShadowGetTexelAreasTent3x3(float offset,out vec4 computedArea,out vec4 computedAreaUncut){float a=offset+0.5;float offsetSquaredHalved=a*a*0.5;computedAreaUncut.x=computedArea.x=offsetSquaredHalved-offset;computedAreaUncut.w=computedArea.w=offsetSquaredHalved;computedAreaUncut.y=sampleShadowGetIRTriangleTexelArea(1.5-offset);float clampedOffsetLeft=min(offset,0.0);float areaOfSmallLeftTriangle=clampedOffsetLeft*clampedOffsetLeft;computedArea.y=computedAreaUncut.y-areaOfSmallLeftTriangle;computedAreaUncut.z=sampleShadowGetIRTriangleTexelArea(1.5+offset);float clampedOffsetRight=max(offset,0.0);float areaOfSmallRightTriangle=clampedOffsetRight*clampedOffsetRight;computedArea.z=computedAreaUncut.z-areaOfSmallRightTriangle;}void sampleShadowGetTexelWeightsTent5x5(float offset,out vec3 texelsWeightsA,out vec3 texelsWeightsB){vec4 areaFrom3texelTriangle;vec4 areaUncutFrom3texelTriangle;sampleShadowGetTexelAreasTent3x3(offset,areaFrom3texelTriangle,areaUncutFrom3texelTriangle);texelsWeightsA.x=0.16*(areaFrom3texelTriangle.x);texelsWeightsA.y=0.16*(areaUncutFrom3texelTriangle.y);texelsWeightsA.z=0.16*(areaFrom3texelTriangle.y+1.0);texelsWeightsB.x=0.16*(areaFrom3texelTriangle.z+1.0);texelsWeightsB.y=0.16*(areaUncutFrom3texelTriangle.z);texelsWeightsB.z=0.16*(areaFrom3texelTriangle.w);}void sampleShadowComputeSamplesTent5x5(vec4 shadowMapTextureTexelSize,vec2 coord,out float fetchesWeights[9],out vec2 fetchesUV[9]){vec2 tentCenterInTexelSpace=coord.xy*shadowMapTextureTexelSize.zw;vec2 centerOfFetchesInTexelSpace=floor(tentCenterInTexelSpace+0.5);vec2 offsetFromTentCenterToCenterOfFetches=tentCenterInTexelSpace-centerOfFetchesInTexelSpace;vec3 texelsWeightsUA,texelsWeightsUB;vec3 texelsWeightsVA,texelsWeightsVB;sampleShadowGetTexelWeightsTent5x5(offsetFromTentCenterToCenterOfFetches.x,texelsWeightsUA,texelsWeightsUB);sampleShadowGetTexelWeightsTent5x5(offsetFromTentCenterToCenterOfFetches.y,texelsWeightsVA,texelsWeightsVB);vec3 fetchesWeightsU=vec3(texelsWeightsUA.xz,texelsWeightsUB.y)+vec3(texelsWeightsUA.y,texelsWeightsUB.xz);vec3 fetchesWeightsV=vec3(texelsWeightsVA.xz,texelsWeightsVB.y)+vec3(texelsWeightsVA.y,texelsWeightsVB.xz);vec3 fetchesOffsetsU=vec3(texelsWeightsUA.y,texelsWeightsUB.xz)/fetchesWeightsU.xyz+vec3(-2.5,-0.5,1.5);vec3 fetchesOffsetsV=vec3(texelsWeightsVA.y,texelsWeightsVB.xz)/fetchesWeightsV.xyz+vec3(-2.5,-0.5,1.5);fetchesOffsetsU*=shadowMapTextureTexelSize.xxx;fetchesOffsetsV*=shadowMapTextureTexelSize.yyy;vec2 bilinearFetchOrigin=centerOfFetchesInTexelSpace*shadowMapTextureTexelSize.xy;fetchesUV[0]=bilinearFetchOrigin+vec2(fetchesOffsetsU.x,fetchesOffsetsV.x);fetchesUV[1]=bilinearFetchOrigin+vec2(fetchesOffsetsU.y,fetchesOffsetsV.x);fetchesUV[2]=bilinearFetchOrigin+vec2(fetchesOffsetsU.z,fetchesOffsetsV.x);fetchesUV[3]=bilinearFetchOrigin+vec2(fetchesOffsetsU.x,fetchesOffsetsV.y);fetchesUV[4]=bilinearFetchOrigin+vec2(fetchesOffsetsU.y,fetchesOffsetsV.y);fetchesUV[5]=bilinearFetchOrigin+vec2(fetchesOffsetsU.z,fetchesOffsetsV.y);fetchesUV[6]=bilinearFetchOrigin+vec2(fetchesOffsetsU.x,fetchesOffsetsV.z);fetchesUV[7]=bilinearFetchOrigin+vec2(fetchesOffsetsU.y,fetchesOffsetsV.z);fetchesUV[8]=bilinearFetchOrigin+vec2(fetchesOffsetsU.z,fetchesOffsetsV.z);fetchesWeights[0]=fetchesWeightsU.x*fetchesWeightsV.x;fetchesWeights[1]=fetchesWeightsU.y*fetchesWeightsV.x;fetchesWeights[2]=fetchesWeightsU.z*fetchesWeightsV.x;fetchesWeights[3]=fetchesWeightsU.x*fetchesWeightsV.y;fetchesWeights[4]=fetchesWeightsU.y*fetchesWeightsV.y;fetchesWeights[5]=fetchesWeightsU.z*fetchesWeightsV.y;fetchesWeights[6]=fetchesWeightsU.x*fetchesWeightsV.z;fetchesWeights[7]=fetchesWeightsU.y*fetchesWeightsV.z;fetchesWeights[8]=fetchesWeightsU.z*fetchesWeightsV.z;}"; // eslint-disable-line
|
|
7527
7663
|
|
|
@@ -8263,7 +8399,9 @@ var ShaderFactory = /*#__PURE__*/ function() {
|
|
|
8263
8399
|
]);
|
|
8264
8400
|
return ShaderProgram;
|
|
8265
8401
|
}();
|
|
8266
|
-
|
|
8402
|
+
(function() {
|
|
8403
|
+
ShaderProgram._counter = 0;
|
|
8404
|
+
})();
|
|
8267
8405
|
|
|
8268
8406
|
/**
|
|
8269
8407
|
* Shader pass containing vertex and fragment source.
|
|
@@ -8308,7 +8446,9 @@ ShaderProgram._counter = 0;
|
|
|
8308
8446
|
};
|
|
8309
8447
|
return ShaderPass;
|
|
8310
8448
|
}();
|
|
8311
|
-
|
|
8449
|
+
(function() {
|
|
8450
|
+
ShaderPass._shaderPassCounter = 0;
|
|
8451
|
+
})();
|
|
8312
8452
|
|
|
8313
8453
|
/**
|
|
8314
8454
|
* Shader property.
|
|
@@ -8329,7 +8469,9 @@ ShaderPass._shaderPassCounter = 0;
|
|
|
8329
8469
|
]);
|
|
8330
8470
|
return ShaderProperty;
|
|
8331
8471
|
}();
|
|
8332
|
-
|
|
8472
|
+
(function() {
|
|
8473
|
+
ShaderProperty._propertyNameCounter = 0;
|
|
8474
|
+
})();
|
|
8333
8475
|
|
|
8334
8476
|
/**
|
|
8335
8477
|
* Shader for rendering.
|
|
@@ -8454,18 +8596,34 @@ ShaderProperty._propertyNameCounter = 0;
|
|
|
8454
8596
|
]);
|
|
8455
8597
|
return Shader;
|
|
8456
8598
|
}();
|
|
8457
|
-
|
|
8458
|
-
/** @internal */ Shader.
|
|
8459
|
-
|
|
8460
|
-
|
|
8461
|
-
|
|
8462
|
-
|
|
8463
|
-
|
|
8464
|
-
|
|
8465
|
-
|
|
8466
|
-
|
|
8467
|
-
|
|
8468
|
-
Shader.
|
|
8599
|
+
(function() {
|
|
8600
|
+
/** @internal */ Shader._compileMacros = new ShaderMacroCollection();
|
|
8601
|
+
})();
|
|
8602
|
+
(function() {
|
|
8603
|
+
/** @internal */ Shader._shaderExtension = [
|
|
8604
|
+
"GL_EXT_shader_texture_lod",
|
|
8605
|
+
"GL_OES_standard_derivatives",
|
|
8606
|
+
"GL_EXT_draw_buffers"
|
|
8607
|
+
];
|
|
8608
|
+
})();
|
|
8609
|
+
(function() {
|
|
8610
|
+
/** @internal */ Shader._propertyIdMap = Object.create(null);
|
|
8611
|
+
})();
|
|
8612
|
+
(function() {
|
|
8613
|
+
Shader._shaderMap = Object.create(null);
|
|
8614
|
+
})();
|
|
8615
|
+
(function() {
|
|
8616
|
+
Shader._propertyNameMap = Object.create(null);
|
|
8617
|
+
})();
|
|
8618
|
+
(function() {
|
|
8619
|
+
Shader._macroMaskMap = [];
|
|
8620
|
+
})();
|
|
8621
|
+
(function() {
|
|
8622
|
+
Shader._macroCounter = 0;
|
|
8623
|
+
})();
|
|
8624
|
+
(function() {
|
|
8625
|
+
Shader._macroMap = Object.create(null);
|
|
8626
|
+
})();
|
|
8469
8627
|
|
|
8470
8628
|
/**
|
|
8471
8629
|
* Shader data collection,Correspondence includes shader properties data and macros data.
|
|
@@ -8725,9 +8883,9 @@ Shader._macroMap = Object.create(null);
|
|
|
8725
8883
|
/** Shadow mapping normal-based bias. */ _this.shadowNormalBias = 1;
|
|
8726
8884
|
/** Near plane value to use for shadow frustums. */ _this.shadowNearPlane = 0.1;
|
|
8727
8885
|
/** Shadow intensity, the larger the value, the clearer and darker the shadow. */ _this.shadowStrength = 1.0;
|
|
8886
|
+
/** @internal */ _this._lightIndex = -1;
|
|
8728
8887
|
_this._color = new Color$1(1, 1, 1, 1);
|
|
8729
8888
|
_this._lightColor = new Color$1();
|
|
8730
|
-
/** @internal */ _this._lightIndex = -1;
|
|
8731
8889
|
return _this;
|
|
8732
8890
|
}
|
|
8733
8891
|
var _proto = Light.prototype;
|
|
@@ -8775,10 +8933,12 @@ Shader._macroMap = Object.create(null);
|
|
|
8775
8933
|
]);
|
|
8776
8934
|
return Light;
|
|
8777
8935
|
}(Component);
|
|
8778
|
-
|
|
8936
|
+
(function() {
|
|
8937
|
+
/**
|
|
8779
8938
|
* Each type of light source is at most 10, beyond which it will not take effect.
|
|
8780
8939
|
* */ Light._maxLight = 10;
|
|
8781
|
-
|
|
8940
|
+
})();
|
|
8941
|
+
__decorate([
|
|
8782
8942
|
ignoreClone
|
|
8783
8943
|
], Light.prototype, "_lightIndex", void 0);
|
|
8784
8944
|
|
|
@@ -8866,14 +9026,22 @@ _ts_decorate([
|
|
|
8866
9026
|
]);
|
|
8867
9027
|
return DirectLight;
|
|
8868
9028
|
}(Light);
|
|
8869
|
-
|
|
8870
|
-
DirectLight.
|
|
8871
|
-
|
|
8872
|
-
|
|
8873
|
-
|
|
8874
|
-
|
|
8875
|
-
|
|
8876
|
-
|
|
9029
|
+
(function() {
|
|
9030
|
+
DirectLight._cullingMaskProperty = Shader.getPropertyByName("u_directLightCullingMask");
|
|
9031
|
+
})();
|
|
9032
|
+
(function() {
|
|
9033
|
+
DirectLight._colorProperty = Shader.getPropertyByName("u_directLightColor");
|
|
9034
|
+
})();
|
|
9035
|
+
(function() {
|
|
9036
|
+
DirectLight._directionProperty = Shader.getPropertyByName("u_directLightDirection");
|
|
9037
|
+
})();
|
|
9038
|
+
(function() {
|
|
9039
|
+
DirectLight._combinedData = {
|
|
9040
|
+
cullingMask: new Int32Array(Light._maxLight * 2),
|
|
9041
|
+
color: new Float32Array(Light._maxLight * 3),
|
|
9042
|
+
direction: new Float32Array(Light._maxLight * 3)
|
|
9043
|
+
};
|
|
9044
|
+
})();
|
|
8877
9045
|
|
|
8878
9046
|
/**
|
|
8879
9047
|
* Point light.
|
|
@@ -8951,16 +9119,26 @@ DirectLight._combinedData = {
|
|
|
8951
9119
|
]);
|
|
8952
9120
|
return PointLight;
|
|
8953
9121
|
}(Light);
|
|
8954
|
-
|
|
8955
|
-
PointLight.
|
|
8956
|
-
|
|
8957
|
-
|
|
8958
|
-
PointLight.
|
|
8959
|
-
|
|
8960
|
-
|
|
8961
|
-
|
|
8962
|
-
|
|
8963
|
-
|
|
9122
|
+
(function() {
|
|
9123
|
+
PointLight._cullingMaskProperty = Shader.getPropertyByName("u_pointLightCullingMask");
|
|
9124
|
+
})();
|
|
9125
|
+
(function() {
|
|
9126
|
+
PointLight._colorProperty = Shader.getPropertyByName("u_pointLightColor");
|
|
9127
|
+
})();
|
|
9128
|
+
(function() {
|
|
9129
|
+
PointLight._positionProperty = Shader.getPropertyByName("u_pointLightPosition");
|
|
9130
|
+
})();
|
|
9131
|
+
(function() {
|
|
9132
|
+
PointLight._distanceProperty = Shader.getPropertyByName("u_pointLightDistance");
|
|
9133
|
+
})();
|
|
9134
|
+
(function() {
|
|
9135
|
+
PointLight._combinedData = {
|
|
9136
|
+
cullingMask: new Int32Array(Light._maxLight * 2),
|
|
9137
|
+
color: new Float32Array(Light._maxLight * 3),
|
|
9138
|
+
position: new Float32Array(Light._maxLight * 3),
|
|
9139
|
+
distance: new Float32Array(Light._maxLight)
|
|
9140
|
+
};
|
|
9141
|
+
})();
|
|
8964
9142
|
|
|
8965
9143
|
/**
|
|
8966
9144
|
* Spot light.
|
|
@@ -9076,22 +9254,38 @@ PointLight._combinedData = {
|
|
|
9076
9254
|
]);
|
|
9077
9255
|
return SpotLight;
|
|
9078
9256
|
}(Light);
|
|
9079
|
-
|
|
9080
|
-
SpotLight.
|
|
9081
|
-
|
|
9082
|
-
|
|
9083
|
-
SpotLight.
|
|
9084
|
-
|
|
9085
|
-
|
|
9086
|
-
SpotLight.
|
|
9087
|
-
|
|
9088
|
-
|
|
9089
|
-
|
|
9090
|
-
|
|
9091
|
-
|
|
9092
|
-
|
|
9093
|
-
|
|
9094
|
-
|
|
9257
|
+
(function() {
|
|
9258
|
+
SpotLight._cullingMaskProperty = Shader.getPropertyByName("u_spotLightCullingMask");
|
|
9259
|
+
})();
|
|
9260
|
+
(function() {
|
|
9261
|
+
SpotLight._colorProperty = Shader.getPropertyByName("u_spotLightColor");
|
|
9262
|
+
})();
|
|
9263
|
+
(function() {
|
|
9264
|
+
SpotLight._positionProperty = Shader.getPropertyByName("u_spotLightPosition");
|
|
9265
|
+
})();
|
|
9266
|
+
(function() {
|
|
9267
|
+
SpotLight._directionProperty = Shader.getPropertyByName("u_spotLightDirection");
|
|
9268
|
+
})();
|
|
9269
|
+
(function() {
|
|
9270
|
+
SpotLight._distanceProperty = Shader.getPropertyByName("u_spotLightDistance");
|
|
9271
|
+
})();
|
|
9272
|
+
(function() {
|
|
9273
|
+
SpotLight._angleCosProperty = Shader.getPropertyByName("u_spotLightAngleCos");
|
|
9274
|
+
})();
|
|
9275
|
+
(function() {
|
|
9276
|
+
SpotLight._penumbraCosProperty = Shader.getPropertyByName("u_spotLightPenumbraCos");
|
|
9277
|
+
})();
|
|
9278
|
+
(function() {
|
|
9279
|
+
SpotLight._combinedData = {
|
|
9280
|
+
cullingMask: new Int32Array(Light._maxLight * 2),
|
|
9281
|
+
color: new Float32Array(Light._maxLight * 3),
|
|
9282
|
+
position: new Float32Array(Light._maxLight * 3),
|
|
9283
|
+
direction: new Float32Array(Light._maxLight * 3),
|
|
9284
|
+
distance: new Float32Array(Light._maxLight),
|
|
9285
|
+
angleCos: new Float32Array(Light._maxLight),
|
|
9286
|
+
penumbraCos: new Float32Array(Light._maxLight)
|
|
9287
|
+
};
|
|
9288
|
+
})();
|
|
9095
9289
|
|
|
9096
9290
|
/**
|
|
9097
9291
|
* Light manager.
|
|
@@ -9783,9 +9977,15 @@ var RenderElement = function RenderElement() {
|
|
|
9783
9977
|
};
|
|
9784
9978
|
return RenderContext;
|
|
9785
9979
|
}();
|
|
9786
|
-
|
|
9787
|
-
RenderContext.
|
|
9788
|
-
|
|
9980
|
+
(function() {
|
|
9981
|
+
/** @internal */ RenderContext._vpMatrixProperty = Shader.getPropertyByName("u_VPMat");
|
|
9982
|
+
})();
|
|
9983
|
+
(function() {
|
|
9984
|
+
RenderContext._viewMatrixProperty = Shader.getPropertyByName("u_viewMat");
|
|
9985
|
+
})();
|
|
9986
|
+
(function() {
|
|
9987
|
+
RenderContext._projectionMatrixProperty = Shader.getPropertyByName("u_projMat");
|
|
9988
|
+
})();
|
|
9789
9989
|
|
|
9790
9990
|
var SpriteElement = /*#__PURE__*/ function(RenderElement) {
|
|
9791
9991
|
_inherits(SpriteElement, RenderElement);
|
|
@@ -9846,7 +10046,6 @@ var Renderer = (_Renderer = /*#__PURE__*/ function(Component) {
|
|
|
9846
10046
|
function Renderer1(entity) {
|
|
9847
10047
|
var _this;
|
|
9848
10048
|
_this = Component.call(this, entity) || this;
|
|
9849
|
-
/** Whether cast shadow. */ _this.castShadows = true;
|
|
9850
10049
|
/** @internal */ _this._onUpdateIndex = -1;
|
|
9851
10050
|
/** @internal */ _this._rendererIndex = -1;
|
|
9852
10051
|
/** @internal */ _this._globalShaderMacro = new ShaderMacroCollection();
|
|
@@ -9863,6 +10062,7 @@ var Renderer = (_Renderer = /*#__PURE__*/ function(Component) {
|
|
|
9863
10062
|
_this._priority = 0;
|
|
9864
10063
|
_this._receiveShadows = true;
|
|
9865
10064
|
_this._rendererLayer = new Vector4();
|
|
10065
|
+
/** Whether cast shadow. */ _this.castShadows = true;
|
|
9866
10066
|
var prototype = Renderer.prototype;
|
|
9867
10067
|
var shaderData = _this.shaderData;
|
|
9868
10068
|
_this._overrideUpdate = _this.update !== prototype.update;
|
|
@@ -10145,65 +10345,83 @@ var Renderer = (_Renderer = /*#__PURE__*/ function(Component) {
|
|
|
10145
10345
|
}
|
|
10146
10346
|
]);
|
|
10147
10347
|
return Renderer1;
|
|
10148
|
-
}(Component),
|
|
10149
|
-
|
|
10348
|
+
}(Component), function() {
|
|
10349
|
+
_Renderer._tempVector0 = new Vector3();
|
|
10350
|
+
}(), function() {
|
|
10351
|
+
_Renderer._receiveShadowMacro = Shader.getMacroByName("OASIS_RECEIVE_SHADOWS");
|
|
10352
|
+
}(), function() {
|
|
10353
|
+
_Renderer._localMatrixProperty = Shader.getPropertyByName("u_localMat");
|
|
10354
|
+
}(), function() {
|
|
10355
|
+
_Renderer._worldMatrixProperty = Shader.getPropertyByName("u_modelMat");
|
|
10356
|
+
}(), function() {
|
|
10357
|
+
_Renderer._mvMatrixProperty = Shader.getPropertyByName("u_MVMat");
|
|
10358
|
+
}(), function() {
|
|
10359
|
+
_Renderer._mvpMatrixProperty = Shader.getPropertyByName("u_MVPMat");
|
|
10360
|
+
}(), function() {
|
|
10361
|
+
_Renderer._mvInvMatrixProperty = Shader.getPropertyByName("u_MVInvMat");
|
|
10362
|
+
}(), function() {
|
|
10363
|
+
_Renderer._normalMatrixProperty = Shader.getPropertyByName("u_normalMat");
|
|
10364
|
+
}(), function() {
|
|
10365
|
+
_Renderer._rendererLayerProperty = Shader.getPropertyByName("oasis_RendererLayer");
|
|
10366
|
+
}(), _Renderer);
|
|
10367
|
+
__decorate([
|
|
10150
10368
|
ignoreClone
|
|
10151
10369
|
], Renderer.prototype, "_distanceForSort", void 0);
|
|
10152
|
-
|
|
10370
|
+
__decorate([
|
|
10153
10371
|
ignoreClone
|
|
10154
10372
|
], Renderer.prototype, "_onUpdateIndex", void 0);
|
|
10155
|
-
|
|
10373
|
+
__decorate([
|
|
10156
10374
|
ignoreClone
|
|
10157
10375
|
], Renderer.prototype, "_rendererIndex", void 0);
|
|
10158
|
-
|
|
10376
|
+
__decorate([
|
|
10159
10377
|
ignoreClone
|
|
10160
10378
|
], Renderer.prototype, "_globalShaderMacro", void 0);
|
|
10161
|
-
|
|
10379
|
+
__decorate([
|
|
10162
10380
|
deepClone
|
|
10163
10381
|
], Renderer.prototype, "_bounds", void 0);
|
|
10164
|
-
|
|
10382
|
+
__decorate([
|
|
10165
10383
|
ignoreClone
|
|
10166
10384
|
], Renderer.prototype, "_renderFrameCount", void 0);
|
|
10167
|
-
|
|
10385
|
+
__decorate([
|
|
10168
10386
|
ignoreClone
|
|
10169
10387
|
], Renderer.prototype, "_overrideUpdate", void 0);
|
|
10170
|
-
|
|
10388
|
+
__decorate([
|
|
10171
10389
|
ignoreClone
|
|
10172
10390
|
], Renderer.prototype, "_materials", void 0);
|
|
10173
|
-
|
|
10391
|
+
__decorate([
|
|
10174
10392
|
ignoreClone
|
|
10175
10393
|
], Renderer.prototype, "_dirtyUpdateFlag", void 0);
|
|
10176
|
-
|
|
10394
|
+
__decorate([
|
|
10177
10395
|
deepClone
|
|
10178
10396
|
], Renderer.prototype, "_shaderData", void 0);
|
|
10179
|
-
|
|
10397
|
+
__decorate([
|
|
10180
10398
|
ignoreClone
|
|
10181
10399
|
], Renderer.prototype, "_mvMatrix", void 0);
|
|
10182
|
-
|
|
10400
|
+
__decorate([
|
|
10183
10401
|
ignoreClone
|
|
10184
10402
|
], Renderer.prototype, "_mvpMatrix", void 0);
|
|
10185
|
-
|
|
10403
|
+
__decorate([
|
|
10186
10404
|
ignoreClone
|
|
10187
10405
|
], Renderer.prototype, "_mvInvMatrix", void 0);
|
|
10188
|
-
|
|
10406
|
+
__decorate([
|
|
10189
10407
|
ignoreClone
|
|
10190
10408
|
], Renderer.prototype, "_normalMatrix", void 0);
|
|
10191
|
-
|
|
10409
|
+
__decorate([
|
|
10192
10410
|
ignoreClone
|
|
10193
10411
|
], Renderer.prototype, "_materialsInstanced", void 0);
|
|
10194
|
-
|
|
10412
|
+
__decorate([
|
|
10195
10413
|
ignoreClone
|
|
10196
10414
|
], Renderer.prototype, "_priority", void 0);
|
|
10197
|
-
|
|
10415
|
+
__decorate([
|
|
10198
10416
|
assignmentClone
|
|
10199
10417
|
], Renderer.prototype, "_receiveShadows", void 0);
|
|
10200
|
-
|
|
10418
|
+
__decorate([
|
|
10201
10419
|
ignoreClone
|
|
10202
10420
|
], Renderer.prototype, "_rendererLayer", void 0);
|
|
10203
|
-
|
|
10421
|
+
__decorate([
|
|
10204
10422
|
ignoreClone
|
|
10205
10423
|
], Renderer.prototype, "_onTransformChanged", null);
|
|
10206
|
-
Renderer =
|
|
10424
|
+
Renderer = __decorate([
|
|
10207
10425
|
dependentComponents(Transform)
|
|
10208
10426
|
], Renderer);
|
|
10209
10427
|
var RendererUpdateFlags;
|
|
@@ -10275,15 +10493,19 @@ var SimpleSpriteAssembler = (_SimpleSpriteAssembler = /*#__PURE__*/ function() {
|
|
|
10275
10493
|
renderUVs[3].set(right, top);
|
|
10276
10494
|
};
|
|
10277
10495
|
return SimpleSpriteAssembler1;
|
|
10278
|
-
}(),
|
|
10279
|
-
|
|
10280
|
-
|
|
10281
|
-
|
|
10282
|
-
|
|
10283
|
-
|
|
10284
|
-
|
|
10285
|
-
|
|
10286
|
-
|
|
10496
|
+
}(), function() {
|
|
10497
|
+
_SimpleSpriteAssembler._rectangleTriangles = [
|
|
10498
|
+
0,
|
|
10499
|
+
1,
|
|
10500
|
+
2,
|
|
10501
|
+
2,
|
|
10502
|
+
1,
|
|
10503
|
+
3
|
|
10504
|
+
];
|
|
10505
|
+
}(), function() {
|
|
10506
|
+
_SimpleSpriteAssembler._worldMatrix = new Matrix();
|
|
10507
|
+
}(), _SimpleSpriteAssembler);
|
|
10508
|
+
SimpleSpriteAssembler = __decorate([
|
|
10287
10509
|
StaticInterfaceImplement()
|
|
10288
10510
|
], SimpleSpriteAssembler);
|
|
10289
10511
|
|
|
@@ -10581,36 +10803,40 @@ SimpleSpriteAssembler = _ts_decorate([
|
|
|
10581
10803
|
]);
|
|
10582
10804
|
return SpriteMask;
|
|
10583
10805
|
}(Renderer);
|
|
10584
|
-
|
|
10585
|
-
/** @internal */ SpriteMask.
|
|
10586
|
-
|
|
10806
|
+
(function() {
|
|
10807
|
+
/** @internal */ SpriteMask._textureProperty = Shader.getPropertyByName("u_maskTexture");
|
|
10808
|
+
})();
|
|
10809
|
+
(function() {
|
|
10810
|
+
/** @internal */ SpriteMask._alphaCutoffProperty = Shader.getPropertyByName("u_maskAlphaCutoff");
|
|
10811
|
+
})();
|
|
10812
|
+
__decorate([
|
|
10587
10813
|
assignmentClone
|
|
10588
10814
|
], SpriteMask.prototype, "influenceLayers", void 0);
|
|
10589
|
-
|
|
10815
|
+
__decorate([
|
|
10590
10816
|
ignoreClone
|
|
10591
10817
|
], SpriteMask.prototype, "_sprite", void 0);
|
|
10592
|
-
|
|
10818
|
+
__decorate([
|
|
10593
10819
|
ignoreClone
|
|
10594
10820
|
], SpriteMask.prototype, "_automaticWidth", void 0);
|
|
10595
|
-
|
|
10821
|
+
__decorate([
|
|
10596
10822
|
ignoreClone
|
|
10597
10823
|
], SpriteMask.prototype, "_automaticHeight", void 0);
|
|
10598
|
-
|
|
10824
|
+
__decorate([
|
|
10599
10825
|
assignmentClone
|
|
10600
10826
|
], SpriteMask.prototype, "_customWidth", void 0);
|
|
10601
|
-
|
|
10827
|
+
__decorate([
|
|
10602
10828
|
assignmentClone
|
|
10603
10829
|
], SpriteMask.prototype, "_customHeight", void 0);
|
|
10604
|
-
|
|
10830
|
+
__decorate([
|
|
10605
10831
|
assignmentClone
|
|
10606
10832
|
], SpriteMask.prototype, "_flipX", void 0);
|
|
10607
|
-
|
|
10833
|
+
__decorate([
|
|
10608
10834
|
assignmentClone
|
|
10609
10835
|
], SpriteMask.prototype, "_flipY", void 0);
|
|
10610
|
-
|
|
10836
|
+
__decorate([
|
|
10611
10837
|
assignmentClone
|
|
10612
10838
|
], SpriteMask.prototype, "_alphaCutoff", void 0);
|
|
10613
|
-
|
|
10839
|
+
__decorate([
|
|
10614
10840
|
ignoreClone
|
|
10615
10841
|
], SpriteMask.prototype, "_onSpriteChange", null);
|
|
10616
10842
|
var /**
|
|
@@ -11679,13 +11905,27 @@ var MeshModifyFlags;
|
|
|
11679
11905
|
};
|
|
11680
11906
|
return BlendShapeManager;
|
|
11681
11907
|
}();
|
|
11682
|
-
|
|
11683
|
-
BlendShapeManager.
|
|
11684
|
-
|
|
11685
|
-
|
|
11686
|
-
BlendShapeManager.
|
|
11687
|
-
|
|
11688
|
-
|
|
11908
|
+
(function() {
|
|
11909
|
+
BlendShapeManager._blendShapeMacro = Shader.getMacroByName("OASIS_BLENDSHAPE");
|
|
11910
|
+
})();
|
|
11911
|
+
(function() {
|
|
11912
|
+
BlendShapeManager._blendShapeTextureMacro = Shader.getMacroByName("OASIS_BLENDSHAPE_TEXTURE");
|
|
11913
|
+
})();
|
|
11914
|
+
(function() {
|
|
11915
|
+
BlendShapeManager._blendShapeNormalMacro = Shader.getMacroByName("OASIS_BLENDSHAPE_NORMAL");
|
|
11916
|
+
})();
|
|
11917
|
+
(function() {
|
|
11918
|
+
BlendShapeManager._blendShapeTangentMacro = Shader.getMacroByName("OASIS_BLENDSHAPE_TANGENT");
|
|
11919
|
+
})();
|
|
11920
|
+
(function() {
|
|
11921
|
+
BlendShapeManager._blendShapeWeightsProperty = Shader.getPropertyByName("u_blendShapeWeights");
|
|
11922
|
+
})();
|
|
11923
|
+
(function() {
|
|
11924
|
+
BlendShapeManager._blendShapeTextureProperty = Shader.getPropertyByName("u_blendShapeTexture");
|
|
11925
|
+
})();
|
|
11926
|
+
(function() {
|
|
11927
|
+
BlendShapeManager._blendShapeTextureInfoProperty = Shader.getPropertyByName("u_blendShapeTextureInfo");
|
|
11928
|
+
})();
|
|
11689
11929
|
|
|
11690
11930
|
/**
|
|
11691
11931
|
* Vertex attribute types of a vertex in a ModelMesh.
|
|
@@ -12760,11 +13000,21 @@ BlendShapeManager._blendShapeTextureInfoProperty = Shader.getPropertyByName("u_b
|
|
|
12760
13000
|
]);
|
|
12761
13001
|
return ModelMesh;
|
|
12762
13002
|
}(Mesh);
|
|
12763
|
-
|
|
12764
|
-
ModelMesh.
|
|
12765
|
-
|
|
12766
|
-
|
|
12767
|
-
ModelMesh.
|
|
13003
|
+
(function() {
|
|
13004
|
+
ModelMesh._tempVec0 = new Vector3();
|
|
13005
|
+
})();
|
|
13006
|
+
(function() {
|
|
13007
|
+
ModelMesh._tempVec1 = new Vector3();
|
|
13008
|
+
})();
|
|
13009
|
+
(function() {
|
|
13010
|
+
ModelMesh._tempVec2 = new Vector3();
|
|
13011
|
+
})();
|
|
13012
|
+
(function() {
|
|
13013
|
+
ModelMesh._tempVec3 = new Vector3();
|
|
13014
|
+
})();
|
|
13015
|
+
(function() {
|
|
13016
|
+
ModelMesh._tempVec4 = new Vector3();
|
|
13017
|
+
})();
|
|
12768
13018
|
var VertexChangedFlags;
|
|
12769
13019
|
(function(VertexChangedFlags) {
|
|
12770
13020
|
VertexChangedFlags[VertexChangedFlags["Position"] = 0x1] = "Position";
|
|
@@ -12944,15 +13194,25 @@ var VertexChangedFlags;
|
|
|
12944
13194
|
]);
|
|
12945
13195
|
return MeshRenderer;
|
|
12946
13196
|
}(Renderer);
|
|
12947
|
-
|
|
12948
|
-
MeshRenderer.
|
|
12949
|
-
|
|
12950
|
-
|
|
12951
|
-
MeshRenderer.
|
|
12952
|
-
|
|
13197
|
+
(function() {
|
|
13198
|
+
MeshRenderer._uvMacro = Shader.getMacroByName("O3_HAS_UV");
|
|
13199
|
+
})();
|
|
13200
|
+
(function() {
|
|
13201
|
+
MeshRenderer._uv1Macro = Shader.getMacroByName("O3_HAS_UV1");
|
|
13202
|
+
})();
|
|
13203
|
+
(function() {
|
|
13204
|
+
MeshRenderer._normalMacro = Shader.getMacroByName("O3_HAS_NORMAL");
|
|
13205
|
+
})();
|
|
13206
|
+
(function() {
|
|
13207
|
+
MeshRenderer._tangentMacro = Shader.getMacroByName("O3_HAS_TANGENT");
|
|
13208
|
+
})();
|
|
13209
|
+
(function() {
|
|
13210
|
+
MeshRenderer._vertexColorMacro = Shader.getMacroByName("O3_HAS_VERTEXCOLOR");
|
|
13211
|
+
})();
|
|
13212
|
+
__decorate([
|
|
12953
13213
|
ignoreClone
|
|
12954
13214
|
], MeshRenderer.prototype, "_mesh", void 0);
|
|
12955
|
-
|
|
13215
|
+
__decorate([
|
|
12956
13216
|
ignoreClone
|
|
12957
13217
|
], MeshRenderer.prototype, "_onMeshChanged", null);
|
|
12958
13218
|
var /**
|
|
@@ -13008,13 +13268,13 @@ var Utils = /*#__PURE__*/ function() {
|
|
|
13008
13268
|
};
|
|
13009
13269
|
Utils._stringToPath = function _stringToPath(string) {
|
|
13010
13270
|
var result = [];
|
|
13011
|
-
if (string.charCodeAt(0) === charCodeOfDot
|
|
13271
|
+
if (string.charCodeAt(0) === charCodeOfDot) {
|
|
13012
13272
|
result.push("");
|
|
13013
13273
|
}
|
|
13014
|
-
string.replace(rePropName
|
|
13274
|
+
string.replace(rePropName, function(match, expression, quote, subString) {
|
|
13015
13275
|
var key = match;
|
|
13016
13276
|
if (quote) {
|
|
13017
|
-
key = subString.replace(reEscapeChar
|
|
13277
|
+
key = subString.replace(reEscapeChar, "$1");
|
|
13018
13278
|
} else if (expression) {
|
|
13019
13279
|
key = expression.trim();
|
|
13020
13280
|
}
|
|
@@ -13024,9 +13284,9 @@ var Utils = /*#__PURE__*/ function() {
|
|
|
13024
13284
|
};
|
|
13025
13285
|
return Utils;
|
|
13026
13286
|
}();
|
|
13027
|
-
var charCodeOfDot
|
|
13028
|
-
var reEscapeChar
|
|
13029
|
-
var rePropName
|
|
13287
|
+
var charCodeOfDot = ".".charCodeAt(0);
|
|
13288
|
+
var reEscapeChar = /\\(\\)?/g;
|
|
13289
|
+
var rePropName = RegExp(// Match anything that isn't a dot or bracket.
|
|
13030
13290
|
"[^.[\\]]+" + "|" + // Or match property names within brackets.
|
|
13031
13291
|
"\\[(?:" + // Match a non-string expression.
|
|
13032
13292
|
"([^\"'][^[]*)" + "|" + // Or match strings (supports escaping characters).
|
|
@@ -13341,44 +13601,52 @@ var rePropName$1 = RegExp(// Match anything that isn't a dot or bracket.
|
|
|
13341
13601
|
]);
|
|
13342
13602
|
return SkinnedMeshRenderer;
|
|
13343
13603
|
}(MeshRenderer);
|
|
13344
|
-
|
|
13345
|
-
SkinnedMeshRenderer.
|
|
13346
|
-
|
|
13347
|
-
|
|
13348
|
-
|
|
13604
|
+
(function() {
|
|
13605
|
+
SkinnedMeshRenderer._tempMatrix = new Matrix();
|
|
13606
|
+
})();
|
|
13607
|
+
(function() {
|
|
13608
|
+
SkinnedMeshRenderer._jointCountProperty = Shader.getPropertyByName("u_jointCount");
|
|
13609
|
+
})();
|
|
13610
|
+
(function() {
|
|
13611
|
+
SkinnedMeshRenderer._jointSamplerProperty = Shader.getPropertyByName("u_jointSampler");
|
|
13612
|
+
})();
|
|
13613
|
+
(function() {
|
|
13614
|
+
SkinnedMeshRenderer._jointMatrixProperty = Shader.getPropertyByName("u_jointMatrix");
|
|
13615
|
+
})();
|
|
13616
|
+
__decorate([
|
|
13349
13617
|
ignoreClone
|
|
13350
13618
|
], SkinnedMeshRenderer.prototype, "_supportSkinning", void 0);
|
|
13351
|
-
|
|
13619
|
+
__decorate([
|
|
13352
13620
|
ignoreClone
|
|
13353
13621
|
], SkinnedMeshRenderer.prototype, "_hasInitSkin", void 0);
|
|
13354
|
-
|
|
13622
|
+
__decorate([
|
|
13355
13623
|
ignoreClone
|
|
13356
13624
|
], SkinnedMeshRenderer.prototype, "_jointDataCreateCache", void 0);
|
|
13357
|
-
|
|
13625
|
+
__decorate([
|
|
13358
13626
|
ignoreClone
|
|
13359
13627
|
], SkinnedMeshRenderer.prototype, "_blendShapeWeights", void 0);
|
|
13360
|
-
|
|
13628
|
+
__decorate([
|
|
13361
13629
|
ignoreClone
|
|
13362
13630
|
], SkinnedMeshRenderer.prototype, "_maxVertexUniformVectors", void 0);
|
|
13363
|
-
|
|
13631
|
+
__decorate([
|
|
13364
13632
|
ignoreClone
|
|
13365
13633
|
], SkinnedMeshRenderer.prototype, "_rootBone", void 0);
|
|
13366
|
-
|
|
13634
|
+
__decorate([
|
|
13367
13635
|
ignoreClone
|
|
13368
13636
|
], SkinnedMeshRenderer.prototype, "_localBounds", void 0);
|
|
13369
|
-
|
|
13637
|
+
__decorate([
|
|
13370
13638
|
ignoreClone
|
|
13371
13639
|
], SkinnedMeshRenderer.prototype, "_jointMatrices", void 0);
|
|
13372
|
-
|
|
13640
|
+
__decorate([
|
|
13373
13641
|
ignoreClone
|
|
13374
13642
|
], SkinnedMeshRenderer.prototype, "_jointTexture", void 0);
|
|
13375
|
-
|
|
13643
|
+
__decorate([
|
|
13376
13644
|
ignoreClone
|
|
13377
13645
|
], SkinnedMeshRenderer.prototype, "_jointEntities", void 0);
|
|
13378
|
-
|
|
13646
|
+
__decorate([
|
|
13379
13647
|
ignoreClone
|
|
13380
13648
|
], SkinnedMeshRenderer.prototype, "_condensedBlendShapeWeights", void 0);
|
|
13381
|
-
|
|
13649
|
+
__decorate([
|
|
13382
13650
|
ignoreClone
|
|
13383
13651
|
], SkinnedMeshRenderer.prototype, "_onLocalBoundsChanged", null);
|
|
13384
13652
|
|
|
@@ -14388,8 +14656,12 @@ var Basic2DBatcher = /*#__PURE__*/ function() {
|
|
|
14388
14656
|
};
|
|
14389
14657
|
return Basic2DBatcher;
|
|
14390
14658
|
}();
|
|
14391
|
-
|
|
14392
|
-
Basic2DBatcher.
|
|
14659
|
+
(function() {
|
|
14660
|
+
/** The maximum number of vertex. */ Basic2DBatcher.MAX_VERTEX_COUNT = 4096;
|
|
14661
|
+
})();
|
|
14662
|
+
(function() {
|
|
14663
|
+
Basic2DBatcher._canUploadSameBuffer = true;
|
|
14664
|
+
})();
|
|
14393
14665
|
|
|
14394
14666
|
var SpriteMaskBatcher = /*#__PURE__*/ function(Basic2DBatcher) {
|
|
14395
14667
|
_inherits(SpriteMaskBatcher, Basic2DBatcher);
|
|
@@ -14649,9 +14921,15 @@ var TextRenderElement = /*#__PURE__*/ function(RenderElement) {
|
|
|
14649
14921
|
]);
|
|
14650
14922
|
return Sky;
|
|
14651
14923
|
}();
|
|
14652
|
-
|
|
14653
|
-
Sky.
|
|
14654
|
-
|
|
14924
|
+
(function() {
|
|
14925
|
+
Sky._epsilon = 1e-6;
|
|
14926
|
+
})();
|
|
14927
|
+
(function() {
|
|
14928
|
+
Sky._viewProjMatrix = new Matrix();
|
|
14929
|
+
})();
|
|
14930
|
+
(function() {
|
|
14931
|
+
Sky._projectionMatrix = new Matrix(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, Sky._epsilon - 1, -1, 0, 0, 0, 0);
|
|
14932
|
+
})();
|
|
14655
14933
|
|
|
14656
14934
|
/**
|
|
14657
14935
|
* Background of scene.
|
|
@@ -15031,15 +15309,33 @@ Sky._projectionMatrix = new Matrix(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, Sky._epsilon -
|
|
|
15031
15309
|
]);
|
|
15032
15310
|
return AmbientLight;
|
|
15033
15311
|
}();
|
|
15034
|
-
|
|
15035
|
-
AmbientLight.
|
|
15036
|
-
|
|
15037
|
-
|
|
15038
|
-
AmbientLight.
|
|
15039
|
-
|
|
15040
|
-
|
|
15041
|
-
AmbientLight.
|
|
15042
|
-
|
|
15312
|
+
(function() {
|
|
15313
|
+
AmbientLight._shMacro = Shader.getMacroByName("O3_USE_SH");
|
|
15314
|
+
})();
|
|
15315
|
+
(function() {
|
|
15316
|
+
AmbientLight._specularMacro = Shader.getMacroByName("O3_USE_SPECULAR_ENV");
|
|
15317
|
+
})();
|
|
15318
|
+
(function() {
|
|
15319
|
+
AmbientLight._decodeRGBMMacro = Shader.getMacroByName("O3_DECODE_ENV_RGBM");
|
|
15320
|
+
})();
|
|
15321
|
+
(function() {
|
|
15322
|
+
AmbientLight._diffuseColorProperty = Shader.getPropertyByName("u_envMapLight.diffuse");
|
|
15323
|
+
})();
|
|
15324
|
+
(function() {
|
|
15325
|
+
AmbientLight._diffuseSHProperty = Shader.getPropertyByName("u_env_sh");
|
|
15326
|
+
})();
|
|
15327
|
+
(function() {
|
|
15328
|
+
AmbientLight._diffuseIntensityProperty = Shader.getPropertyByName("u_envMapLight.diffuseIntensity");
|
|
15329
|
+
})();
|
|
15330
|
+
(function() {
|
|
15331
|
+
AmbientLight._specularTextureProperty = Shader.getPropertyByName("u_env_specularSampler");
|
|
15332
|
+
})();
|
|
15333
|
+
(function() {
|
|
15334
|
+
AmbientLight._specularIntensityProperty = Shader.getPropertyByName("u_envMapLight.specularIntensity");
|
|
15335
|
+
})();
|
|
15336
|
+
(function() {
|
|
15337
|
+
AmbientLight._mipLevelProperty = Shader.getPropertyByName("u_envMapLight.mipMapLevel");
|
|
15338
|
+
})();
|
|
15043
15339
|
|
|
15044
15340
|
/**
|
|
15045
15341
|
* Scene.
|
|
@@ -15424,8 +15720,12 @@ AmbientLight._mipLevelProperty = Shader.getPropertyByName("u_envMapLight.mipMapL
|
|
|
15424
15720
|
]);
|
|
15425
15721
|
return Scene;
|
|
15426
15722
|
}(EngineObject);
|
|
15427
|
-
|
|
15428
|
-
Scene.
|
|
15723
|
+
(function() {
|
|
15724
|
+
Scene._fogColorProperty = Shader.getPropertyByName("oasis_FogColor");
|
|
15725
|
+
})();
|
|
15726
|
+
(function() {
|
|
15727
|
+
Scene._fogParamsProperty = Shader.getPropertyByName("oasis_FogParams");
|
|
15728
|
+
})();
|
|
15429
15729
|
|
|
15430
15730
|
/**
|
|
15431
15731
|
* Scene manager.
|
|
@@ -15508,7 +15808,7 @@ var pbrSpecularFs = "#define GLSLIFY 1\n#include <common>\n#include <camera_decl
|
|
|
15508
15808
|
|
|
15509
15809
|
var pbrVs = "#define GLSLIFY 1\n#include <common>\n#include <common_vert>\n#include <blendShape_input>\n#include <uv_share>\n#include <color_share>\n#include <normal_share>\n#include <worldpos_share>\n#include <ShadowVertexDeclaration>\n#include <FogVertexDeclaration>\nvoid main(){\n#include <begin_position_vert>\n#include <begin_normal_vert>\n#include <blendShape_vert>\n#include <skinning_vert>\n#include <uv_vert>\n#include <color_vert>\n#include <normal_vert>\n#include <worldpos_vert>\n#include <position_vert>\n#include <ShadowVertex>\n#include <FogVertex>\n}"; // eslint-disable-line
|
|
15510
15810
|
|
|
15511
|
-
var shadowMapFs = "#define GLSLIFY 1\n#ifdef OASIS_NO_DEPTH_TEXTURE\
|
|
15811
|
+
var shadowMapFs = "#define GLSLIFY 1\n#ifdef OASIS_NO_DEPTH_TEXTURE\nvec4 pack(float depth){const vec4 bitShift=vec4(1.0,256.0,256.0*256.0,256.0*256.0*256.0);const vec4 bitMask=vec4(1.0/256.0,1.0/256.0,1.0/256.0,0.0);vec4 rgbaDepth=fract(depth*bitShift);rgbaDepth-=rgbaDepth.gbaa*bitMask;return rgbaDepth;}\n#endif\nvoid main(){\n#ifdef OASIS_NO_DEPTH_TEXTURE\ngl_FragColor=pack(gl_FragCoord.z);\n#else\ngl_FragColor=vec4(0.0,0.0,0.0,0.0);\n#endif\n}"; // eslint-disable-line
|
|
15512
15812
|
|
|
15513
15813
|
var shadowMapVs = "#define GLSLIFY 1\n#include <common>\n#include <common_vert>\n#include <blendShape_input>\n#include <normal_share>\nuniform mat4 u_VPMat;uniform vec2 u_shadowBias;uniform vec3 u_lightDirection;vec3 applyShadowBias(vec3 positionWS){positionWS-=u_lightDirection*u_shadowBias.x;return positionWS;}vec3 applyShadowNormalBias(vec3 positionWS,vec3 normalWS){float invNdotL=1.0-clamp(dot(-u_lightDirection,normalWS),0.0,1.0);float scale=invNdotL*u_shadowBias.y;positionWS+=normalWS*vec3(scale);return positionWS;}void main(){\n#include <begin_position_vert>\n#include <begin_normal_vert>\n#include <blendShape_vert>\n#include <skinning_vert>\nvec4 positionWS=u_modelMat*position;positionWS.xyz=applyShadowBias(positionWS.xyz);\n#ifndef OMIT_NORMAL\n#ifdef O3_HAS_NORMAL\nvec3 normalWS=normalize(mat3(u_normalMat)*normal);positionWS.xyz=applyShadowNormalBias(positionWS.xyz,normalWS);\n#endif\n#endif\nvec4 positionCS=u_VPMat*positionWS;positionCS.z=max(positionCS.z,-1.0);gl_Position=positionCS;}"; // eslint-disable-line
|
|
15514
15814
|
|
|
@@ -15973,9 +16273,15 @@ ShaderPool.init();
|
|
|
15973
16273
|
]);
|
|
15974
16274
|
return Engine;
|
|
15975
16275
|
}(EventDispatcher);
|
|
15976
|
-
|
|
15977
|
-
/** @internal */ Engine.
|
|
15978
|
-
|
|
16276
|
+
(function() {
|
|
16277
|
+
/** @internal */ Engine._gammaMacro = Shader.getMacroByName("OASIS_COLORSPACE_GAMMA");
|
|
16278
|
+
})();
|
|
16279
|
+
(function() {
|
|
16280
|
+
/** @internal */ Engine._noDepthTextureMacro = Shader.getMacroByName("OASIS_NO_DEPTH_TEXTURE");
|
|
16281
|
+
})();
|
|
16282
|
+
(function() {
|
|
16283
|
+
/** @internal Conversion of space units to pixel units for 2D. */ Engine._pixelsPerUnit = 100;
|
|
16284
|
+
})();
|
|
15979
16285
|
|
|
15980
16286
|
/**
|
|
15981
16287
|
* Script class, used for logic writing.
|
|
@@ -16149,31 +16455,31 @@ ShaderPool.init();
|
|
|
16149
16455
|
};
|
|
16150
16456
|
return Script;
|
|
16151
16457
|
}(Component);
|
|
16152
|
-
|
|
16458
|
+
__decorate([
|
|
16153
16459
|
ignoreClone
|
|
16154
16460
|
], Script.prototype, "_started", void 0);
|
|
16155
|
-
|
|
16461
|
+
__decorate([
|
|
16156
16462
|
ignoreClone
|
|
16157
16463
|
], Script.prototype, "_onStartIndex", void 0);
|
|
16158
|
-
|
|
16464
|
+
__decorate([
|
|
16159
16465
|
ignoreClone
|
|
16160
16466
|
], Script.prototype, "_onUpdateIndex", void 0);
|
|
16161
|
-
|
|
16467
|
+
__decorate([
|
|
16162
16468
|
ignoreClone
|
|
16163
16469
|
], Script.prototype, "_onLateUpdateIndex", void 0);
|
|
16164
|
-
|
|
16470
|
+
__decorate([
|
|
16165
16471
|
ignoreClone
|
|
16166
16472
|
], Script.prototype, "_onPhysicsUpdateIndex", void 0);
|
|
16167
|
-
|
|
16473
|
+
__decorate([
|
|
16168
16474
|
ignoreClone
|
|
16169
16475
|
], Script.prototype, "_onPreRenderIndex", void 0);
|
|
16170
|
-
|
|
16476
|
+
__decorate([
|
|
16171
16477
|
ignoreClone
|
|
16172
16478
|
], Script.prototype, "_onPostRenderIndex", void 0);
|
|
16173
|
-
|
|
16479
|
+
__decorate([
|
|
16174
16480
|
ignoreClone
|
|
16175
16481
|
], Script.prototype, "_entityScriptsIndex", void 0);
|
|
16176
|
-
|
|
16482
|
+
__decorate([
|
|
16177
16483
|
ignoreClone
|
|
16178
16484
|
], Script.prototype, "_waitHandlingInValid", void 0);
|
|
16179
16485
|
|
|
@@ -16290,7 +16596,9 @@ _ts_decorate([
|
|
|
16290
16596
|
};
|
|
16291
16597
|
return SpriteBatcher;
|
|
16292
16598
|
}(Basic2DBatcher);
|
|
16293
|
-
|
|
16599
|
+
(function() {
|
|
16600
|
+
SpriteBatcher._textureProperty = Shader.getPropertyByName("u_spriteTexture");
|
|
16601
|
+
})();
|
|
16294
16602
|
|
|
16295
16603
|
/**
|
|
16296
16604
|
* Render queue.
|
|
@@ -16788,227 +17096,247 @@ var /**
|
|
|
16788
17096
|
};
|
|
16789
17097
|
return ShadowUtils;
|
|
16790
17098
|
}();
|
|
16791
|
-
|
|
16792
|
-
|
|
16793
|
-
|
|
16794
|
-
|
|
16795
|
-
|
|
16796
|
-
new
|
|
16797
|
-
|
|
16798
|
-
|
|
16799
|
-
|
|
16800
|
-
|
|
16801
|
-
|
|
16802
|
-
|
|
16803
|
-
|
|
16804
|
-
|
|
16805
|
-
|
|
16806
|
-
|
|
16807
|
-
|
|
16808
|
-
|
|
16809
|
-
|
|
16810
|
-
|
|
16811
|
-
|
|
16812
|
-
|
|
16813
|
-
|
|
16814
|
-
|
|
16815
|
-
|
|
16816
|
-
|
|
16817
|
-
|
|
16818
|
-
|
|
16819
|
-
|
|
16820
|
-
|
|
16821
|
-
|
|
16822
|
-
|
|
16823
|
-
|
|
16824
|
-
FrustumFace.Top,
|
|
16825
|
-
FrustumFace.Bottom
|
|
16826
|
-
],
|
|
16827
|
-
[
|
|
16828
|
-
FrustumFace.Near,
|
|
16829
|
-
FrustumFace.Far,
|
|
16830
|
-
FrustumFace.Top,
|
|
16831
|
-
FrustumFace.Bottom
|
|
16832
|
-
],
|
|
16833
|
-
[
|
|
16834
|
-
FrustumFace.Near,
|
|
16835
|
-
FrustumFace.Far,
|
|
16836
|
-
FrustumFace.Left,
|
|
16837
|
-
FrustumFace.Right
|
|
16838
|
-
],
|
|
16839
|
-
[
|
|
16840
|
-
FrustumFace.Near,
|
|
16841
|
-
FrustumFace.Far,
|
|
16842
|
-
FrustumFace.Left,
|
|
16843
|
-
FrustumFace.Right
|
|
16844
|
-
]
|
|
16845
|
-
];
|
|
16846
|
-
/** near, far, left, right, bottom, top */ ShadowUtils._frustumTwoPlaneCorners = [
|
|
16847
|
-
[
|
|
16848
|
-
// near, far, left, right, bottom, top
|
|
16849
|
-
[
|
|
16850
|
-
8,
|
|
16851
|
-
8
|
|
16852
|
-
],
|
|
16853
|
-
[
|
|
16854
|
-
8,
|
|
16855
|
-
8
|
|
16856
|
-
],
|
|
16857
|
-
[
|
|
16858
|
-
4,
|
|
16859
|
-
5
|
|
16860
|
-
],
|
|
16861
|
-
[
|
|
16862
|
-
6,
|
|
16863
|
-
7
|
|
16864
|
-
],
|
|
16865
|
-
[
|
|
16866
|
-
7,
|
|
16867
|
-
4
|
|
16868
|
-
],
|
|
16869
|
-
[
|
|
16870
|
-
5,
|
|
16871
|
-
6
|
|
16872
|
-
]
|
|
16873
|
-
],
|
|
16874
|
-
[
|
|
16875
|
-
// near, far, left, right, bottom, top
|
|
16876
|
-
[
|
|
16877
|
-
8,
|
|
16878
|
-
8
|
|
16879
|
-
],
|
|
16880
|
-
[
|
|
16881
|
-
8,
|
|
16882
|
-
8
|
|
16883
|
-
],
|
|
16884
|
-
[
|
|
16885
|
-
1,
|
|
16886
|
-
0
|
|
16887
|
-
],
|
|
16888
|
-
[
|
|
16889
|
-
3,
|
|
16890
|
-
2
|
|
16891
|
-
],
|
|
16892
|
-
[
|
|
16893
|
-
0,
|
|
16894
|
-
3
|
|
16895
|
-
],
|
|
16896
|
-
[
|
|
16897
|
-
2,
|
|
16898
|
-
1
|
|
16899
|
-
]
|
|
16900
|
-
],
|
|
16901
|
-
[
|
|
16902
|
-
// near, far, left, right, bottom, top
|
|
16903
|
-
[
|
|
16904
|
-
5,
|
|
16905
|
-
4
|
|
16906
|
-
],
|
|
16907
|
-
[
|
|
16908
|
-
0,
|
|
16909
|
-
1
|
|
16910
|
-
],
|
|
16911
|
-
[
|
|
16912
|
-
8,
|
|
16913
|
-
8
|
|
16914
|
-
],
|
|
16915
|
-
[
|
|
16916
|
-
8,
|
|
16917
|
-
8
|
|
16918
|
-
],
|
|
16919
|
-
[
|
|
16920
|
-
4,
|
|
16921
|
-
0
|
|
16922
|
-
],
|
|
16923
|
-
[
|
|
16924
|
-
1,
|
|
16925
|
-
5
|
|
16926
|
-
]
|
|
16927
|
-
],
|
|
16928
|
-
[
|
|
16929
|
-
// near, far, left, right, bottom, top
|
|
16930
|
-
[
|
|
16931
|
-
7,
|
|
16932
|
-
6
|
|
16933
|
-
],
|
|
16934
|
-
[
|
|
16935
|
-
2,
|
|
16936
|
-
3
|
|
16937
|
-
],
|
|
16938
|
-
[
|
|
16939
|
-
8,
|
|
16940
|
-
8
|
|
16941
|
-
],
|
|
16942
|
-
[
|
|
16943
|
-
8,
|
|
16944
|
-
8
|
|
16945
|
-
],
|
|
16946
|
-
[
|
|
16947
|
-
3,
|
|
16948
|
-
7
|
|
16949
|
-
],
|
|
16950
|
-
[
|
|
16951
|
-
6,
|
|
16952
|
-
2
|
|
16953
|
-
]
|
|
16954
|
-
],
|
|
16955
|
-
[
|
|
16956
|
-
// near, far, left, right, bottom, top
|
|
17099
|
+
(function() {
|
|
17100
|
+
ShadowUtils._tempMatrix0 = new Matrix();
|
|
17101
|
+
})();
|
|
17102
|
+
(function() {
|
|
17103
|
+
// prettier-ignore
|
|
17104
|
+
/** @internal */ ShadowUtils._shadowMapCoordMatrix = new Matrix(0.5, 0.0, 0.0, 0.0, 0.0, 0.5, 0.0, 0.0, 0.0, 0.0, 0.5, 0.0, 0.5, 0.5, 0.5, 1.0);
|
|
17105
|
+
})();
|
|
17106
|
+
(function() {
|
|
17107
|
+
ShadowUtils._frustumCorners = [
|
|
17108
|
+
new Vector3(),
|
|
17109
|
+
new Vector3(),
|
|
17110
|
+
new Vector3(),
|
|
17111
|
+
new Vector3(),
|
|
17112
|
+
new Vector3(),
|
|
17113
|
+
new Vector3(),
|
|
17114
|
+
new Vector3(),
|
|
17115
|
+
new Vector3()
|
|
17116
|
+
];
|
|
17117
|
+
})();
|
|
17118
|
+
(function() {
|
|
17119
|
+
ShadowUtils._adjustNearPlane = new Plane(new Vector3());
|
|
17120
|
+
})();
|
|
17121
|
+
(function() {
|
|
17122
|
+
ShadowUtils._adjustFarPlane = new Plane(new Vector3());
|
|
17123
|
+
})();
|
|
17124
|
+
(function() {
|
|
17125
|
+
ShadowUtils._backPlaneFaces = new Array(5);
|
|
17126
|
+
})();
|
|
17127
|
+
(function() {
|
|
17128
|
+
ShadowUtils._edgePlanePoint2 = new Vector3();
|
|
17129
|
+
})();
|
|
17130
|
+
(function() {
|
|
17131
|
+
/** near, far, left, right, bottom, top */ ShadowUtils._frustumPlaneNeighbors = [
|
|
16957
17132
|
[
|
|
16958
|
-
|
|
16959
|
-
|
|
17133
|
+
FrustumFace.Left,
|
|
17134
|
+
FrustumFace.Right,
|
|
17135
|
+
FrustumFace.Top,
|
|
17136
|
+
FrustumFace.Bottom
|
|
16960
17137
|
],
|
|
16961
17138
|
[
|
|
16962
|
-
|
|
16963
|
-
|
|
17139
|
+
FrustumFace.Left,
|
|
17140
|
+
FrustumFace.Right,
|
|
17141
|
+
FrustumFace.Top,
|
|
17142
|
+
FrustumFace.Bottom
|
|
16964
17143
|
],
|
|
16965
17144
|
[
|
|
16966
|
-
|
|
16967
|
-
|
|
17145
|
+
FrustumFace.Near,
|
|
17146
|
+
FrustumFace.Far,
|
|
17147
|
+
FrustumFace.Top,
|
|
17148
|
+
FrustumFace.Bottom
|
|
16968
17149
|
],
|
|
16969
17150
|
[
|
|
16970
|
-
|
|
16971
|
-
|
|
17151
|
+
FrustumFace.Near,
|
|
17152
|
+
FrustumFace.Far,
|
|
17153
|
+
FrustumFace.Top,
|
|
17154
|
+
FrustumFace.Bottom
|
|
16972
17155
|
],
|
|
16973
17156
|
[
|
|
16974
|
-
|
|
16975
|
-
|
|
17157
|
+
FrustumFace.Near,
|
|
17158
|
+
FrustumFace.Far,
|
|
17159
|
+
FrustumFace.Left,
|
|
17160
|
+
FrustumFace.Right
|
|
16976
17161
|
],
|
|
16977
17162
|
[
|
|
16978
|
-
|
|
16979
|
-
|
|
17163
|
+
FrustumFace.Near,
|
|
17164
|
+
FrustumFace.Far,
|
|
17165
|
+
FrustumFace.Left,
|
|
17166
|
+
FrustumFace.Right
|
|
16980
17167
|
]
|
|
16981
|
-
]
|
|
16982
|
-
|
|
16983
|
-
|
|
17168
|
+
];
|
|
17169
|
+
})();
|
|
17170
|
+
(function() {
|
|
17171
|
+
/** near, far, left, right, bottom, top */ ShadowUtils._frustumTwoPlaneCorners = [
|
|
16984
17172
|
[
|
|
16985
|
-
|
|
16986
|
-
|
|
17173
|
+
// near, far, left, right, bottom, top
|
|
17174
|
+
[
|
|
17175
|
+
8,
|
|
17176
|
+
8
|
|
17177
|
+
],
|
|
17178
|
+
[
|
|
17179
|
+
8,
|
|
17180
|
+
8
|
|
17181
|
+
],
|
|
17182
|
+
[
|
|
17183
|
+
4,
|
|
17184
|
+
5
|
|
17185
|
+
],
|
|
17186
|
+
[
|
|
17187
|
+
6,
|
|
17188
|
+
7
|
|
17189
|
+
],
|
|
17190
|
+
[
|
|
17191
|
+
7,
|
|
17192
|
+
4
|
|
17193
|
+
],
|
|
17194
|
+
[
|
|
17195
|
+
5,
|
|
17196
|
+
6
|
|
17197
|
+
]
|
|
16987
17198
|
],
|
|
16988
17199
|
[
|
|
16989
|
-
|
|
16990
|
-
|
|
17200
|
+
// near, far, left, right, bottom, top
|
|
17201
|
+
[
|
|
17202
|
+
8,
|
|
17203
|
+
8
|
|
17204
|
+
],
|
|
17205
|
+
[
|
|
17206
|
+
8,
|
|
17207
|
+
8
|
|
17208
|
+
],
|
|
17209
|
+
[
|
|
17210
|
+
1,
|
|
17211
|
+
0
|
|
17212
|
+
],
|
|
17213
|
+
[
|
|
17214
|
+
3,
|
|
17215
|
+
2
|
|
17216
|
+
],
|
|
17217
|
+
[
|
|
17218
|
+
0,
|
|
17219
|
+
3
|
|
17220
|
+
],
|
|
17221
|
+
[
|
|
17222
|
+
2,
|
|
17223
|
+
1
|
|
17224
|
+
]
|
|
16991
17225
|
],
|
|
16992
17226
|
[
|
|
16993
|
-
|
|
16994
|
-
|
|
17227
|
+
// near, far, left, right, bottom, top
|
|
17228
|
+
[
|
|
17229
|
+
5,
|
|
17230
|
+
4
|
|
17231
|
+
],
|
|
17232
|
+
[
|
|
17233
|
+
0,
|
|
17234
|
+
1
|
|
17235
|
+
],
|
|
17236
|
+
[
|
|
17237
|
+
8,
|
|
17238
|
+
8
|
|
17239
|
+
],
|
|
17240
|
+
[
|
|
17241
|
+
8,
|
|
17242
|
+
8
|
|
17243
|
+
],
|
|
17244
|
+
[
|
|
17245
|
+
4,
|
|
17246
|
+
0
|
|
17247
|
+
],
|
|
17248
|
+
[
|
|
17249
|
+
1,
|
|
17250
|
+
5
|
|
17251
|
+
]
|
|
16995
17252
|
],
|
|
16996
17253
|
[
|
|
16997
|
-
|
|
16998
|
-
|
|
17254
|
+
// near, far, left, right, bottom, top
|
|
17255
|
+
[
|
|
17256
|
+
7,
|
|
17257
|
+
6
|
|
17258
|
+
],
|
|
17259
|
+
[
|
|
17260
|
+
2,
|
|
17261
|
+
3
|
|
17262
|
+
],
|
|
17263
|
+
[
|
|
17264
|
+
8,
|
|
17265
|
+
8
|
|
17266
|
+
],
|
|
17267
|
+
[
|
|
17268
|
+
8,
|
|
17269
|
+
8
|
|
17270
|
+
],
|
|
17271
|
+
[
|
|
17272
|
+
3,
|
|
17273
|
+
7
|
|
17274
|
+
],
|
|
17275
|
+
[
|
|
17276
|
+
6,
|
|
17277
|
+
2
|
|
17278
|
+
]
|
|
16999
17279
|
],
|
|
17000
17280
|
[
|
|
17001
|
-
|
|
17002
|
-
|
|
17281
|
+
// near, far, left, right, bottom, top
|
|
17282
|
+
[
|
|
17283
|
+
4,
|
|
17284
|
+
7
|
|
17285
|
+
],
|
|
17286
|
+
[
|
|
17287
|
+
3,
|
|
17288
|
+
0
|
|
17289
|
+
],
|
|
17290
|
+
[
|
|
17291
|
+
0,
|
|
17292
|
+
4
|
|
17293
|
+
],
|
|
17294
|
+
[
|
|
17295
|
+
7,
|
|
17296
|
+
3
|
|
17297
|
+
],
|
|
17298
|
+
[
|
|
17299
|
+
8,
|
|
17300
|
+
8
|
|
17301
|
+
],
|
|
17302
|
+
[
|
|
17303
|
+
8,
|
|
17304
|
+
8
|
|
17305
|
+
]
|
|
17003
17306
|
],
|
|
17004
17307
|
[
|
|
17005
|
-
|
|
17006
|
-
|
|
17308
|
+
// near, far, left, right, bottom, top
|
|
17309
|
+
[
|
|
17310
|
+
6,
|
|
17311
|
+
5
|
|
17312
|
+
],
|
|
17313
|
+
[
|
|
17314
|
+
1,
|
|
17315
|
+
2
|
|
17316
|
+
],
|
|
17317
|
+
[
|
|
17318
|
+
5,
|
|
17319
|
+
1
|
|
17320
|
+
],
|
|
17321
|
+
[
|
|
17322
|
+
2,
|
|
17323
|
+
6
|
|
17324
|
+
],
|
|
17325
|
+
[
|
|
17326
|
+
8,
|
|
17327
|
+
8
|
|
17328
|
+
],
|
|
17329
|
+
[
|
|
17330
|
+
8,
|
|
17331
|
+
8
|
|
17332
|
+
]
|
|
17007
17333
|
]
|
|
17008
|
-
]
|
|
17009
|
-
|
|
17010
|
-
|
|
17011
|
-
|
|
17334
|
+
];
|
|
17335
|
+
})();
|
|
17336
|
+
(function() {
|
|
17337
|
+
//now max shadow sample tent is 5x5, atlas borderSize at least 3=ceil(2.5),and +1 pixel is for global border for no cascade mode.
|
|
17338
|
+
ShadowUtils.atlasBorderSize = 4.0;
|
|
17339
|
+
})();
|
|
17012
17340
|
|
|
17013
17341
|
/**
|
|
17014
17342
|
* Cascade shadow caster.
|
|
@@ -17249,19 +17577,45 @@ ShadowUtils.atlasBorderSize = 4.0;
|
|
|
17249
17577
|
};
|
|
17250
17578
|
return CascadedShadowCasterPass;
|
|
17251
17579
|
}();
|
|
17252
|
-
|
|
17253
|
-
CascadedShadowCasterPass.
|
|
17254
|
-
|
|
17255
|
-
|
|
17256
|
-
CascadedShadowCasterPass.
|
|
17257
|
-
|
|
17258
|
-
|
|
17259
|
-
CascadedShadowCasterPass.
|
|
17260
|
-
|
|
17261
|
-
|
|
17262
|
-
CascadedShadowCasterPass.
|
|
17263
|
-
|
|
17264
|
-
|
|
17580
|
+
(function() {
|
|
17581
|
+
CascadedShadowCasterPass._lightShadowBiasProperty = Shader.getPropertyByName("u_shadowBias");
|
|
17582
|
+
})();
|
|
17583
|
+
(function() {
|
|
17584
|
+
CascadedShadowCasterPass._lightDirectionProperty = Shader.getPropertyByName("u_lightDirection");
|
|
17585
|
+
})();
|
|
17586
|
+
(function() {
|
|
17587
|
+
CascadedShadowCasterPass._shadowMatricesProperty = Shader.getPropertyByName("u_shadowMatrices");
|
|
17588
|
+
})();
|
|
17589
|
+
(function() {
|
|
17590
|
+
CascadedShadowCasterPass._shadowMapSize = Shader.getPropertyByName("u_shadowMapSize");
|
|
17591
|
+
})();
|
|
17592
|
+
(function() {
|
|
17593
|
+
CascadedShadowCasterPass._shadowInfosProperty = Shader.getPropertyByName("u_shadowInfo");
|
|
17594
|
+
})();
|
|
17595
|
+
(function() {
|
|
17596
|
+
CascadedShadowCasterPass._shadowMapsProperty = Shader.getPropertyByName("u_shadowMap");
|
|
17597
|
+
})();
|
|
17598
|
+
(function() {
|
|
17599
|
+
CascadedShadowCasterPass._shadowSplitSpheresProperty = Shader.getPropertyByName("u_shadowSplitSpheres");
|
|
17600
|
+
})();
|
|
17601
|
+
(function() {
|
|
17602
|
+
CascadedShadowCasterPass._maxCascades = 4;
|
|
17603
|
+
})();
|
|
17604
|
+
(function() {
|
|
17605
|
+
CascadedShadowCasterPass._cascadesSplitDistance = new Array(CascadedShadowCasterPass._maxCascades + 1);
|
|
17606
|
+
})();
|
|
17607
|
+
(function() {
|
|
17608
|
+
CascadedShadowCasterPass._viewport = new Vector4(0, 0, 1, 1);
|
|
17609
|
+
})();
|
|
17610
|
+
(function() {
|
|
17611
|
+
CascadedShadowCasterPass._clearColor = new Color$1(1, 1, 1, 1);
|
|
17612
|
+
})();
|
|
17613
|
+
(function() {
|
|
17614
|
+
CascadedShadowCasterPass._tempVector = new Vector3();
|
|
17615
|
+
})();
|
|
17616
|
+
(function() {
|
|
17617
|
+
CascadedShadowCasterPass._tempMatrix0 = new Matrix();
|
|
17618
|
+
})();
|
|
17265
17619
|
|
|
17266
17620
|
var passNum = 0;
|
|
17267
17621
|
/**
|
|
@@ -17506,15 +17860,25 @@ var passNum = 0;
|
|
|
17506
17860
|
]);
|
|
17507
17861
|
return BasicRenderPipeline;
|
|
17508
17862
|
}();
|
|
17509
|
-
|
|
17510
|
-
BasicRenderPipeline.
|
|
17863
|
+
(function() {
|
|
17864
|
+
BasicRenderPipeline._tempVector0 = new Vector3();
|
|
17865
|
+
})();
|
|
17866
|
+
(function() {
|
|
17867
|
+
BasicRenderPipeline._tempVector1 = new Vector3();
|
|
17868
|
+
})();
|
|
17511
17869
|
|
|
17512
17870
|
var _Camera;
|
|
17513
17871
|
var MathTemp = function MathTemp() {
|
|
17514
17872
|
};
|
|
17515
|
-
|
|
17516
|
-
MathTemp.
|
|
17517
|
-
|
|
17873
|
+
(function() {
|
|
17874
|
+
MathTemp.tempVec4 = new Vector4();
|
|
17875
|
+
})();
|
|
17876
|
+
(function() {
|
|
17877
|
+
MathTemp.tempVec3 = new Vector3();
|
|
17878
|
+
})();
|
|
17879
|
+
(function() {
|
|
17880
|
+
MathTemp.tempVec2 = new Vector2();
|
|
17881
|
+
})();
|
|
17518
17882
|
var Camera = (_Camera = /*#__PURE__*/ function(Component) {
|
|
17519
17883
|
_inherits(Camera1, Component);
|
|
17520
17884
|
function Camera1(entity) {
|
|
@@ -17531,6 +17895,8 @@ var Camera = (_Camera = /*#__PURE__*/ function(Component) {
|
|
|
17531
17895
|
* @remarks Support bit manipulation, corresponding to `Layer`.
|
|
17532
17896
|
*/ _this.cullingMask = Layer.Everything;
|
|
17533
17897
|
/** @internal */ _this._globalShaderMacro = new ShaderMacroCollection();
|
|
17898
|
+
/** @internal */ _this._frustum = new BoundingFrustum();
|
|
17899
|
+
/** @internal */ _this._virtualCamera = new VirtualCamera();
|
|
17534
17900
|
_this._shaderData = new ShaderData(ShaderDataGroup.Camera);
|
|
17535
17901
|
_this._isProjMatSetting = false;
|
|
17536
17902
|
_this._nearClipPlane = 0.1;
|
|
@@ -17542,8 +17908,6 @@ var Camera = (_Camera = /*#__PURE__*/ function(Component) {
|
|
|
17542
17908
|
_this._isFrustumProjectDirty = true;
|
|
17543
17909
|
_this._customAspectRatio = undefined;
|
|
17544
17910
|
_this._renderTarget = null;
|
|
17545
|
-
/** @internal */ _this._frustum = new BoundingFrustum();
|
|
17546
|
-
/** @internal */ _this._virtualCamera = new VirtualCamera();
|
|
17547
17911
|
_this._viewport = new Vector4(0, 0, 1, 1);
|
|
17548
17912
|
_this._inverseProjectionMatrix = new Matrix();
|
|
17549
17913
|
_this._lastAspectSize = new Vector2(0, 0);
|
|
@@ -17956,41 +18320,45 @@ var Camera = (_Camera = /*#__PURE__*/ function(Component) {
|
|
|
17956
18320
|
}
|
|
17957
18321
|
]);
|
|
17958
18322
|
return Camera1;
|
|
17959
|
-
}(Component),
|
|
17960
|
-
|
|
18323
|
+
}(Component), function() {
|
|
18324
|
+
/** @internal */ _Camera._inverseViewMatrixProperty = Shader.getPropertyByName("u_viewInvMat");
|
|
18325
|
+
}(), function() {
|
|
18326
|
+
/** @internal */ _Camera._cameraPositionProperty = Shader.getPropertyByName("u_cameraPos");
|
|
18327
|
+
}(), _Camera);
|
|
18328
|
+
__decorate([
|
|
17961
18329
|
deepClone
|
|
17962
18330
|
], Camera.prototype, "_frustum", void 0);
|
|
17963
|
-
|
|
18331
|
+
__decorate([
|
|
17964
18332
|
ignoreClone
|
|
17965
18333
|
], Camera.prototype, "_renderPipeline", void 0);
|
|
17966
|
-
|
|
18334
|
+
__decorate([
|
|
17967
18335
|
ignoreClone
|
|
17968
18336
|
], Camera.prototype, "_virtualCamera", void 0);
|
|
17969
|
-
|
|
18337
|
+
__decorate([
|
|
17970
18338
|
ignoreClone
|
|
17971
18339
|
], Camera.prototype, "_frustumViewChangeFlag", void 0);
|
|
17972
|
-
|
|
18340
|
+
__decorate([
|
|
17973
18341
|
ignoreClone
|
|
17974
18342
|
], Camera.prototype, "_transform", void 0);
|
|
17975
|
-
|
|
18343
|
+
__decorate([
|
|
17976
18344
|
ignoreClone
|
|
17977
18345
|
], Camera.prototype, "_isViewMatrixDirty", void 0);
|
|
17978
|
-
|
|
18346
|
+
__decorate([
|
|
17979
18347
|
ignoreClone
|
|
17980
18348
|
], Camera.prototype, "_isInvViewProjDirty", void 0);
|
|
17981
|
-
|
|
18349
|
+
__decorate([
|
|
17982
18350
|
deepClone
|
|
17983
18351
|
], Camera.prototype, "_viewport", void 0);
|
|
17984
|
-
|
|
18352
|
+
__decorate([
|
|
17985
18353
|
deepClone
|
|
17986
18354
|
], Camera.prototype, "_inverseProjectionMatrix", void 0);
|
|
17987
|
-
|
|
18355
|
+
__decorate([
|
|
17988
18356
|
deepClone
|
|
17989
18357
|
], Camera.prototype, "_lastAspectSize", void 0);
|
|
17990
|
-
|
|
18358
|
+
__decorate([
|
|
17991
18359
|
deepClone
|
|
17992
18360
|
], Camera.prototype, "_invViewProjMat", void 0);
|
|
17993
|
-
Camera =
|
|
18361
|
+
Camera = __decorate([
|
|
17994
18362
|
dependentComponents(Transform)
|
|
17995
18363
|
], Camera);
|
|
17996
18364
|
|
|
@@ -18169,7 +18537,9 @@ var MultiExecutor = /*#__PURE__*/ function() {
|
|
|
18169
18537
|
};
|
|
18170
18538
|
return Loader;
|
|
18171
18539
|
}();
|
|
18172
|
-
|
|
18540
|
+
(function() {
|
|
18541
|
+
Loader._engineObjects = {};
|
|
18542
|
+
})();
|
|
18173
18543
|
|
|
18174
18544
|
/**
|
|
18175
18545
|
* Asset Type.
|
|
@@ -18422,19 +18792,45 @@ var BaseMaterial = /*#__PURE__*/ function(Material) {
|
|
|
18422
18792
|
]);
|
|
18423
18793
|
return BaseMaterial;
|
|
18424
18794
|
}(Material);
|
|
18425
|
-
|
|
18426
|
-
BaseMaterial.
|
|
18427
|
-
|
|
18428
|
-
|
|
18429
|
-
BaseMaterial.
|
|
18430
|
-
|
|
18431
|
-
|
|
18432
|
-
BaseMaterial.
|
|
18433
|
-
|
|
18434
|
-
|
|
18435
|
-
BaseMaterial.
|
|
18436
|
-
|
|
18437
|
-
|
|
18795
|
+
(function() {
|
|
18796
|
+
BaseMaterial._baseColorProp = Shader.getPropertyByName("u_baseColor");
|
|
18797
|
+
})();
|
|
18798
|
+
(function() {
|
|
18799
|
+
BaseMaterial._baseTextureProp = Shader.getPropertyByName("u_baseTexture");
|
|
18800
|
+
})();
|
|
18801
|
+
(function() {
|
|
18802
|
+
BaseMaterial._baseTextureMacro = Shader.getMacroByName("BASETEXTURE");
|
|
18803
|
+
})();
|
|
18804
|
+
(function() {
|
|
18805
|
+
BaseMaterial._tilingOffsetProp = Shader.getPropertyByName("u_tilingOffset");
|
|
18806
|
+
})();
|
|
18807
|
+
(function() {
|
|
18808
|
+
BaseMaterial._normalTextureProp = Shader.getPropertyByName("u_normalTexture");
|
|
18809
|
+
})();
|
|
18810
|
+
(function() {
|
|
18811
|
+
BaseMaterial._normalIntensityProp = Shader.getPropertyByName("u_normalIntensity");
|
|
18812
|
+
})();
|
|
18813
|
+
(function() {
|
|
18814
|
+
BaseMaterial._normalTextureMacro = Shader.getMacroByName("NORMALTEXTURE");
|
|
18815
|
+
})();
|
|
18816
|
+
(function() {
|
|
18817
|
+
BaseMaterial._emissiveColorProp = Shader.getPropertyByName("u_emissiveColor");
|
|
18818
|
+
})();
|
|
18819
|
+
(function() {
|
|
18820
|
+
BaseMaterial._emissiveTextureProp = Shader.getPropertyByName("u_emissiveTexture");
|
|
18821
|
+
})();
|
|
18822
|
+
(function() {
|
|
18823
|
+
BaseMaterial._emissiveTextureMacro = Shader.getMacroByName("EMISSIVETEXTURE");
|
|
18824
|
+
})();
|
|
18825
|
+
(function() {
|
|
18826
|
+
BaseMaterial._transparentMacro = Shader.getMacroByName("OASIS_TRANSPARENT");
|
|
18827
|
+
})();
|
|
18828
|
+
(function() {
|
|
18829
|
+
BaseMaterial._alphaCutoffProp = Shader.getPropertyByName("u_alphaCutoff");
|
|
18830
|
+
})();
|
|
18831
|
+
(function() {
|
|
18832
|
+
BaseMaterial._alphaCutoffMacro = Shader.getMacroByName("ALPHA_CUTOFF");
|
|
18833
|
+
})();
|
|
18438
18834
|
|
|
18439
18835
|
/**
|
|
18440
18836
|
* Blinn-phong Material.
|
|
@@ -18608,9 +19004,15 @@ BaseMaterial._alphaCutoffMacro = Shader.getMacroByName("ALPHA_CUTOFF");
|
|
|
18608
19004
|
]);
|
|
18609
19005
|
return BlinnPhongMaterial;
|
|
18610
19006
|
}(BaseMaterial);
|
|
18611
|
-
|
|
18612
|
-
BlinnPhongMaterial.
|
|
18613
|
-
|
|
19007
|
+
(function() {
|
|
19008
|
+
BlinnPhongMaterial._specularColorProp = Shader.getPropertyByName("u_specularColor");
|
|
19009
|
+
})();
|
|
19010
|
+
(function() {
|
|
19011
|
+
BlinnPhongMaterial._shininessProp = Shader.getPropertyByName("u_shininess");
|
|
19012
|
+
})();
|
|
19013
|
+
(function() {
|
|
19014
|
+
BlinnPhongMaterial._specularTextureProp = Shader.getPropertyByName("u_specularTexture");
|
|
19015
|
+
})();
|
|
18614
19016
|
|
|
18615
19017
|
/**
|
|
18616
19018
|
* Texture UV coordinate.
|
|
@@ -18870,14 +19272,30 @@ BlinnPhongMaterial._specularTextureProp = Shader.getPropertyByName("u_specularTe
|
|
|
18870
19272
|
]);
|
|
18871
19273
|
return PBRBaseMaterial;
|
|
18872
19274
|
}(BaseMaterial);
|
|
18873
|
-
|
|
18874
|
-
PBRBaseMaterial.
|
|
18875
|
-
|
|
18876
|
-
|
|
18877
|
-
PBRBaseMaterial.
|
|
18878
|
-
|
|
18879
|
-
|
|
18880
|
-
PBRBaseMaterial.
|
|
19275
|
+
(function() {
|
|
19276
|
+
PBRBaseMaterial._occlusionTextureIntensityProp = Shader.getPropertyByName("u_occlusionIntensity");
|
|
19277
|
+
})();
|
|
19278
|
+
(function() {
|
|
19279
|
+
PBRBaseMaterial._occlusionTextureCoordProp = Shader.getPropertyByName("u_occlusionTextureCoord");
|
|
19280
|
+
})();
|
|
19281
|
+
(function() {
|
|
19282
|
+
PBRBaseMaterial._occlusionTextureProp = Shader.getPropertyByName("u_occlusionTexture");
|
|
19283
|
+
})();
|
|
19284
|
+
(function() {
|
|
19285
|
+
PBRBaseMaterial._clearCoatProp = Shader.getPropertyByName("u_clearCoat");
|
|
19286
|
+
})();
|
|
19287
|
+
(function() {
|
|
19288
|
+
PBRBaseMaterial._clearCoatTextureProp = Shader.getPropertyByName("u_clearCoatTexture");
|
|
19289
|
+
})();
|
|
19290
|
+
(function() {
|
|
19291
|
+
PBRBaseMaterial._clearCoatRoughnessProp = Shader.getPropertyByName("u_clearCoatRoughness");
|
|
19292
|
+
})();
|
|
19293
|
+
(function() {
|
|
19294
|
+
PBRBaseMaterial._clearCoatRoughnessTextureProp = Shader.getPropertyByName("u_clearCoatRoughnessTexture");
|
|
19295
|
+
})();
|
|
19296
|
+
(function() {
|
|
19297
|
+
PBRBaseMaterial._clearCoatNormalTextureProp = Shader.getPropertyByName("u_clearCoatNormalTexture");
|
|
19298
|
+
})();
|
|
18881
19299
|
|
|
18882
19300
|
/**
|
|
18883
19301
|
* PBR (Metallic-Roughness Workflow) Material.
|
|
@@ -18956,10 +19374,18 @@ PBRBaseMaterial._clearCoatNormalTextureProp = Shader.getPropertyByName("u_clearC
|
|
|
18956
19374
|
]);
|
|
18957
19375
|
return PBRMaterial;
|
|
18958
19376
|
}(PBRBaseMaterial);
|
|
18959
|
-
|
|
18960
|
-
PBRMaterial.
|
|
18961
|
-
|
|
18962
|
-
|
|
19377
|
+
(function() {
|
|
19378
|
+
PBRMaterial._metallicProp = Shader.getPropertyByName("u_metal");
|
|
19379
|
+
})();
|
|
19380
|
+
(function() {
|
|
19381
|
+
PBRMaterial._roughnessProp = Shader.getPropertyByName("u_roughness");
|
|
19382
|
+
})();
|
|
19383
|
+
(function() {
|
|
19384
|
+
PBRMaterial._roughnessMetallicTextureProp = Shader.getPropertyByName("u_roughnessMetallicTexture");
|
|
19385
|
+
})();
|
|
19386
|
+
(function() {
|
|
19387
|
+
PBRMaterial._iorProp = Shader.getPropertyByName("material_IOR");
|
|
19388
|
+
})();
|
|
18963
19389
|
|
|
18964
19390
|
/**
|
|
18965
19391
|
* PBR (Specular-Glossiness Workflow) Material.
|
|
@@ -19026,10 +19452,18 @@ PBRMaterial._iorProp = Shader.getPropertyByName("material_IOR");
|
|
|
19026
19452
|
]);
|
|
19027
19453
|
return PBRSpecularMaterial;
|
|
19028
19454
|
}(PBRBaseMaterial);
|
|
19029
|
-
|
|
19030
|
-
PBRSpecularMaterial.
|
|
19031
|
-
|
|
19032
|
-
|
|
19455
|
+
(function() {
|
|
19456
|
+
PBRSpecularMaterial._specularColorProp = Shader.getPropertyByName("u_PBRSpecularColor");
|
|
19457
|
+
})();
|
|
19458
|
+
(function() {
|
|
19459
|
+
PBRSpecularMaterial._glossinessProp = Shader.getPropertyByName("u_glossiness");
|
|
19460
|
+
})();
|
|
19461
|
+
(function() {
|
|
19462
|
+
PBRSpecularMaterial._specularGlossinessTextureProp = Shader.getPropertyByName("u_specularGlossinessTexture");
|
|
19463
|
+
})();
|
|
19464
|
+
(function() {
|
|
19465
|
+
PBRSpecularMaterial._specularGlossinessTextureMacro = Shader.getMacroByName("SPECULARGLOSSINESSTEXTURE");
|
|
19466
|
+
})();
|
|
19033
19467
|
|
|
19034
19468
|
/**
|
|
19035
19469
|
* Unlit Material.
|
|
@@ -19708,8 +20142,10 @@ var SlicedSpriteAssembler = (_SlicedSpriteAssembler = /*#__PURE__*/ function() {
|
|
|
19708
20142
|
};
|
|
19709
20143
|
SlicedSpriteAssembler1.updateUVs = function updateUVs(renderer) {};
|
|
19710
20144
|
return SlicedSpriteAssembler1;
|
|
19711
|
-
}(),
|
|
19712
|
-
|
|
20145
|
+
}(), function() {
|
|
20146
|
+
_SlicedSpriteAssembler._worldMatrix = new Matrix();
|
|
20147
|
+
}(), _SlicedSpriteAssembler);
|
|
20148
|
+
SlicedSpriteAssembler = __decorate([
|
|
19713
20149
|
StaticInterfaceImplement()
|
|
19714
20150
|
], SlicedSpriteAssembler);
|
|
19715
20151
|
|
|
@@ -20019,47 +20455,49 @@ SlicedSpriteAssembler = _ts_decorate([
|
|
|
20019
20455
|
]);
|
|
20020
20456
|
return SpriteRenderer;
|
|
20021
20457
|
}(Renderer);
|
|
20022
|
-
|
|
20023
|
-
|
|
20458
|
+
(function() {
|
|
20459
|
+
/** @internal */ SpriteRenderer._textureProperty = Shader.getPropertyByName("u_spriteTexture");
|
|
20460
|
+
})();
|
|
20461
|
+
__decorate([
|
|
20024
20462
|
ignoreClone
|
|
20025
20463
|
], SpriteRenderer.prototype, "_renderData", void 0);
|
|
20026
|
-
|
|
20464
|
+
__decorate([
|
|
20027
20465
|
ignoreClone
|
|
20028
20466
|
], SpriteRenderer.prototype, "_drawMode", void 0);
|
|
20029
|
-
|
|
20467
|
+
__decorate([
|
|
20030
20468
|
ignoreClone
|
|
20031
20469
|
], SpriteRenderer.prototype, "_assembler", void 0);
|
|
20032
|
-
|
|
20470
|
+
__decorate([
|
|
20033
20471
|
deepClone
|
|
20034
20472
|
], SpriteRenderer.prototype, "_color", void 0);
|
|
20035
|
-
|
|
20473
|
+
__decorate([
|
|
20036
20474
|
ignoreClone
|
|
20037
20475
|
], SpriteRenderer.prototype, "_sprite", void 0);
|
|
20038
|
-
|
|
20476
|
+
__decorate([
|
|
20039
20477
|
ignoreClone
|
|
20040
20478
|
], SpriteRenderer.prototype, "_automaticWidth", void 0);
|
|
20041
|
-
|
|
20479
|
+
__decorate([
|
|
20042
20480
|
ignoreClone
|
|
20043
20481
|
], SpriteRenderer.prototype, "_automaticHeight", void 0);
|
|
20044
|
-
|
|
20482
|
+
__decorate([
|
|
20045
20483
|
assignmentClone
|
|
20046
20484
|
], SpriteRenderer.prototype, "_customWidth", void 0);
|
|
20047
|
-
|
|
20485
|
+
__decorate([
|
|
20048
20486
|
assignmentClone
|
|
20049
20487
|
], SpriteRenderer.prototype, "_customHeight", void 0);
|
|
20050
|
-
|
|
20488
|
+
__decorate([
|
|
20051
20489
|
assignmentClone
|
|
20052
20490
|
], SpriteRenderer.prototype, "_flipX", void 0);
|
|
20053
|
-
|
|
20491
|
+
__decorate([
|
|
20054
20492
|
assignmentClone
|
|
20055
20493
|
], SpriteRenderer.prototype, "_flipY", void 0);
|
|
20056
|
-
|
|
20494
|
+
__decorate([
|
|
20057
20495
|
assignmentClone
|
|
20058
20496
|
], SpriteRenderer.prototype, "_maskLayer", void 0);
|
|
20059
|
-
|
|
20497
|
+
__decorate([
|
|
20060
20498
|
assignmentClone
|
|
20061
20499
|
], SpriteRenderer.prototype, "_maskInteraction", void 0);
|
|
20062
|
-
|
|
20500
|
+
__decorate([
|
|
20063
20501
|
ignoreClone
|
|
20064
20502
|
], SpriteRenderer.prototype, "_onSpriteChange", null);
|
|
20065
20503
|
var /**
|
|
@@ -20084,14 +20522,16 @@ var /**
|
|
|
20084
20522
|
];
|
|
20085
20523
|
this.renderData = new RenderData2D(4, positions, null, CharRenderData.triangles, null);
|
|
20086
20524
|
};
|
|
20087
|
-
|
|
20088
|
-
|
|
20089
|
-
|
|
20090
|
-
|
|
20091
|
-
|
|
20092
|
-
|
|
20093
|
-
|
|
20094
|
-
|
|
20525
|
+
(function() {
|
|
20526
|
+
CharRenderData.triangles = [
|
|
20527
|
+
0,
|
|
20528
|
+
2,
|
|
20529
|
+
1,
|
|
20530
|
+
2,
|
|
20531
|
+
0,
|
|
20532
|
+
3
|
|
20533
|
+
];
|
|
20534
|
+
})();
|
|
20095
20535
|
|
|
20096
20536
|
/**
|
|
20097
20537
|
* @internal
|
|
@@ -20415,23 +20855,37 @@ CharRenderData.triangles = [
|
|
|
20415
20855
|
};
|
|
20416
20856
|
return TextUtils;
|
|
20417
20857
|
}();
|
|
20418
|
-
|
|
20419
|
-
|
|
20420
|
-
|
|
20421
|
-
|
|
20422
|
-
|
|
20423
|
-
|
|
20424
|
-
|
|
20425
|
-
|
|
20426
|
-
|
|
20427
|
-
|
|
20428
|
-
|
|
20429
|
-
|
|
20430
|
-
|
|
20431
|
-
|
|
20432
|
-
TextUtils.
|
|
20433
|
-
|
|
20434
|
-
|
|
20858
|
+
(function() {
|
|
20859
|
+
/** @internal */ TextUtils._genericFontFamilies = [
|
|
20860
|
+
"serif",
|
|
20861
|
+
"sans-serif",
|
|
20862
|
+
"monospace",
|
|
20863
|
+
"cursive",
|
|
20864
|
+
"fantasy",
|
|
20865
|
+
"system-ui",
|
|
20866
|
+
"math",
|
|
20867
|
+
"emoji",
|
|
20868
|
+
"fangsong"
|
|
20869
|
+
];
|
|
20870
|
+
})();
|
|
20871
|
+
(function() {
|
|
20872
|
+
/** These characters are all tall to help calculate the height required for text. */ TextUtils._measureString = "|\xc9q\xc5";
|
|
20873
|
+
})();
|
|
20874
|
+
(function() {
|
|
20875
|
+
TextUtils._measureBaseline = "M";
|
|
20876
|
+
})();
|
|
20877
|
+
(function() {
|
|
20878
|
+
TextUtils._heightMultiplier = 2;
|
|
20879
|
+
})();
|
|
20880
|
+
(function() {
|
|
20881
|
+
TextUtils._baselineMultiplier = 1.4;
|
|
20882
|
+
})();
|
|
20883
|
+
(function() {
|
|
20884
|
+
TextUtils._fontSizeInfoCache = {};
|
|
20885
|
+
})();
|
|
20886
|
+
(function() {
|
|
20887
|
+
TextUtils._textContext = null;
|
|
20888
|
+
})();
|
|
20435
20889
|
|
|
20436
20890
|
/**
|
|
20437
20891
|
* Renders a text for 2D graphics.
|
|
@@ -20911,61 +21365,67 @@ TextUtils._textContext = null;
|
|
|
20911
21365
|
]);
|
|
20912
21366
|
return TextRenderer;
|
|
20913
21367
|
}(Renderer);
|
|
20914
|
-
|
|
20915
|
-
TextRenderer.
|
|
20916
|
-
|
|
20917
|
-
|
|
21368
|
+
(function() {
|
|
21369
|
+
TextRenderer._charRenderDataPool = new CharRenderDataPool(CharRenderData, 50);
|
|
21370
|
+
})();
|
|
21371
|
+
(function() {
|
|
21372
|
+
TextRenderer._tempVec30 = new Vector3();
|
|
21373
|
+
})();
|
|
21374
|
+
(function() {
|
|
21375
|
+
TextRenderer._tempVec31 = new Vector3();
|
|
21376
|
+
})();
|
|
21377
|
+
__decorate([
|
|
20918
21378
|
assignmentClone
|
|
20919
21379
|
], TextRenderer.prototype, "_subFont", void 0);
|
|
20920
|
-
|
|
21380
|
+
__decorate([
|
|
20921
21381
|
ignoreClone
|
|
20922
21382
|
], TextRenderer.prototype, "_charRenderDatas", void 0);
|
|
20923
|
-
|
|
21383
|
+
__decorate([
|
|
20924
21384
|
ignoreClone
|
|
20925
21385
|
], TextRenderer.prototype, "_dirtyFlag", void 0);
|
|
20926
|
-
|
|
21386
|
+
__decorate([
|
|
20927
21387
|
deepClone
|
|
20928
21388
|
], TextRenderer.prototype, "_color", void 0);
|
|
20929
|
-
|
|
21389
|
+
__decorate([
|
|
20930
21390
|
assignmentClone
|
|
20931
21391
|
], TextRenderer.prototype, "_text", void 0);
|
|
20932
|
-
|
|
21392
|
+
__decorate([
|
|
20933
21393
|
assignmentClone
|
|
20934
21394
|
], TextRenderer.prototype, "_width", void 0);
|
|
20935
|
-
|
|
21395
|
+
__decorate([
|
|
20936
21396
|
assignmentClone
|
|
20937
21397
|
], TextRenderer.prototype, "_height", void 0);
|
|
20938
|
-
|
|
21398
|
+
__decorate([
|
|
20939
21399
|
ignoreClone
|
|
20940
21400
|
], TextRenderer.prototype, "_localBounds", void 0);
|
|
20941
|
-
|
|
21401
|
+
__decorate([
|
|
20942
21402
|
assignmentClone
|
|
20943
21403
|
], TextRenderer.prototype, "_font", void 0);
|
|
20944
|
-
|
|
21404
|
+
__decorate([
|
|
20945
21405
|
assignmentClone
|
|
20946
21406
|
], TextRenderer.prototype, "_fontSize", void 0);
|
|
20947
|
-
|
|
21407
|
+
__decorate([
|
|
20948
21408
|
assignmentClone
|
|
20949
21409
|
], TextRenderer.prototype, "_fontStyle", void 0);
|
|
20950
|
-
|
|
21410
|
+
__decorate([
|
|
20951
21411
|
assignmentClone
|
|
20952
21412
|
], TextRenderer.prototype, "_lineSpacing", void 0);
|
|
20953
|
-
|
|
21413
|
+
__decorate([
|
|
20954
21414
|
assignmentClone
|
|
20955
21415
|
], TextRenderer.prototype, "_horizontalAlignment", void 0);
|
|
20956
|
-
|
|
21416
|
+
__decorate([
|
|
20957
21417
|
assignmentClone
|
|
20958
21418
|
], TextRenderer.prototype, "_verticalAlignment", void 0);
|
|
20959
|
-
|
|
21419
|
+
__decorate([
|
|
20960
21420
|
assignmentClone
|
|
20961
21421
|
], TextRenderer.prototype, "_enableWrapping", void 0);
|
|
20962
|
-
|
|
21422
|
+
__decorate([
|
|
20963
21423
|
assignmentClone
|
|
20964
21424
|
], TextRenderer.prototype, "_overflowMode", void 0);
|
|
20965
|
-
|
|
21425
|
+
__decorate([
|
|
20966
21426
|
assignmentClone
|
|
20967
21427
|
], TextRenderer.prototype, "_maskInteraction", void 0);
|
|
20968
|
-
|
|
21428
|
+
__decorate([
|
|
20969
21429
|
assignmentClone
|
|
20970
21430
|
], TextRenderer.prototype, "_maskLayer", void 0);
|
|
20971
21431
|
var DirtyFlag;
|
|
@@ -21120,7 +21580,9 @@ var DirtyFlag;
|
|
|
21120
21580
|
};
|
|
21121
21581
|
return AnimationCurveOwner;
|
|
21122
21582
|
}();
|
|
21123
|
-
|
|
21583
|
+
(function() {
|
|
21584
|
+
AnimationCurveOwner._assemblerMap = new Map();
|
|
21585
|
+
})();
|
|
21124
21586
|
|
|
21125
21587
|
/**
|
|
21126
21588
|
* @internal
|
|
@@ -21598,8 +22060,12 @@ var AnimationArrayCurve = (_AnimationArrayCurve = /*#__PURE__*/ function(Animati
|
|
|
21598
22060
|
return out;
|
|
21599
22061
|
};
|
|
21600
22062
|
return AnimationArrayCurve;
|
|
21601
|
-
}(AnimationCurve),
|
|
21602
|
-
|
|
22063
|
+
}(AnimationCurve), function() {
|
|
22064
|
+
/** @internal */ _AnimationArrayCurve._isReferenceType = true;
|
|
22065
|
+
}(), function() {
|
|
22066
|
+
/** @internal */ _AnimationArrayCurve._isInterpolationType = true;
|
|
22067
|
+
}(), _AnimationArrayCurve);
|
|
22068
|
+
AnimationArrayCurve = __decorate([
|
|
21603
22069
|
StaticInterfaceImplement()
|
|
21604
22070
|
], AnimationArrayCurve);
|
|
21605
22071
|
|
|
@@ -21656,8 +22122,12 @@ var AnimationBoolCurve = (_AnimationBoolCurve = /*#__PURE__*/ function(Animation
|
|
|
21656
22122
|
return frame.value;
|
|
21657
22123
|
};
|
|
21658
22124
|
return AnimationBoolCurve;
|
|
21659
|
-
}(AnimationCurve),
|
|
21660
|
-
|
|
22125
|
+
}(AnimationCurve), function() {
|
|
22126
|
+
/** @internal */ _AnimationBoolCurve._isReferenceType = false;
|
|
22127
|
+
}(), function() {
|
|
22128
|
+
/** @internal */ _AnimationBoolCurve._isInterpolationType = false;
|
|
22129
|
+
}(), _AnimationBoolCurve);
|
|
22130
|
+
AnimationBoolCurve = __decorate([
|
|
21661
22131
|
StaticInterfaceImplement()
|
|
21662
22132
|
], AnimationBoolCurve);
|
|
21663
22133
|
|
|
@@ -21754,8 +22224,12 @@ var AnimationColorCurve = (_AnimationColorCurve = /*#__PURE__*/ function(Animati
|
|
|
21754
22224
|
return out;
|
|
21755
22225
|
};
|
|
21756
22226
|
return AnimationColorCurve;
|
|
21757
|
-
}(AnimationCurve),
|
|
21758
|
-
|
|
22227
|
+
}(AnimationCurve), function() {
|
|
22228
|
+
/** @internal */ _AnimationColorCurve._isReferenceType = true;
|
|
22229
|
+
}(), function() {
|
|
22230
|
+
/** @internal */ _AnimationColorCurve._isInterpolationType = true;
|
|
22231
|
+
}(), _AnimationColorCurve);
|
|
22232
|
+
AnimationColorCurve = __decorate([
|
|
21759
22233
|
StaticInterfaceImplement()
|
|
21760
22234
|
], AnimationColorCurve);
|
|
21761
22235
|
|
|
@@ -21856,8 +22330,12 @@ var AnimationFloatArrayCurve = (_AnimationFloatArrayCurve = /*#__PURE__*/ functi
|
|
|
21856
22330
|
return out;
|
|
21857
22331
|
};
|
|
21858
22332
|
return AnimationFloatArrayCurve;
|
|
21859
|
-
}(AnimationCurve),
|
|
21860
|
-
|
|
22333
|
+
}(AnimationCurve), function() {
|
|
22334
|
+
/** @internal */ _AnimationFloatArrayCurve._isReferenceType = true;
|
|
22335
|
+
}(), function() {
|
|
22336
|
+
/** @internal */ _AnimationFloatArrayCurve._isInterpolationType = true;
|
|
22337
|
+
}(), _AnimationFloatArrayCurve);
|
|
22338
|
+
AnimationFloatArrayCurve = __decorate([
|
|
21861
22339
|
StaticInterfaceImplement()
|
|
21862
22340
|
], AnimationFloatArrayCurve);
|
|
21863
22341
|
|
|
@@ -21926,8 +22404,12 @@ var AnimationFloatCurve = (_AnimationFloatCurve = /*#__PURE__*/ function(Animati
|
|
|
21926
22404
|
}
|
|
21927
22405
|
};
|
|
21928
22406
|
return AnimationFloatCurve;
|
|
21929
|
-
}(AnimationCurve),
|
|
21930
|
-
|
|
22407
|
+
}(AnimationCurve), function() {
|
|
22408
|
+
/** @internal */ _AnimationFloatCurve._isReferenceType = false;
|
|
22409
|
+
}(), function() {
|
|
22410
|
+
/** @internal */ _AnimationFloatCurve._isInterpolationType = true;
|
|
22411
|
+
}(), _AnimationFloatCurve);
|
|
22412
|
+
AnimationFloatCurve = __decorate([
|
|
21931
22413
|
StaticInterfaceImplement()
|
|
21932
22414
|
], AnimationFloatCurve);
|
|
21933
22415
|
|
|
@@ -22029,8 +22511,14 @@ var AnimationQuaternionCurve = (_AnimationQuaternionCurve = /*#__PURE__*/ functi
|
|
|
22029
22511
|
return out;
|
|
22030
22512
|
};
|
|
22031
22513
|
return AnimationQuaternionCurve1;
|
|
22032
|
-
}(AnimationCurve),
|
|
22033
|
-
|
|
22514
|
+
}(AnimationCurve), function() {
|
|
22515
|
+
/** @internal */ _AnimationQuaternionCurve._isInterpolationType = true;
|
|
22516
|
+
}(), function() {
|
|
22517
|
+
/** @internal */ _AnimationQuaternionCurve._isReferenceType = true;
|
|
22518
|
+
}(), function() {
|
|
22519
|
+
/** @internal */ _AnimationQuaternionCurve._tempConjugateQuat = new Quaternion();
|
|
22520
|
+
}(), _AnimationQuaternionCurve);
|
|
22521
|
+
AnimationQuaternionCurve = __decorate([
|
|
22034
22522
|
StaticInterfaceImplement()
|
|
22035
22523
|
], AnimationQuaternionCurve);
|
|
22036
22524
|
|
|
@@ -22115,8 +22603,12 @@ var AnimationVector2Curve = (_AnimationVector2Curve = /*#__PURE__*/ function(Ani
|
|
|
22115
22603
|
return out;
|
|
22116
22604
|
};
|
|
22117
22605
|
return AnimationVector2Curve;
|
|
22118
|
-
}(AnimationCurve),
|
|
22119
|
-
|
|
22606
|
+
}(AnimationCurve), function() {
|
|
22607
|
+
/** @internal */ _AnimationVector2Curve._isReferenceType = true;
|
|
22608
|
+
}(), function() {
|
|
22609
|
+
/** @internal */ _AnimationVector2Curve._isInterpolationType = true;
|
|
22610
|
+
}(), _AnimationVector2Curve);
|
|
22611
|
+
AnimationVector2Curve = __decorate([
|
|
22120
22612
|
StaticInterfaceImplement()
|
|
22121
22613
|
], AnimationVector2Curve);
|
|
22122
22614
|
|
|
@@ -22213,8 +22705,12 @@ var AnimationVector3Curve = (_AnimationVector3Curve = /*#__PURE__*/ function(Ani
|
|
|
22213
22705
|
return out;
|
|
22214
22706
|
};
|
|
22215
22707
|
return AnimationVector3Curve;
|
|
22216
|
-
}(AnimationCurve),
|
|
22217
|
-
|
|
22708
|
+
}(AnimationCurve), function() {
|
|
22709
|
+
/** @internal */ _AnimationVector3Curve._isReferenceType = true;
|
|
22710
|
+
}(), function() {
|
|
22711
|
+
/** @internal */ _AnimationVector3Curve._isInterpolationType = true;
|
|
22712
|
+
}(), _AnimationVector3Curve);
|
|
22713
|
+
AnimationVector3Curve = __decorate([
|
|
22218
22714
|
StaticInterfaceImplement()
|
|
22219
22715
|
], AnimationVector3Curve);
|
|
22220
22716
|
|
|
@@ -22311,8 +22807,12 @@ var AnimationVector4Curve = (_AnimationVector4Curve = /*#__PURE__*/ function(Ani
|
|
|
22311
22807
|
return out;
|
|
22312
22808
|
};
|
|
22313
22809
|
return AnimationVector4Curve;
|
|
22314
|
-
}(AnimationCurve),
|
|
22315
|
-
|
|
22810
|
+
}(AnimationCurve), function() {
|
|
22811
|
+
/** @internal */ _AnimationVector4Curve._isReferenceType = true;
|
|
22812
|
+
}(), function() {
|
|
22813
|
+
/** @internal */ _AnimationVector4Curve._isInterpolationType = true;
|
|
22814
|
+
}(), _AnimationVector4Curve);
|
|
22815
|
+
AnimationVector4Curve = __decorate([
|
|
22316
22816
|
StaticInterfaceImplement()
|
|
22317
22817
|
], AnimationVector4Curve);
|
|
22318
22818
|
|
|
@@ -22445,7 +22945,6 @@ var AnimatorLayerBlendingMode;
|
|
|
22445
22945
|
this.eventHandlers = [];
|
|
22446
22946
|
};
|
|
22447
22947
|
|
|
22448
|
-
var _curveOwnerPool, _instanceId, _propertyOwners, _property, _layerCurveOwnerPool, _instanceId1, _layerPropertyOwners, _property1;
|
|
22449
22948
|
/**
|
|
22450
22949
|
* The controller of the animation system.
|
|
22451
22950
|
*/ var Animator = /*#__PURE__*/ function(Component) {
|
|
@@ -22638,6 +23137,7 @@ var _curveOwnerPool, _instanceId, _propertyOwners, _property, _layerCurveOwnerPo
|
|
|
22638
23137
|
var curve = curves[i];
|
|
22639
23138
|
var targetEntity = curve.relativePath === "" ? entity : entity.findByPath(curve.relativePath);
|
|
22640
23139
|
if (targetEntity) {
|
|
23140
|
+
var _curveOwnerPool, _instanceId, _propertyOwners, _property, _layerCurveOwnerPool, _instanceId1, _layerPropertyOwners, _property1;
|
|
22641
23141
|
var property = curve.property;
|
|
22642
23142
|
var instanceId = targetEntity.instanceId;
|
|
22643
23143
|
// Get owner
|
|
@@ -23091,28 +23591,28 @@ var _curveOwnerPool, _instanceId, _propertyOwners, _property, _layerCurveOwnerPo
|
|
|
23091
23591
|
]);
|
|
23092
23592
|
return Animator;
|
|
23093
23593
|
}(Component);
|
|
23094
|
-
|
|
23594
|
+
__decorate([
|
|
23095
23595
|
assignmentClone
|
|
23096
23596
|
], Animator.prototype, "speed", void 0);
|
|
23097
|
-
|
|
23597
|
+
__decorate([
|
|
23098
23598
|
ignoreClone
|
|
23099
23599
|
], Animator.prototype, "_controllerUpdateFlag", void 0);
|
|
23100
|
-
|
|
23600
|
+
__decorate([
|
|
23101
23601
|
ignoreClone
|
|
23102
23602
|
], Animator.prototype, "_updateMark", void 0);
|
|
23103
|
-
|
|
23603
|
+
__decorate([
|
|
23104
23604
|
ignoreClone
|
|
23105
23605
|
], Animator.prototype, "_animatorLayersData", void 0);
|
|
23106
|
-
|
|
23606
|
+
__decorate([
|
|
23107
23607
|
ignoreClone
|
|
23108
23608
|
], Animator.prototype, "_curveOwnerPool", void 0);
|
|
23109
|
-
|
|
23609
|
+
__decorate([
|
|
23110
23610
|
ignoreClone
|
|
23111
23611
|
], Animator.prototype, "_animationEventHandlerPool", void 0);
|
|
23112
|
-
|
|
23612
|
+
__decorate([
|
|
23113
23613
|
ignoreClone
|
|
23114
23614
|
], Animator.prototype, "_tempAnimatorStateInfo", void 0);
|
|
23115
|
-
|
|
23615
|
+
__decorate([
|
|
23116
23616
|
ignoreClone
|
|
23117
23617
|
], Animator.prototype, "_controlledRenderers", void 0);
|
|
23118
23618
|
|
|
@@ -24235,8 +24735,10 @@ var ParticleRendererBlendMode;
|
|
|
24235
24735
|
]);
|
|
24236
24736
|
return ParticleRenderer;
|
|
24237
24737
|
}(MeshRenderer);
|
|
24238
|
-
|
|
24239
|
-
|
|
24738
|
+
(function() {
|
|
24739
|
+
/** The max number of indices that Uint16Array can support. */ ParticleRenderer._uint16VertexLimit = 65535;
|
|
24740
|
+
})();
|
|
24741
|
+
__decorate([
|
|
24240
24742
|
ignoreClone
|
|
24241
24743
|
], ParticleRenderer.prototype, "_onColorChanged", null);
|
|
24242
24744
|
|