@galacean/engine-core 0.9.0-beta.82 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +1006 -606
- package/dist/main.js.map +1 -1
- package/dist/miniprogram.js +1006 -606
- package/dist/module.js +1006 -606
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
- package/types/graphic/BufferUtil.d.ts +1 -1
- package/types/2d/assembler/TiledSpriteAssembler.d.ts +0 -1
- package/types/2d/data/VertexData2D.d.ts +0 -1
- package/types/2d/enums/SpriteTileMode.d.ts +0 -11
- package/types/RenderPipeline/MeshRenderData.d.ts +0 -15
- package/types/RenderPipeline/RenderData.d.ts +0 -7
- package/types/RenderPipeline/SpriteMaskRenderData.d.ts +0 -10
- package/types/RenderPipeline/SpriteRenderData.d.ts +0 -12
- package/types/RenderPipeline/TextRenderData.d.ts +0 -6
- package/types/RenderPipeline/enums/PipelineStage.d.ts +0 -9
- package/types/RenderPipeline/index.d.ts +0 -4
- package/types/asset/ContentRestorer.d.ts +0 -17
- package/types/asset/GraphicsResource.d.ts +0 -9
- package/types/asset/IReferable.d.ts +0 -2
- package/types/asset/ReferResource.d.ts +0 -27
- package/types/mesh/PrimitiveMeshRestorer.d.ts +0 -1
- package/types/physics/Collision.d.ts +0 -4
- package/types/renderingHardwareInterface/IPlatformBuffer.d.ts +0 -8
- package/types/shader/ShaderPart.d.ts +0 -41
- package/types/shader/ShaderTagKey.d.ts +0 -16
- package/types/shader/SubShader.d.ts +0 -19
- package/types/sky/SkyProceduralMaterial.d.ts +0 -72
package/dist/miniprogram.js
CHANGED
|
@@ -16,56 +16,48 @@ var miniprogram = require('@galacean/engine-math/dist/miniprogram');
|
|
|
16
16
|
Platform[Platform[/** Unknown platform. */ "Unknown"] = 4] = "Unknown";
|
|
17
17
|
})(exports.Platform || (exports.Platform = {}));
|
|
18
18
|
|
|
19
|
-
function
|
|
20
|
-
|
|
21
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
22
|
-
}
|
|
19
|
+
function _assert_this_initialized(self) {
|
|
20
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
23
21
|
|
|
24
|
-
|
|
22
|
+
return self;
|
|
25
23
|
}
|
|
26
24
|
|
|
27
25
|
function _defineProperties(target, props) {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
26
|
+
for (var i = 0; i < props.length; i++) {
|
|
27
|
+
var descriptor = props[i];
|
|
28
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
29
|
+
descriptor.configurable = true;
|
|
30
|
+
|
|
31
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
32
|
+
|
|
33
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
34
|
+
}
|
|
35
35
|
}
|
|
36
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
37
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
38
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
36
39
|
|
|
37
|
-
|
|
38
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
39
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
40
|
-
return Constructor;
|
|
40
|
+
return Constructor;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
function
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
return o;
|
|
47
|
-
};
|
|
43
|
+
function _set_prototype_of(o, p) {
|
|
44
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
45
|
+
o.__proto__ = p;
|
|
48
46
|
|
|
49
|
-
|
|
50
|
-
}
|
|
47
|
+
return o;
|
|
48
|
+
};
|
|
51
49
|
|
|
52
|
-
|
|
53
|
-
return setPrototypeOf(o, p);
|
|
50
|
+
return _set_prototype_of(o, p);
|
|
54
51
|
}
|
|
55
52
|
|
|
56
53
|
function _inherits(subClass, superClass) {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
62
|
-
constructor: {
|
|
63
|
-
value: subClass,
|
|
64
|
-
writable: true,
|
|
65
|
-
configurable: true
|
|
54
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
55
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
66
56
|
}
|
|
67
|
-
|
|
68
|
-
|
|
57
|
+
|
|
58
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } });
|
|
59
|
+
|
|
60
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
69
61
|
}
|
|
70
62
|
|
|
71
63
|
/**
|
|
@@ -113,9 +105,15 @@ function _inherits(subClass, superClass) {
|
|
|
113
105
|
};
|
|
114
106
|
return MathUtil;
|
|
115
107
|
}();
|
|
116
|
-
|
|
117
|
-
/** The
|
|
118
|
-
|
|
108
|
+
(function() {
|
|
109
|
+
/** The value for which all absolute numbers smaller than are considered equal to zero. */ MathUtil.zeroTolerance = 1e-6;
|
|
110
|
+
})();
|
|
111
|
+
(function() {
|
|
112
|
+
/** The conversion factor that radian to degree. */ MathUtil.radToDegreeFactor = 180 / Math.PI;
|
|
113
|
+
})();
|
|
114
|
+
(function() {
|
|
115
|
+
/** The conversion factor that degree to radian. */ MathUtil.degreeToRadFactor = Math.PI / 180;
|
|
116
|
+
})();
|
|
119
117
|
|
|
120
118
|
/**
|
|
121
119
|
* Describes a color in the from of RGBA (in order: R, G, B, A).
|
|
@@ -325,7 +323,7 @@ function _inherits(subClass, superClass) {
|
|
|
325
323
|
out._onValueChanged && out._onValueChanged();
|
|
326
324
|
return out;
|
|
327
325
|
};
|
|
328
|
-
|
|
326
|
+
_create_class(Color, [
|
|
329
327
|
{
|
|
330
328
|
key: "r",
|
|
331
329
|
get: /**
|
|
@@ -401,11 +399,9 @@ function __decorate(decorators, target, key, desc) {
|
|
|
401
399
|
}
|
|
402
400
|
|
|
403
401
|
function _instanceof(left, right) {
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
return left instanceof right;
|
|
408
|
-
}
|
|
402
|
+
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
403
|
+
return !!right[Symbol.hasInstance](left);
|
|
404
|
+
} else return left instanceof right;
|
|
409
405
|
}
|
|
410
406
|
|
|
411
407
|
/**
|
|
@@ -586,16 +582,22 @@ function _instanceof(left, right) {
|
|
|
586
582
|
};
|
|
587
583
|
return CloneManager;
|
|
588
584
|
}();
|
|
589
|
-
|
|
590
|
-
/** @internal */ CloneManager.
|
|
591
|
-
|
|
585
|
+
(function() {
|
|
586
|
+
/** @internal */ CloneManager._subCloneModeMap = new Map();
|
|
587
|
+
})();
|
|
588
|
+
(function() {
|
|
589
|
+
/** @internal */ CloneManager._cloneModeMap = new Map();
|
|
590
|
+
})();
|
|
591
|
+
(function() {
|
|
592
|
+
CloneManager._objectType = Object.getPrototypeOf(Object);
|
|
593
|
+
})();
|
|
592
594
|
|
|
593
595
|
/**
|
|
594
596
|
* EngineObject.
|
|
595
597
|
*/ var EngineObject = /*#__PURE__*/ function() {
|
|
596
598
|
function EngineObject(engine) {
|
|
597
|
-
this._destroyed = false;
|
|
598
599
|
/** Engine unique id. */ this.instanceId = ++EngineObject._instanceIdCounter;
|
|
600
|
+
this._destroyed = false;
|
|
599
601
|
this._engine = engine;
|
|
600
602
|
}
|
|
601
603
|
var _proto = EngineObject.prototype;
|
|
@@ -607,7 +609,7 @@ CloneManager._objectType = Object.getPrototypeOf(Object);
|
|
|
607
609
|
(_this__engine_resourceManager = this._engine.resourceManager) == null ? void 0 : _this__engine_resourceManager._deleteAsset(this);
|
|
608
610
|
this._destroyed = true;
|
|
609
611
|
};
|
|
610
|
-
|
|
612
|
+
_create_class(EngineObject, [
|
|
611
613
|
{
|
|
612
614
|
key: "engine",
|
|
613
615
|
get: /**
|
|
@@ -627,7 +629,9 @@ CloneManager._objectType = Object.getPrototypeOf(Object);
|
|
|
627
629
|
]);
|
|
628
630
|
return EngineObject;
|
|
629
631
|
}();
|
|
630
|
-
|
|
632
|
+
(function() {
|
|
633
|
+
EngineObject._instanceIdCounter = 0;
|
|
634
|
+
})();
|
|
631
635
|
__decorate([
|
|
632
636
|
ignoreClone
|
|
633
637
|
], EngineObject.prototype, "instanceId", void 0);
|
|
@@ -644,7 +648,7 @@ __decorate([
|
|
|
644
648
|
_this = EngineObject.call(this, engine) || this;
|
|
645
649
|
/** Whether to ignore the garbage collection check, if it is true, it will not be affected by ResourceManager.gc(). */ _this.isGCIgnored = false;
|
|
646
650
|
_this._refCount = 0;
|
|
647
|
-
engine.resourceManager._addRefObject(_this.instanceId,
|
|
651
|
+
engine.resourceManager._addRefObject(_this.instanceId, _assert_this_initialized(_this));
|
|
648
652
|
return _this;
|
|
649
653
|
}
|
|
650
654
|
var _proto = RefObject.prototype;
|
|
@@ -686,7 +690,7 @@ __decorate([
|
|
|
686
690
|
*/ _proto._addToResourceManager = function _addToResourceManager(path) {
|
|
687
691
|
this._engine.resourceManager._addAsset(path, this);
|
|
688
692
|
};
|
|
689
|
-
|
|
693
|
+
_create_class(RefObject, [
|
|
690
694
|
{
|
|
691
695
|
key: "refCount",
|
|
692
696
|
get: /**
|
|
@@ -812,7 +816,7 @@ __decorate([
|
|
|
812
816
|
_proto.stopPropagation = function stopPropagation() {
|
|
813
817
|
this._propagationStopped = true;
|
|
814
818
|
};
|
|
815
|
-
|
|
819
|
+
_create_class(Event, [
|
|
816
820
|
{
|
|
817
821
|
key: "propagationStopped",
|
|
818
822
|
get: function get() {
|
|
@@ -1088,7 +1092,7 @@ var Time = /*#__PURE__*/ function() {
|
|
|
1088
1092
|
this._lastTickTime = now;
|
|
1089
1093
|
this._frameCount++;
|
|
1090
1094
|
};
|
|
1091
|
-
|
|
1095
|
+
_create_class(Time, [
|
|
1092
1096
|
{
|
|
1093
1097
|
key: "frameCount",
|
|
1094
1098
|
get: /*
|
|
@@ -1326,7 +1330,7 @@ exports.GLCapabilityType = void 0;
|
|
|
1326
1330
|
_proto._getMipmapCount = function _getMipmapCount() {
|
|
1327
1331
|
return this._mipmap ? Math.floor(Math.log2(Math.max(this._width, this._height))) + 1 : 1;
|
|
1328
1332
|
};
|
|
1329
|
-
|
|
1333
|
+
_create_class(Texture, [
|
|
1330
1334
|
{
|
|
1331
1335
|
key: "format",
|
|
1332
1336
|
get: /**
|
|
@@ -1476,7 +1480,7 @@ exports.GLCapabilityType = void 0;
|
|
|
1476
1480
|
}
|
|
1477
1481
|
_this._depthTexture = depth;
|
|
1478
1482
|
}
|
|
1479
|
-
_this._platformRenderTarget = engine._hardwareRenderer.createPlatformRenderTarget(
|
|
1483
|
+
_this._platformRenderTarget = engine._hardwareRenderer.createPlatformRenderTarget(_assert_this_initialized(_this));
|
|
1480
1484
|
return _this;
|
|
1481
1485
|
}
|
|
1482
1486
|
var _proto = RenderTarget.prototype;
|
|
@@ -1518,7 +1522,7 @@ exports.GLCapabilityType = void 0;
|
|
|
1518
1522
|
*/ _proto._blitRenderTarget = function _blitRenderTarget() {
|
|
1519
1523
|
this._platformRenderTarget.blitRenderTarget();
|
|
1520
1524
|
};
|
|
1521
|
-
|
|
1525
|
+
_create_class(RenderTarget, [
|
|
1522
1526
|
{
|
|
1523
1527
|
key: "autoGenerateMipmaps",
|
|
1524
1528
|
get: /**
|
|
@@ -1590,7 +1594,7 @@ exports.GLCapabilityType = void 0;
|
|
|
1590
1594
|
_this._format = format;
|
|
1591
1595
|
_this._mipmapCount = _this._getMipmapCount();
|
|
1592
1596
|
_this._isDepthTexture = format == exports.TextureFormat.Depth || format == exports.TextureFormat.DepthStencil || format == exports.TextureFormat.Depth16 || format == exports.TextureFormat.Depth24 || format == exports.TextureFormat.Depth32 || format == exports.TextureFormat.Depth24Stencil8 || format == exports.TextureFormat.Depth32Stencil8;
|
|
1593
|
-
_this._platformTexture = engine._hardwareRenderer.createPlatformTexture2D(
|
|
1597
|
+
_this._platformTexture = engine._hardwareRenderer.createPlatformTexture2D(_assert_this_initialized(_this));
|
|
1594
1598
|
_this.filterMode = exports.TextureFilterMode.Bilinear;
|
|
1595
1599
|
_this.wrapModeU = _this.wrapModeV = exports.TextureWrapMode.Repeat;
|
|
1596
1600
|
return _this;
|
|
@@ -1657,7 +1661,7 @@ exports.GLCapabilityType = void 0;
|
|
|
1657
1661
|
_this._length = length;
|
|
1658
1662
|
_this._format = format;
|
|
1659
1663
|
_this._mipmapCount = _this._getMipmapCount();
|
|
1660
|
-
_this._platformTexture = engine._hardwareRenderer.createPlatformTexture2DArray(
|
|
1664
|
+
_this._platformTexture = engine._hardwareRenderer.createPlatformTexture2DArray(_assert_this_initialized(_this));
|
|
1661
1665
|
_this.filterMode = exports.TextureFilterMode.Bilinear;
|
|
1662
1666
|
_this.wrapModeU = _this.wrapModeV = exports.TextureWrapMode.Repeat;
|
|
1663
1667
|
return _this;
|
|
@@ -1709,7 +1713,7 @@ exports.GLCapabilityType = void 0;
|
|
|
1709
1713
|
this._platformTexture.getPixelBuffer(elementIndex, xOrMipLevelOrOut, yOrMipLevel, width, height, mipLevelOrOut, out);
|
|
1710
1714
|
}
|
|
1711
1715
|
};
|
|
1712
|
-
|
|
1716
|
+
_create_class(Texture2DArray, [
|
|
1713
1717
|
{
|
|
1714
1718
|
key: "length",
|
|
1715
1719
|
get: /**
|
|
@@ -1736,7 +1740,7 @@ exports.GLCapabilityType = void 0;
|
|
|
1736
1740
|
_this._height = size;
|
|
1737
1741
|
_this._format = format;
|
|
1738
1742
|
_this._mipmapCount = _this._getMipmapCount();
|
|
1739
|
-
_this._platformTexture = engine._hardwareRenderer.createPlatformTextureCube(
|
|
1743
|
+
_this._platformTexture = engine._hardwareRenderer.createPlatformTextureCube(_assert_this_initialized(_this));
|
|
1740
1744
|
_this.filterMode = exports.TextureFilterMode.Bilinear;
|
|
1741
1745
|
_this.wrapModeU = _this.wrapModeV = exports.TextureWrapMode.Clamp;
|
|
1742
1746
|
return _this;
|
|
@@ -1863,7 +1867,7 @@ exports.GLCapabilityType = void 0;
|
|
|
1863
1867
|
_proto.getCharInfo = function getCharInfo(char) {
|
|
1864
1868
|
return this._charInfoMap[char.charCodeAt(0)];
|
|
1865
1869
|
};
|
|
1866
|
-
|
|
1870
|
+
_create_class(FontAtlas, [
|
|
1867
1871
|
{
|
|
1868
1872
|
key: "texture",
|
|
1869
1873
|
get: function get() {
|
|
@@ -2011,7 +2015,7 @@ exports.GLCapabilityType = void 0;
|
|
|
2011
2015
|
}
|
|
2012
2016
|
return null;
|
|
2013
2017
|
};
|
|
2014
|
-
|
|
2018
|
+
_create_class(Font, [
|
|
2015
2019
|
{
|
|
2016
2020
|
key: "name",
|
|
2017
2021
|
get: /**
|
|
@@ -2023,9 +2027,10 @@ exports.GLCapabilityType = void 0;
|
|
|
2023
2027
|
]);
|
|
2024
2028
|
return Font;
|
|
2025
2029
|
}(RefObject);
|
|
2026
|
-
|
|
2030
|
+
(function() {
|
|
2031
|
+
Font._fontMap = {};
|
|
2032
|
+
})();
|
|
2027
2033
|
|
|
2028
|
-
var _Symbol_toStringTag = Symbol.toStringTag;
|
|
2029
2034
|
var AssetPromise = /*#__PURE__*/ function() {
|
|
2030
2035
|
function AssetPromise(executor) {
|
|
2031
2036
|
var _this = this;
|
|
@@ -2144,9 +2149,9 @@ var AssetPromise = /*#__PURE__*/ function() {
|
|
|
2144
2149
|
}
|
|
2145
2150
|
});
|
|
2146
2151
|
};
|
|
2147
|
-
|
|
2152
|
+
_create_class(AssetPromise, [
|
|
2148
2153
|
{
|
|
2149
|
-
key:
|
|
2154
|
+
key: Symbol.toStringTag,
|
|
2150
2155
|
get: /** compatible with Promise */ function get() {
|
|
2151
2156
|
return "AssetPromise";
|
|
2152
2157
|
}
|
|
@@ -2459,8 +2464,12 @@ var /** @internal */ PromiseState;
|
|
|
2459
2464
|
};
|
|
2460
2465
|
return ResourceManager;
|
|
2461
2466
|
}();
|
|
2462
|
-
|
|
2463
|
-
ResourceManager.
|
|
2467
|
+
(function() {
|
|
2468
|
+
/** Loader collection. */ ResourceManager._loaders = {};
|
|
2469
|
+
})();
|
|
2470
|
+
(function() {
|
|
2471
|
+
ResourceManager._extTypeMapping = {};
|
|
2472
|
+
})();
|
|
2464
2473
|
/**
|
|
2465
2474
|
* Declare ResourceLoader's decorator.
|
|
2466
2475
|
* @param assetType - Type of asset
|
|
@@ -2818,10 +2827,14 @@ var ComponentCloner = /*#__PURE__*/ function() {
|
|
|
2818
2827
|
};
|
|
2819
2828
|
return ComponentsDependencies;
|
|
2820
2829
|
}();
|
|
2821
|
-
|
|
2830
|
+
(function() {
|
|
2831
|
+
/**
|
|
2822
2832
|
* @internal
|
|
2823
2833
|
*/ ComponentsDependencies._dependenciesMap = new Map();
|
|
2824
|
-
|
|
2834
|
+
})();
|
|
2835
|
+
(function() {
|
|
2836
|
+
ComponentsDependencies._invDependenciesMap = new Map();
|
|
2837
|
+
})();
|
|
2825
2838
|
/**
|
|
2826
2839
|
* Dependent components, automatically added if they do not exist.
|
|
2827
2840
|
* @param components - Dependent components
|
|
@@ -2987,7 +3000,7 @@ ComponentsDependencies._invDependenciesMap = new Map();
|
|
|
2987
3000
|
}
|
|
2988
3001
|
}
|
|
2989
3002
|
};
|
|
2990
|
-
|
|
3003
|
+
_create_class(Component, [
|
|
2991
3004
|
{
|
|
2992
3005
|
key: "enabled",
|
|
2993
3006
|
get: /**
|
|
@@ -3121,7 +3134,6 @@ __decorate([
|
|
|
3121
3134
|
function Transform(entity) {
|
|
3122
3135
|
var _this;
|
|
3123
3136
|
_this = Component.call(this, entity) || this;
|
|
3124
|
-
_this._dirtyFlag = 0xbc;
|
|
3125
3137
|
_this._position = new miniprogram.Vector3();
|
|
3126
3138
|
_this._rotation = new miniprogram.Vector3();
|
|
3127
3139
|
_this._rotationQuaternion = new miniprogram.Quaternion();
|
|
@@ -3134,14 +3146,15 @@ __decorate([
|
|
|
3134
3146
|
_this._worldMatrix = new miniprogram.Matrix();
|
|
3135
3147
|
_this._isParentDirty = true;
|
|
3136
3148
|
_this._parentTransformCache = null;
|
|
3149
|
+
_this._dirtyFlag = 0xbc;
|
|
3137
3150
|
/** @internal */ _this._updateFlagManager = new UpdateFlagManager();
|
|
3138
|
-
_this._onPositionChanged = _this._onPositionChanged.bind(
|
|
3139
|
-
_this._onWorldPositionChanged = _this._onWorldPositionChanged.bind(
|
|
3140
|
-
_this._onRotationChanged = _this._onRotationChanged.bind(
|
|
3141
|
-
_this._onWorldRotationChanged = _this._onWorldRotationChanged.bind(
|
|
3142
|
-
_this._onRotationQuaternionChanged = _this._onRotationQuaternionChanged.bind(
|
|
3143
|
-
_this._onWorldRotationQuaternionChanged = _this._onWorldRotationQuaternionChanged.bind(
|
|
3144
|
-
_this._onScaleChanged = _this._onScaleChanged.bind(
|
|
3151
|
+
_this._onPositionChanged = _this._onPositionChanged.bind(_assert_this_initialized(_this));
|
|
3152
|
+
_this._onWorldPositionChanged = _this._onWorldPositionChanged.bind(_assert_this_initialized(_this));
|
|
3153
|
+
_this._onRotationChanged = _this._onRotationChanged.bind(_assert_this_initialized(_this));
|
|
3154
|
+
_this._onWorldRotationChanged = _this._onWorldRotationChanged.bind(_assert_this_initialized(_this));
|
|
3155
|
+
_this._onRotationQuaternionChanged = _this._onRotationQuaternionChanged.bind(_assert_this_initialized(_this));
|
|
3156
|
+
_this._onWorldRotationQuaternionChanged = _this._onWorldRotationQuaternionChanged.bind(_assert_this_initialized(_this));
|
|
3157
|
+
_this._onScaleChanged = _this._onScaleChanged.bind(_assert_this_initialized(_this));
|
|
3145
3158
|
//@ts-ignore
|
|
3146
3159
|
_this._position._onValueChanged = _this._onPositionChanged;
|
|
3147
3160
|
//@ts-ignore
|
|
@@ -3533,7 +3546,7 @@ __decorate([
|
|
|
3533
3546
|
this._setDirtyFlagTrue(0x40);
|
|
3534
3547
|
this._updateWorldScaleFlag();
|
|
3535
3548
|
};
|
|
3536
|
-
|
|
3549
|
+
_create_class(Transform, [
|
|
3537
3550
|
{
|
|
3538
3551
|
key: "position",
|
|
3539
3552
|
get: /**
|
|
@@ -3779,15 +3792,33 @@ __decorate([
|
|
|
3779
3792
|
]);
|
|
3780
3793
|
return Transform;
|
|
3781
3794
|
}(Component);
|
|
3782
|
-
|
|
3783
|
-
Transform.
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
Transform.
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
Transform.
|
|
3790
|
-
|
|
3795
|
+
(function() {
|
|
3796
|
+
Transform._tempQuat0 = new miniprogram.Quaternion();
|
|
3797
|
+
})();
|
|
3798
|
+
(function() {
|
|
3799
|
+
Transform._tempVec30 = new miniprogram.Vector3();
|
|
3800
|
+
})();
|
|
3801
|
+
(function() {
|
|
3802
|
+
Transform._tempVec31 = new miniprogram.Vector3();
|
|
3803
|
+
})();
|
|
3804
|
+
(function() {
|
|
3805
|
+
Transform._tempVec32 = new miniprogram.Vector3();
|
|
3806
|
+
})();
|
|
3807
|
+
(function() {
|
|
3808
|
+
Transform._tempMat30 = new miniprogram.Matrix3x3();
|
|
3809
|
+
})();
|
|
3810
|
+
(function() {
|
|
3811
|
+
Transform._tempMat31 = new miniprogram.Matrix3x3();
|
|
3812
|
+
})();
|
|
3813
|
+
(function() {
|
|
3814
|
+
Transform._tempMat32 = new miniprogram.Matrix3x3();
|
|
3815
|
+
})();
|
|
3816
|
+
(function() {
|
|
3817
|
+
Transform._tempMat41 = new miniprogram.Matrix();
|
|
3818
|
+
})();
|
|
3819
|
+
(function() {
|
|
3820
|
+
Transform._tempMat42 = new miniprogram.Matrix();
|
|
3821
|
+
})();
|
|
3791
3822
|
__decorate([
|
|
3792
3823
|
deepClone
|
|
3793
3824
|
], Transform.prototype, "_position", void 0);
|
|
@@ -4287,7 +4318,7 @@ var TransformModifyFlags;
|
|
|
4287
4318
|
this._traverseSetOwnerScene(children[i], scene);
|
|
4288
4319
|
}
|
|
4289
4320
|
};
|
|
4290
|
-
|
|
4321
|
+
_create_class(Entity, [
|
|
4291
4322
|
{
|
|
4292
4323
|
key: "isActive",
|
|
4293
4324
|
get: /**
|
|
@@ -4505,7 +4536,7 @@ var TransformModifyFlags;
|
|
|
4505
4536
|
}
|
|
4506
4537
|
}
|
|
4507
4538
|
};
|
|
4508
|
-
|
|
4539
|
+
_create_class(SystemInfo, null, [
|
|
4509
4540
|
{
|
|
4510
4541
|
key: "devicePixelRatio",
|
|
4511
4542
|
get: /**
|
|
@@ -4517,8 +4548,12 @@ var TransformModifyFlags;
|
|
|
4517
4548
|
]);
|
|
4518
4549
|
return SystemInfo;
|
|
4519
4550
|
}();
|
|
4520
|
-
|
|
4521
|
-
/** The
|
|
4551
|
+
(function() {
|
|
4552
|
+
/** The platform is running on. */ SystemInfo.platform = exports.Platform.Unknown;
|
|
4553
|
+
})();
|
|
4554
|
+
(function() {
|
|
4555
|
+
/** The operating system is running on. */ SystemInfo.operatingSystem = "";
|
|
4556
|
+
})();
|
|
4522
4557
|
SystemInfo._initialize();
|
|
4523
4558
|
|
|
4524
4559
|
/**
|
|
@@ -5135,7 +5170,7 @@ SystemInfo._initialize();
|
|
|
5135
5170
|
_proto._setGravity = function _setGravity() {
|
|
5136
5171
|
this._nativePhysicsManager.setGravity(this._gravity);
|
|
5137
5172
|
};
|
|
5138
|
-
|
|
5173
|
+
_create_class(PhysicsManager, [
|
|
5139
5174
|
{
|
|
5140
5175
|
key: "gravity",
|
|
5141
5176
|
get: /**
|
|
@@ -5193,7 +5228,7 @@ SystemInfo._initialize();
|
|
|
5193
5228
|
*/ _proto._destroy = function _destroy() {
|
|
5194
5229
|
this._nativeMaterial.destroy();
|
|
5195
5230
|
};
|
|
5196
|
-
|
|
5231
|
+
_create_class(PhysicsMaterial, [
|
|
5197
5232
|
{
|
|
5198
5233
|
key: "bounciness",
|
|
5199
5234
|
get: /**
|
|
@@ -5273,8 +5308,8 @@ exports.Collider = /*#__PURE__*/ function(Component) {
|
|
|
5273
5308
|
function Collider(entity) {
|
|
5274
5309
|
var _this;
|
|
5275
5310
|
_this = Component.call(this, entity) || this;
|
|
5276
|
-
_this._shapes = [];
|
|
5277
5311
|
/** @internal */ _this._index = -1;
|
|
5312
|
+
_this._shapes = [];
|
|
5278
5313
|
_this._updateFlag = _this.entity.transform.registerWorldChangeFlag();
|
|
5279
5314
|
return _this;
|
|
5280
5315
|
}
|
|
@@ -5353,7 +5388,7 @@ exports.Collider = /*#__PURE__*/ function(Component) {
|
|
|
5353
5388
|
this.clearShapes();
|
|
5354
5389
|
this._nativeCollider.destroy();
|
|
5355
5390
|
};
|
|
5356
|
-
|
|
5391
|
+
_create_class(Collider, [
|
|
5357
5392
|
{
|
|
5358
5393
|
key: "shapes",
|
|
5359
5394
|
get: /**
|
|
@@ -5393,7 +5428,7 @@ exports.Collider = __decorate([
|
|
|
5393
5428
|
_this._upDirection = new miniprogram.Vector3(0, 1, 0);
|
|
5394
5429
|
_this._slopeLimit = 0.707;
|
|
5395
5430
|
_this._nativeCollider = PhysicsManager._nativePhysics.createCharacterController();
|
|
5396
|
-
_this._setUpDirection = _this._setUpDirection.bind(
|
|
5431
|
+
_this._setUpDirection = _this._setUpDirection.bind(_assert_this_initialized(_this));
|
|
5397
5432
|
//@ts-ignore
|
|
5398
5433
|
_this._upDirection._onValueChanged = _this._setUpDirection;
|
|
5399
5434
|
return _this;
|
|
@@ -5466,7 +5501,7 @@ exports.Collider = __decorate([
|
|
|
5466
5501
|
_proto._setUpDirection = function _setUpDirection() {
|
|
5467
5502
|
this._nativeCollider.setUpDirection(this._upDirection);
|
|
5468
5503
|
};
|
|
5469
|
-
|
|
5504
|
+
_create_class(CharacterController, [
|
|
5470
5505
|
{
|
|
5471
5506
|
key: "stepOffset",
|
|
5472
5507
|
get: /**
|
|
@@ -5561,7 +5596,7 @@ exports.Collider = __decorate([
|
|
|
5561
5596
|
_proto._setRotation = function _setRotation() {
|
|
5562
5597
|
this._nativeShape.setRotation(this._rotation);
|
|
5563
5598
|
};
|
|
5564
|
-
|
|
5599
|
+
_create_class(ColliderShape, [
|
|
5565
5600
|
{
|
|
5566
5601
|
key: "collider",
|
|
5567
5602
|
get: /**
|
|
@@ -5649,7 +5684,9 @@ exports.Collider = __decorate([
|
|
|
5649
5684
|
]);
|
|
5650
5685
|
return ColliderShape;
|
|
5651
5686
|
}();
|
|
5652
|
-
|
|
5687
|
+
(function() {
|
|
5688
|
+
ColliderShape._idGenerator = 0;
|
|
5689
|
+
})();
|
|
5653
5690
|
|
|
5654
5691
|
/**
|
|
5655
5692
|
* Physical collider shape for box.
|
|
@@ -5660,7 +5697,7 @@ ColliderShape._idGenerator = 0;
|
|
|
5660
5697
|
_this = ColliderShape.call(this) || this;
|
|
5661
5698
|
_this._size = new miniprogram.Vector3(1, 1, 1);
|
|
5662
5699
|
_this._nativeShape = PhysicsManager._nativePhysics.createBoxColliderShape(_this._id, _this._size, _this._material._nativeMaterial);
|
|
5663
|
-
_this._setSize = _this._setSize.bind(
|
|
5700
|
+
_this._setSize = _this._setSize.bind(_assert_this_initialized(_this));
|
|
5664
5701
|
//@ts-ignore
|
|
5665
5702
|
_this._size._onValueChanged = _this._setSize;
|
|
5666
5703
|
return _this;
|
|
@@ -5669,7 +5706,7 @@ ColliderShape._idGenerator = 0;
|
|
|
5669
5706
|
_proto._setSize = function _setSize() {
|
|
5670
5707
|
this._nativeShape.setSize(this._size);
|
|
5671
5708
|
};
|
|
5672
|
-
|
|
5709
|
+
_create_class(BoxColliderShape, [
|
|
5673
5710
|
{
|
|
5674
5711
|
key: "size",
|
|
5675
5712
|
get: /**
|
|
@@ -5698,7 +5735,7 @@ ColliderShape._idGenerator = 0;
|
|
|
5698
5735
|
_this._nativeShape = PhysicsManager._nativePhysics.createSphereColliderShape(_this._id, _this._radius, _this._material._nativeMaterial);
|
|
5699
5736
|
return _this;
|
|
5700
5737
|
}
|
|
5701
|
-
|
|
5738
|
+
_create_class(SphereColliderShape, [
|
|
5702
5739
|
{
|
|
5703
5740
|
key: "radius",
|
|
5704
5741
|
get: /**
|
|
@@ -5752,7 +5789,7 @@ ColliderShape._idGenerator = 0;
|
|
|
5752
5789
|
_this._nativeShape = PhysicsManager._nativePhysics.createCapsuleColliderShape(_this._id, _this._radius, _this._height, _this._material._nativeMaterial);
|
|
5753
5790
|
return _this;
|
|
5754
5791
|
}
|
|
5755
|
-
|
|
5792
|
+
_create_class(CapsuleColliderShape, [
|
|
5756
5793
|
{
|
|
5757
5794
|
key: "radius",
|
|
5758
5795
|
get: /**
|
|
@@ -5811,7 +5848,7 @@ exports.Joint = /*#__PURE__*/ function(Component) {
|
|
|
5811
5848
|
_this._connectedCollider.localPosition = new miniprogram.Vector3();
|
|
5812
5849
|
return _this;
|
|
5813
5850
|
}
|
|
5814
|
-
|
|
5851
|
+
_create_class(Joint, [
|
|
5815
5852
|
{
|
|
5816
5853
|
key: "connectedCollider",
|
|
5817
5854
|
get: /**
|
|
@@ -5991,7 +6028,7 @@ exports.Joint = __decorate([
|
|
|
5991
6028
|
collider.collider = this.entity.getComponent(exports.Collider);
|
|
5992
6029
|
this._nativeJoint = PhysicsManager._nativePhysics.createHingeJoint(collider.collider._nativeCollider);
|
|
5993
6030
|
};
|
|
5994
|
-
|
|
6031
|
+
_create_class(HingeJoint, [
|
|
5995
6032
|
{
|
|
5996
6033
|
key: "axis",
|
|
5997
6034
|
get: /**
|
|
@@ -6143,7 +6180,7 @@ exports.Joint = __decorate([
|
|
|
6143
6180
|
collider.collider = this.entity.getComponent(exports.Collider);
|
|
6144
6181
|
this._nativeJoint = PhysicsManager._nativePhysics.createSpringJoint(collider.collider._nativeCollider);
|
|
6145
6182
|
};
|
|
6146
|
-
|
|
6183
|
+
_create_class(SpringJoint, [
|
|
6147
6184
|
{
|
|
6148
6185
|
key: "swingOffset",
|
|
6149
6186
|
get: /**
|
|
@@ -6299,10 +6336,10 @@ exports.Joint = __decorate([
|
|
|
6299
6336
|
_this._sleepThreshold = 5e-3;
|
|
6300
6337
|
var transform = _this.entity.transform;
|
|
6301
6338
|
_this._nativeCollider = PhysicsManager._nativePhysics.createDynamicCollider(transform.worldPosition, transform.worldRotationQuaternion);
|
|
6302
|
-
_this._setLinearVelocity = _this._setLinearVelocity.bind(
|
|
6303
|
-
_this._setAngularVelocity = _this._setAngularVelocity.bind(
|
|
6304
|
-
_this._setCenterOfMass = _this._setCenterOfMass.bind(
|
|
6305
|
-
_this._setInertiaTensor = _this._setInertiaTensor.bind(
|
|
6339
|
+
_this._setLinearVelocity = _this._setLinearVelocity.bind(_assert_this_initialized(_this));
|
|
6340
|
+
_this._setAngularVelocity = _this._setAngularVelocity.bind(_assert_this_initialized(_this));
|
|
6341
|
+
_this._setCenterOfMass = _this._setCenterOfMass.bind(_assert_this_initialized(_this));
|
|
6342
|
+
_this._setInertiaTensor = _this._setInertiaTensor.bind(_assert_this_initialized(_this));
|
|
6306
6343
|
//@ts-ignore
|
|
6307
6344
|
_this._linearVelocity._onValueChanged = _this._setLinearVelocity;
|
|
6308
6345
|
//@ts-ignore
|
|
@@ -6360,7 +6397,7 @@ exports.Joint = __decorate([
|
|
|
6360
6397
|
_proto._setInertiaTensor = function _setInertiaTensor() {
|
|
6361
6398
|
this._nativeCollider.setInertiaTensor(this._inertiaTensor);
|
|
6362
6399
|
};
|
|
6363
|
-
|
|
6400
|
+
_create_class(DynamicCollider, [
|
|
6364
6401
|
{
|
|
6365
6402
|
key: "linearDamping",
|
|
6366
6403
|
get: /**
|
|
@@ -6904,9 +6941,15 @@ exports.DynamicColliderConstraints = void 0;
|
|
|
6904
6941
|
};
|
|
6905
6942
|
return PointerManager;
|
|
6906
6943
|
}();
|
|
6907
|
-
|
|
6908
|
-
PointerManager.
|
|
6909
|
-
|
|
6944
|
+
(function() {
|
|
6945
|
+
PointerManager._tempRay = new miniprogram.Ray();
|
|
6946
|
+
})();
|
|
6947
|
+
(function() {
|
|
6948
|
+
PointerManager._tempPoint = new miniprogram.Vector2();
|
|
6949
|
+
})();
|
|
6950
|
+
(function() {
|
|
6951
|
+
PointerManager._tempHitResult = new HitResult();
|
|
6952
|
+
})();
|
|
6910
6953
|
|
|
6911
6954
|
/**
|
|
6912
6955
|
* Wheel Manager.
|
|
@@ -7112,7 +7155,7 @@ PointerManager._tempHitResult = new HitResult();
|
|
|
7112
7155
|
this._pointerManager._onFocus();
|
|
7113
7156
|
this._keyboardManager._onFocus();
|
|
7114
7157
|
};
|
|
7115
|
-
|
|
7158
|
+
_create_class(InputManager, [
|
|
7116
7159
|
{
|
|
7117
7160
|
key: "pointers",
|
|
7118
7161
|
get: /**
|
|
@@ -7299,8 +7342,12 @@ PointerManager._tempHitResult = new HitResult();
|
|
|
7299
7342
|
}
|
|
7300
7343
|
this._nameId = nameID;
|
|
7301
7344
|
};
|
|
7302
|
-
|
|
7303
|
-
ShaderMacro.
|
|
7345
|
+
(function() {
|
|
7346
|
+
/** @internal */ ShaderMacro._macroNameIdMap = Object.create(null);
|
|
7347
|
+
})();
|
|
7348
|
+
(function() {
|
|
7349
|
+
ShaderMacro._macroNameCounter = 0;
|
|
7350
|
+
})();
|
|
7304
7351
|
|
|
7305
7352
|
/**
|
|
7306
7353
|
* Shader macro collection.
|
|
@@ -7452,26 +7499,17 @@ ShaderMacro._macroNameCounter = 0;
|
|
|
7452
7499
|
return ShaderMacroCollection;
|
|
7453
7500
|
}();
|
|
7454
7501
|
|
|
7455
|
-
function
|
|
7456
|
-
|
|
7457
|
-
|
|
7458
|
-
|
|
7459
|
-
|
|
7460
|
-
for (var key in source) {
|
|
7461
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7462
|
-
target[key] = source[key];
|
|
7502
|
+
function _extends() {
|
|
7503
|
+
_extends = Object.assign || function assign(target) {
|
|
7504
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
7505
|
+
var source = arguments[i];
|
|
7506
|
+
for (var key in source) if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
7463
7507
|
}
|
|
7464
|
-
}
|
|
7465
|
-
}
|
|
7466
|
-
|
|
7467
|
-
return target;
|
|
7468
|
-
};
|
|
7469
7508
|
|
|
7470
|
-
|
|
7471
|
-
}
|
|
7509
|
+
return target;
|
|
7510
|
+
};
|
|
7472
7511
|
|
|
7473
|
-
|
|
7474
|
-
return extends_.apply(this, arguments);
|
|
7512
|
+
return _extends.apply(this, arguments);
|
|
7475
7513
|
}
|
|
7476
7514
|
|
|
7477
7515
|
var camera_declare = "#define GLSLIFY 1\nuniform vec3 u_cameraPos;"; // eslint-disable-line
|
|
@@ -8313,7 +8351,7 @@ var ShaderFactory = /*#__PURE__*/ function() {
|
|
|
8313
8351
|
return prefix + line;
|
|
8314
8352
|
}).join("\n");
|
|
8315
8353
|
};
|
|
8316
|
-
|
|
8354
|
+
_create_class(ShaderProgram, [
|
|
8317
8355
|
{
|
|
8318
8356
|
key: "isValid",
|
|
8319
8357
|
get: /**
|
|
@@ -8325,7 +8363,9 @@ var ShaderFactory = /*#__PURE__*/ function() {
|
|
|
8325
8363
|
]);
|
|
8326
8364
|
return ShaderProgram;
|
|
8327
8365
|
}();
|
|
8328
|
-
|
|
8366
|
+
(function() {
|
|
8367
|
+
ShaderProgram._counter = 0;
|
|
8368
|
+
})();
|
|
8329
8369
|
|
|
8330
8370
|
/**
|
|
8331
8371
|
* Shader pass containing vertex and fragment source.
|
|
@@ -8370,7 +8410,9 @@ ShaderProgram._counter = 0;
|
|
|
8370
8410
|
};
|
|
8371
8411
|
return ShaderPass;
|
|
8372
8412
|
}();
|
|
8373
|
-
|
|
8413
|
+
(function() {
|
|
8414
|
+
ShaderPass._shaderPassCounter = 0;
|
|
8415
|
+
})();
|
|
8374
8416
|
|
|
8375
8417
|
/**
|
|
8376
8418
|
* Shader property.
|
|
@@ -8379,7 +8421,7 @@ ShaderPass._shaderPassCounter = 0;
|
|
|
8379
8421
|
this.name = name;
|
|
8380
8422
|
this._uniqueId = ShaderProperty._propertyNameCounter++;
|
|
8381
8423
|
}
|
|
8382
|
-
|
|
8424
|
+
_create_class(ShaderProperty, [
|
|
8383
8425
|
{
|
|
8384
8426
|
key: "type",
|
|
8385
8427
|
get: /**
|
|
@@ -8391,7 +8433,9 @@ ShaderPass._shaderPassCounter = 0;
|
|
|
8391
8433
|
]);
|
|
8392
8434
|
return ShaderProperty;
|
|
8393
8435
|
}();
|
|
8394
|
-
|
|
8436
|
+
(function() {
|
|
8437
|
+
ShaderProperty._propertyNameCounter = 0;
|
|
8438
|
+
})();
|
|
8395
8439
|
|
|
8396
8440
|
/**
|
|
8397
8441
|
* Shader for rendering.
|
|
@@ -8504,7 +8548,7 @@ ShaderProperty._propertyNameCounter = 0;
|
|
|
8504
8548
|
}
|
|
8505
8549
|
}
|
|
8506
8550
|
};
|
|
8507
|
-
|
|
8551
|
+
_create_class(Shader, [
|
|
8508
8552
|
{
|
|
8509
8553
|
key: "passes",
|
|
8510
8554
|
get: /**
|
|
@@ -8516,18 +8560,34 @@ ShaderProperty._propertyNameCounter = 0;
|
|
|
8516
8560
|
]);
|
|
8517
8561
|
return Shader;
|
|
8518
8562
|
}();
|
|
8519
|
-
|
|
8520
|
-
/** @internal */ Shader.
|
|
8521
|
-
|
|
8522
|
-
|
|
8523
|
-
|
|
8524
|
-
|
|
8525
|
-
|
|
8526
|
-
|
|
8527
|
-
|
|
8528
|
-
|
|
8529
|
-
|
|
8530
|
-
Shader.
|
|
8563
|
+
(function() {
|
|
8564
|
+
/** @internal */ Shader._compileMacros = new ShaderMacroCollection();
|
|
8565
|
+
})();
|
|
8566
|
+
(function() {
|
|
8567
|
+
/** @internal */ Shader._shaderExtension = [
|
|
8568
|
+
"GL_EXT_shader_texture_lod",
|
|
8569
|
+
"GL_OES_standard_derivatives",
|
|
8570
|
+
"GL_EXT_draw_buffers"
|
|
8571
|
+
];
|
|
8572
|
+
})();
|
|
8573
|
+
(function() {
|
|
8574
|
+
/** @internal */ Shader._propertyIdMap = Object.create(null);
|
|
8575
|
+
})();
|
|
8576
|
+
(function() {
|
|
8577
|
+
Shader._shaderMap = Object.create(null);
|
|
8578
|
+
})();
|
|
8579
|
+
(function() {
|
|
8580
|
+
Shader._propertyNameMap = Object.create(null);
|
|
8581
|
+
})();
|
|
8582
|
+
(function() {
|
|
8583
|
+
Shader._macroMaskMap = [];
|
|
8584
|
+
})();
|
|
8585
|
+
(function() {
|
|
8586
|
+
Shader._macroCounter = 0;
|
|
8587
|
+
})();
|
|
8588
|
+
(function() {
|
|
8589
|
+
Shader._macroMap = Object.create(null);
|
|
8590
|
+
})();
|
|
8531
8591
|
|
|
8532
8592
|
/**
|
|
8533
8593
|
* Shader data collection,Correspondence includes shader properties data and macros data.
|
|
@@ -8785,9 +8845,9 @@ Shader._macroMap = Object.create(null);
|
|
|
8785
8845
|
/** Shadow mapping normal-based bias. */ _this.shadowNormalBias = 1;
|
|
8786
8846
|
/** Near plane value to use for shadow frustums. */ _this.shadowNearPlane = 0.1;
|
|
8787
8847
|
/** Shadow intensity, the larger the value, the clearer and darker the shadow. */ _this.shadowStrength = 1.0;
|
|
8848
|
+
/** @internal */ _this._lightIndex = -1;
|
|
8788
8849
|
_this._color = new miniprogram.Color(1, 1, 1, 1);
|
|
8789
8850
|
_this._lightColor = new miniprogram.Color();
|
|
8790
|
-
/** @internal */ _this._lightIndex = -1;
|
|
8791
8851
|
return _this;
|
|
8792
8852
|
}
|
|
8793
8853
|
var _proto = Light.prototype;
|
|
@@ -8798,7 +8858,7 @@ Shader._macroMap = Object.create(null);
|
|
|
8798
8858
|
this._lightColor.a = this.color.a * this.intensity;
|
|
8799
8859
|
return this._lightColor;
|
|
8800
8860
|
};
|
|
8801
|
-
|
|
8861
|
+
_create_class(Light, [
|
|
8802
8862
|
{
|
|
8803
8863
|
key: "color",
|
|
8804
8864
|
get: /**
|
|
@@ -8835,9 +8895,11 @@ Shader._macroMap = Object.create(null);
|
|
|
8835
8895
|
]);
|
|
8836
8896
|
return Light;
|
|
8837
8897
|
}(Component);
|
|
8838
|
-
|
|
8898
|
+
(function() {
|
|
8899
|
+
/**
|
|
8839
8900
|
* Each type of light source is at most 10, beyond which it will not take effect.
|
|
8840
8901
|
* */ Light._maxLight = 10;
|
|
8902
|
+
})();
|
|
8841
8903
|
__decorate([
|
|
8842
8904
|
ignoreClone
|
|
8843
8905
|
], Light.prototype, "_lightIndex", void 0);
|
|
@@ -8895,7 +8957,7 @@ __decorate([
|
|
|
8895
8957
|
shaderData.setFloatArray(DirectLight._colorProperty, data.color);
|
|
8896
8958
|
shaderData.setFloatArray(DirectLight._directionProperty, data.direction);
|
|
8897
8959
|
};
|
|
8898
|
-
|
|
8960
|
+
_create_class(DirectLight, [
|
|
8899
8961
|
{
|
|
8900
8962
|
key: "direction",
|
|
8901
8963
|
get: /**
|
|
@@ -8926,14 +8988,22 @@ __decorate([
|
|
|
8926
8988
|
]);
|
|
8927
8989
|
return DirectLight;
|
|
8928
8990
|
}(Light);
|
|
8929
|
-
|
|
8930
|
-
DirectLight.
|
|
8931
|
-
|
|
8932
|
-
|
|
8933
|
-
|
|
8934
|
-
|
|
8935
|
-
|
|
8936
|
-
|
|
8991
|
+
(function() {
|
|
8992
|
+
DirectLight._cullingMaskProperty = Shader.getPropertyByName("u_directLightCullingMask");
|
|
8993
|
+
})();
|
|
8994
|
+
(function() {
|
|
8995
|
+
DirectLight._colorProperty = Shader.getPropertyByName("u_directLightColor");
|
|
8996
|
+
})();
|
|
8997
|
+
(function() {
|
|
8998
|
+
DirectLight._directionProperty = Shader.getPropertyByName("u_directLightDirection");
|
|
8999
|
+
})();
|
|
9000
|
+
(function() {
|
|
9001
|
+
DirectLight._combinedData = {
|
|
9002
|
+
cullingMask: new Int32Array(Light._maxLight * 2),
|
|
9003
|
+
color: new Float32Array(Light._maxLight * 3),
|
|
9004
|
+
direction: new Float32Array(Light._maxLight * 3)
|
|
9005
|
+
};
|
|
9006
|
+
})();
|
|
8937
9007
|
|
|
8938
9008
|
/**
|
|
8939
9009
|
* Point light.
|
|
@@ -8990,7 +9060,7 @@ DirectLight._combinedData = {
|
|
|
8990
9060
|
shaderData.setFloatArray(PointLight._positionProperty, data.position);
|
|
8991
9061
|
shaderData.setFloatArray(PointLight._distanceProperty, data.distance);
|
|
8992
9062
|
};
|
|
8993
|
-
|
|
9063
|
+
_create_class(PointLight, [
|
|
8994
9064
|
{
|
|
8995
9065
|
key: "position",
|
|
8996
9066
|
get: /**
|
|
@@ -9011,16 +9081,26 @@ DirectLight._combinedData = {
|
|
|
9011
9081
|
]);
|
|
9012
9082
|
return PointLight;
|
|
9013
9083
|
}(Light);
|
|
9014
|
-
|
|
9015
|
-
PointLight.
|
|
9016
|
-
|
|
9017
|
-
|
|
9018
|
-
PointLight.
|
|
9019
|
-
|
|
9020
|
-
|
|
9021
|
-
|
|
9022
|
-
|
|
9023
|
-
|
|
9084
|
+
(function() {
|
|
9085
|
+
PointLight._cullingMaskProperty = Shader.getPropertyByName("u_pointLightCullingMask");
|
|
9086
|
+
})();
|
|
9087
|
+
(function() {
|
|
9088
|
+
PointLight._colorProperty = Shader.getPropertyByName("u_pointLightColor");
|
|
9089
|
+
})();
|
|
9090
|
+
(function() {
|
|
9091
|
+
PointLight._positionProperty = Shader.getPropertyByName("u_pointLightPosition");
|
|
9092
|
+
})();
|
|
9093
|
+
(function() {
|
|
9094
|
+
PointLight._distanceProperty = Shader.getPropertyByName("u_pointLightDistance");
|
|
9095
|
+
})();
|
|
9096
|
+
(function() {
|
|
9097
|
+
PointLight._combinedData = {
|
|
9098
|
+
cullingMask: new Int32Array(Light._maxLight * 2),
|
|
9099
|
+
color: new Float32Array(Light._maxLight * 3),
|
|
9100
|
+
position: new Float32Array(Light._maxLight * 3),
|
|
9101
|
+
distance: new Float32Array(Light._maxLight)
|
|
9102
|
+
};
|
|
9103
|
+
})();
|
|
9024
9104
|
|
|
9025
9105
|
/**
|
|
9026
9106
|
* Spot light.
|
|
@@ -9094,7 +9174,7 @@ PointLight._combinedData = {
|
|
|
9094
9174
|
shaderData.setFloatArray(SpotLight._angleCosProperty, data.angleCos);
|
|
9095
9175
|
shaderData.setFloatArray(SpotLight._penumbraCosProperty, data.penumbraCos);
|
|
9096
9176
|
};
|
|
9097
|
-
|
|
9177
|
+
_create_class(SpotLight, [
|
|
9098
9178
|
{
|
|
9099
9179
|
key: "position",
|
|
9100
9180
|
get: /**
|
|
@@ -9136,22 +9216,38 @@ PointLight._combinedData = {
|
|
|
9136
9216
|
]);
|
|
9137
9217
|
return SpotLight;
|
|
9138
9218
|
}(Light);
|
|
9139
|
-
|
|
9140
|
-
SpotLight.
|
|
9141
|
-
|
|
9142
|
-
|
|
9143
|
-
SpotLight.
|
|
9144
|
-
|
|
9145
|
-
|
|
9146
|
-
SpotLight.
|
|
9147
|
-
|
|
9148
|
-
|
|
9149
|
-
|
|
9150
|
-
|
|
9151
|
-
|
|
9152
|
-
|
|
9153
|
-
|
|
9154
|
-
|
|
9219
|
+
(function() {
|
|
9220
|
+
SpotLight._cullingMaskProperty = Shader.getPropertyByName("u_spotLightCullingMask");
|
|
9221
|
+
})();
|
|
9222
|
+
(function() {
|
|
9223
|
+
SpotLight._colorProperty = Shader.getPropertyByName("u_spotLightColor");
|
|
9224
|
+
})();
|
|
9225
|
+
(function() {
|
|
9226
|
+
SpotLight._positionProperty = Shader.getPropertyByName("u_spotLightPosition");
|
|
9227
|
+
})();
|
|
9228
|
+
(function() {
|
|
9229
|
+
SpotLight._directionProperty = Shader.getPropertyByName("u_spotLightDirection");
|
|
9230
|
+
})();
|
|
9231
|
+
(function() {
|
|
9232
|
+
SpotLight._distanceProperty = Shader.getPropertyByName("u_spotLightDistance");
|
|
9233
|
+
})();
|
|
9234
|
+
(function() {
|
|
9235
|
+
SpotLight._angleCosProperty = Shader.getPropertyByName("u_spotLightAngleCos");
|
|
9236
|
+
})();
|
|
9237
|
+
(function() {
|
|
9238
|
+
SpotLight._penumbraCosProperty = Shader.getPropertyByName("u_spotLightPenumbraCos");
|
|
9239
|
+
})();
|
|
9240
|
+
(function() {
|
|
9241
|
+
SpotLight._combinedData = {
|
|
9242
|
+
cullingMask: new Int32Array(Light._maxLight * 2),
|
|
9243
|
+
color: new Float32Array(Light._maxLight * 3),
|
|
9244
|
+
position: new Float32Array(Light._maxLight * 3),
|
|
9245
|
+
direction: new Float32Array(Light._maxLight * 3),
|
|
9246
|
+
distance: new Float32Array(Light._maxLight),
|
|
9247
|
+
angleCos: new Float32Array(Light._maxLight),
|
|
9248
|
+
penumbraCos: new Float32Array(Light._maxLight)
|
|
9249
|
+
};
|
|
9250
|
+
})();
|
|
9155
9251
|
|
|
9156
9252
|
/**
|
|
9157
9253
|
* Light manager.
|
|
@@ -9712,7 +9808,7 @@ SpotLight._combinedData = {
|
|
|
9712
9808
|
/**
|
|
9713
9809
|
* @override
|
|
9714
9810
|
*/ _proto._onDestroy = function _onDestroy() {};
|
|
9715
|
-
|
|
9811
|
+
_create_class(Material, [
|
|
9716
9812
|
{
|
|
9717
9813
|
key: "shader",
|
|
9718
9814
|
get: /**
|
|
@@ -9821,9 +9917,15 @@ var RenderElement = function RenderElement() {
|
|
|
9821
9917
|
};
|
|
9822
9918
|
return RenderContext;
|
|
9823
9919
|
}();
|
|
9824
|
-
|
|
9825
|
-
RenderContext.
|
|
9826
|
-
|
|
9920
|
+
(function() {
|
|
9921
|
+
/** @internal */ RenderContext._vpMatrixProperty = Shader.getPropertyByName("u_VPMat");
|
|
9922
|
+
})();
|
|
9923
|
+
(function() {
|
|
9924
|
+
RenderContext._viewMatrixProperty = Shader.getPropertyByName("u_viewMat");
|
|
9925
|
+
})();
|
|
9926
|
+
(function() {
|
|
9927
|
+
RenderContext._projectionMatrixProperty = Shader.getPropertyByName("u_projMat");
|
|
9928
|
+
})();
|
|
9827
9929
|
|
|
9828
9930
|
var SpriteElement = /*#__PURE__*/ function(RenderElement) {
|
|
9829
9931
|
_inherits(SpriteElement, RenderElement);
|
|
@@ -9878,7 +9980,6 @@ exports.Renderer = (_Renderer = /*#__PURE__*/ function(Component) {
|
|
|
9878
9980
|
function Renderer1(entity) {
|
|
9879
9981
|
var _this;
|
|
9880
9982
|
_this = Component.call(this, entity) || this;
|
|
9881
|
-
/** Whether cast shadow. */ _this.castShadows = true;
|
|
9882
9983
|
/** ShaderData related to renderer. */ _this.shaderData = new ShaderData(ShaderDataGroup.Renderer);
|
|
9883
9984
|
/** @internal */ _this._onUpdateIndex = -1;
|
|
9884
9985
|
/** @internal */ _this._rendererIndex = -1;
|
|
@@ -9895,11 +9996,12 @@ exports.Renderer = (_Renderer = /*#__PURE__*/ function(Component) {
|
|
|
9895
9996
|
_this._priority = 0;
|
|
9896
9997
|
_this._receiveShadows = true;
|
|
9897
9998
|
_this._rendererLayer = new miniprogram.Vector4();
|
|
9999
|
+
/** Whether cast shadow. */ _this.castShadows = true;
|
|
9898
10000
|
var prototype = exports.Renderer.prototype;
|
|
9899
10001
|
var shaderData = _this.shaderData;
|
|
9900
10002
|
_this._overrideUpdate = _this.update !== prototype.update;
|
|
9901
10003
|
shaderData._addRefCount(1);
|
|
9902
|
-
_this._onTransformChanged = _this._onTransformChanged.bind(
|
|
10004
|
+
_this._onTransformChanged = _this._onTransformChanged.bind(_assert_this_initialized(_this));
|
|
9903
10005
|
_this._registerEntityTransformListener();
|
|
9904
10006
|
shaderData.enableMacro(exports.Renderer._receiveShadowMacro);
|
|
9905
10007
|
shaderData.setVector4(exports.Renderer._rendererLayerProperty, _this._rendererLayer);
|
|
@@ -10084,7 +10186,7 @@ exports.Renderer = (_Renderer = /*#__PURE__*/ function(Component) {
|
|
|
10084
10186
|
_proto._onTransformChanged = function _onTransformChanged(type) {
|
|
10085
10187
|
this._dirtyUpdateFlag |= 0x1;
|
|
10086
10188
|
};
|
|
10087
|
-
|
|
10189
|
+
_create_class(Renderer1, [
|
|
10088
10190
|
{
|
|
10089
10191
|
key: "isCulled",
|
|
10090
10192
|
get: /**
|
|
@@ -10150,7 +10252,25 @@ exports.Renderer = (_Renderer = /*#__PURE__*/ function(Component) {
|
|
|
10150
10252
|
}
|
|
10151
10253
|
]);
|
|
10152
10254
|
return Renderer1;
|
|
10153
|
-
}(Component),
|
|
10255
|
+
}(Component), function() {
|
|
10256
|
+
_Renderer._tempVector0 = new miniprogram.Vector3();
|
|
10257
|
+
}(), function() {
|
|
10258
|
+
_Renderer._receiveShadowMacro = Shader.getMacroByName("OASIS_RECEIVE_SHADOWS");
|
|
10259
|
+
}(), function() {
|
|
10260
|
+
_Renderer._localMatrixProperty = Shader.getPropertyByName("u_localMat");
|
|
10261
|
+
}(), function() {
|
|
10262
|
+
_Renderer._worldMatrixProperty = Shader.getPropertyByName("u_modelMat");
|
|
10263
|
+
}(), function() {
|
|
10264
|
+
_Renderer._mvMatrixProperty = Shader.getPropertyByName("u_MVMat");
|
|
10265
|
+
}(), function() {
|
|
10266
|
+
_Renderer._mvpMatrixProperty = Shader.getPropertyByName("u_MVPMat");
|
|
10267
|
+
}(), function() {
|
|
10268
|
+
_Renderer._mvInvMatrixProperty = Shader.getPropertyByName("u_MVInvMat");
|
|
10269
|
+
}(), function() {
|
|
10270
|
+
_Renderer._normalMatrixProperty = Shader.getPropertyByName("u_normalMat");
|
|
10271
|
+
}(), function() {
|
|
10272
|
+
_Renderer._rendererLayerProperty = Shader.getPropertyByName("oasis_RendererLayer");
|
|
10273
|
+
}(), _Renderer);
|
|
10154
10274
|
__decorate([
|
|
10155
10275
|
deepClone
|
|
10156
10276
|
], exports.Renderer.prototype, "shaderData", void 0);
|
|
@@ -10280,14 +10400,18 @@ var SimpleSpriteAssembler = (_SimpleSpriteAssembler = /*#__PURE__*/ function() {
|
|
|
10280
10400
|
renderUVs[3].set(right, top);
|
|
10281
10401
|
};
|
|
10282
10402
|
return SimpleSpriteAssembler1;
|
|
10283
|
-
}(),
|
|
10284
|
-
|
|
10285
|
-
|
|
10286
|
-
|
|
10287
|
-
|
|
10288
|
-
|
|
10289
|
-
|
|
10290
|
-
|
|
10403
|
+
}(), function() {
|
|
10404
|
+
_SimpleSpriteAssembler._rectangleTriangles = [
|
|
10405
|
+
0,
|
|
10406
|
+
1,
|
|
10407
|
+
2,
|
|
10408
|
+
2,
|
|
10409
|
+
1,
|
|
10410
|
+
3
|
|
10411
|
+
];
|
|
10412
|
+
}(), function() {
|
|
10413
|
+
_SimpleSpriteAssembler._worldMatrix = new miniprogram.Matrix();
|
|
10414
|
+
}(), _SimpleSpriteAssembler);
|
|
10291
10415
|
SimpleSpriteAssembler = __decorate([
|
|
10292
10416
|
StaticInterfaceImplement()
|
|
10293
10417
|
], SimpleSpriteAssembler);
|
|
@@ -10372,10 +10496,10 @@ SimpleSpriteAssembler = __decorate([
|
|
|
10372
10496
|
_this._flipY = false;
|
|
10373
10497
|
_this._alphaCutoff = 0.5;
|
|
10374
10498
|
_this._renderData = new RenderData2D(4, [], []);
|
|
10375
|
-
SimpleSpriteAssembler.resetData(
|
|
10499
|
+
SimpleSpriteAssembler.resetData(_assert_this_initialized(_this));
|
|
10376
10500
|
_this.setMaterial(_this._engine._spriteMaskDefaultMaterial);
|
|
10377
10501
|
_this.shaderData.setFloat(SpriteMask._alphaCutoffProperty, _this._alphaCutoff);
|
|
10378
|
-
_this._onSpriteChange = _this._onSpriteChange.bind(
|
|
10502
|
+
_this._onSpriteChange = _this._onSpriteChange.bind(_assert_this_initialized(_this));
|
|
10379
10503
|
return _this;
|
|
10380
10504
|
}
|
|
10381
10505
|
var _proto = SpriteMask.prototype;
|
|
@@ -10443,7 +10567,7 @@ SimpleSpriteAssembler = __decorate([
|
|
|
10443
10567
|
break;
|
|
10444
10568
|
}
|
|
10445
10569
|
};
|
|
10446
|
-
|
|
10570
|
+
_create_class(SpriteMask, [
|
|
10447
10571
|
{
|
|
10448
10572
|
key: "width",
|
|
10449
10573
|
get: /**
|
|
@@ -10545,8 +10669,12 @@ SimpleSpriteAssembler = __decorate([
|
|
|
10545
10669
|
]);
|
|
10546
10670
|
return SpriteMask;
|
|
10547
10671
|
}(exports.Renderer);
|
|
10548
|
-
|
|
10549
|
-
/** @internal */ SpriteMask.
|
|
10672
|
+
(function() {
|
|
10673
|
+
/** @internal */ SpriteMask._textureProperty = Shader.getPropertyByName("u_maskTexture");
|
|
10674
|
+
})();
|
|
10675
|
+
(function() {
|
|
10676
|
+
/** @internal */ SpriteMask._alphaCutoffProperty = Shader.getPropertyByName("u_maskAlphaCutoff");
|
|
10677
|
+
})();
|
|
10550
10678
|
__decorate([
|
|
10551
10679
|
assignmentClone
|
|
10552
10680
|
], SpriteMask.prototype, "influenceLayers", void 0);
|
|
@@ -10752,7 +10880,7 @@ var BufferUtil = /*#__PURE__*/ function() {
|
|
|
10752
10880
|
this._glElementInfo = BufferUtil._getElementInfo(this.format);
|
|
10753
10881
|
this._instanceStepRate = Math.floor(instanceStepRate);
|
|
10754
10882
|
}
|
|
10755
|
-
|
|
10883
|
+
_create_class(VertexElement, [
|
|
10756
10884
|
{
|
|
10757
10885
|
key: "semantic",
|
|
10758
10886
|
get: /**
|
|
@@ -10912,7 +11040,7 @@ var BufferUtil = /*#__PURE__*/ function() {
|
|
|
10912
11040
|
gl.bufferData(this._glBindTarget, dataLength, this._glBufferUsage);
|
|
10913
11041
|
this._byteLength = dataLength;
|
|
10914
11042
|
};
|
|
10915
|
-
|
|
11043
|
+
_create_class(Buffer, [
|
|
10916
11044
|
{
|
|
10917
11045
|
key: "type",
|
|
10918
11046
|
get: /**
|
|
@@ -10961,7 +11089,7 @@ var BufferUtil = /*#__PURE__*/ function() {
|
|
|
10961
11089
|
this._buffer = buffer;
|
|
10962
11090
|
this._format = format;
|
|
10963
11091
|
}
|
|
10964
|
-
|
|
11092
|
+
_create_class(IndexBufferBinding, [
|
|
10965
11093
|
{
|
|
10966
11094
|
key: "buffer",
|
|
10967
11095
|
get: /**
|
|
@@ -11010,8 +11138,8 @@ var BufferUtil = /*#__PURE__*/ function() {
|
|
|
11010
11138
|
_this._bounds = new miniprogram.BoundingBox();
|
|
11011
11139
|
_this._subMeshes = [];
|
|
11012
11140
|
_this.name = name;
|
|
11013
|
-
_this._platformPrimitive = _this._engine._hardwareRenderer.createPlatformPrimitive(
|
|
11014
|
-
_this._onBoundsChanged = _this._onBoundsChanged.bind(
|
|
11141
|
+
_this._platformPrimitive = _this._engine._hardwareRenderer.createPlatformPrimitive(_assert_this_initialized(_this));
|
|
11142
|
+
_this._onBoundsChanged = _this._onBoundsChanged.bind(_assert_this_initialized(_this));
|
|
11015
11143
|
var bounds = _this._bounds;
|
|
11016
11144
|
// @ts-ignore
|
|
11017
11145
|
bounds.min._onValueChanged = _this._onBoundsChanged;
|
|
@@ -11128,7 +11256,7 @@ var BufferUtil = /*#__PURE__*/ function() {
|
|
|
11128
11256
|
_proto._onBoundsChanged = function _onBoundsChanged() {
|
|
11129
11257
|
this._updateFlagManager.dispatch(0x1);
|
|
11130
11258
|
};
|
|
11131
|
-
|
|
11259
|
+
_create_class(Mesh, [
|
|
11132
11260
|
{
|
|
11133
11261
|
key: "bounds",
|
|
11134
11262
|
get: /**
|
|
@@ -11174,7 +11302,7 @@ var MeshModifyFlags;
|
|
|
11174
11302
|
this._buffer = buffer;
|
|
11175
11303
|
this._stride = stride;
|
|
11176
11304
|
}
|
|
11177
|
-
|
|
11305
|
+
_create_class(VertexBufferBinding, [
|
|
11178
11306
|
{
|
|
11179
11307
|
key: "buffer",
|
|
11180
11308
|
get: /**
|
|
@@ -11620,13 +11748,27 @@ var MeshModifyFlags;
|
|
|
11620
11748
|
};
|
|
11621
11749
|
return BlendShapeManager;
|
|
11622
11750
|
}();
|
|
11623
|
-
|
|
11624
|
-
BlendShapeManager.
|
|
11625
|
-
|
|
11626
|
-
|
|
11627
|
-
BlendShapeManager.
|
|
11628
|
-
|
|
11629
|
-
|
|
11751
|
+
(function() {
|
|
11752
|
+
BlendShapeManager._blendShapeMacro = Shader.getMacroByName("OASIS_BLENDSHAPE");
|
|
11753
|
+
})();
|
|
11754
|
+
(function() {
|
|
11755
|
+
BlendShapeManager._blendShapeTextureMacro = Shader.getMacroByName("OASIS_BLENDSHAPE_TEXTURE");
|
|
11756
|
+
})();
|
|
11757
|
+
(function() {
|
|
11758
|
+
BlendShapeManager._blendShapeNormalMacro = Shader.getMacroByName("OASIS_BLENDSHAPE_NORMAL");
|
|
11759
|
+
})();
|
|
11760
|
+
(function() {
|
|
11761
|
+
BlendShapeManager._blendShapeTangentMacro = Shader.getMacroByName("OASIS_BLENDSHAPE_TANGENT");
|
|
11762
|
+
})();
|
|
11763
|
+
(function() {
|
|
11764
|
+
BlendShapeManager._blendShapeWeightsProperty = Shader.getPropertyByName("u_blendShapeWeights");
|
|
11765
|
+
})();
|
|
11766
|
+
(function() {
|
|
11767
|
+
BlendShapeManager._blendShapeTextureProperty = Shader.getPropertyByName("u_blendShapeTexture");
|
|
11768
|
+
})();
|
|
11769
|
+
(function() {
|
|
11770
|
+
BlendShapeManager._blendShapeTextureInfoProperty = Shader.getPropertyByName("u_blendShapeTextureInfo");
|
|
11771
|
+
})();
|
|
11630
11772
|
|
|
11631
11773
|
/**
|
|
11632
11774
|
* Vertex attribute types of a vertex in a ModelMesh.
|
|
@@ -11683,7 +11825,7 @@ BlendShapeManager._blendShapeTextureInfoProperty = Shader.getPropertyByName("u_b
|
|
|
11683
11825
|
_this._customVertexElements = [];
|
|
11684
11826
|
_this._vertexCountChanged = false;
|
|
11685
11827
|
_this.name = name;
|
|
11686
|
-
_this._blendShapeManager = new BlendShapeManager(engine,
|
|
11828
|
+
_this._blendShapeManager = new BlendShapeManager(engine, _assert_this_initialized(_this));
|
|
11687
11829
|
return _this;
|
|
11688
11830
|
}
|
|
11689
11831
|
var _proto = ModelMesh.prototype;
|
|
@@ -12633,7 +12775,7 @@ BlendShapeManager._blendShapeTextureInfoProperty = Shader.getPropertyByName("u_b
|
|
|
12633
12775
|
this._uv7 = null;
|
|
12634
12776
|
this._blendShapeManager._releaseMemoryCache();
|
|
12635
12777
|
};
|
|
12636
|
-
|
|
12778
|
+
_create_class(ModelMesh, [
|
|
12637
12779
|
{
|
|
12638
12780
|
key: "accessible",
|
|
12639
12781
|
get: /**
|
|
@@ -12701,11 +12843,21 @@ BlendShapeManager._blendShapeTextureInfoProperty = Shader.getPropertyByName("u_b
|
|
|
12701
12843
|
]);
|
|
12702
12844
|
return ModelMesh;
|
|
12703
12845
|
}(Mesh);
|
|
12704
|
-
|
|
12705
|
-
ModelMesh.
|
|
12706
|
-
|
|
12707
|
-
|
|
12708
|
-
ModelMesh.
|
|
12846
|
+
(function() {
|
|
12847
|
+
ModelMesh._tempVec0 = new miniprogram.Vector3();
|
|
12848
|
+
})();
|
|
12849
|
+
(function() {
|
|
12850
|
+
ModelMesh._tempVec1 = new miniprogram.Vector3();
|
|
12851
|
+
})();
|
|
12852
|
+
(function() {
|
|
12853
|
+
ModelMesh._tempVec2 = new miniprogram.Vector3();
|
|
12854
|
+
})();
|
|
12855
|
+
(function() {
|
|
12856
|
+
ModelMesh._tempVec3 = new miniprogram.Vector3();
|
|
12857
|
+
})();
|
|
12858
|
+
(function() {
|
|
12859
|
+
ModelMesh._tempVec4 = new miniprogram.Vector3();
|
|
12860
|
+
})();
|
|
12709
12861
|
var VertexChangedFlags;
|
|
12710
12862
|
(function(VertexChangedFlags) {
|
|
12711
12863
|
VertexChangedFlags[VertexChangedFlags["Position"] = 0x1] = "Position";
|
|
@@ -12748,7 +12900,7 @@ var VertexChangedFlags;
|
|
|
12748
12900
|
function MeshRenderer(entity) {
|
|
12749
12901
|
var _this;
|
|
12750
12902
|
_this = Renderer.call(this, entity) || this;
|
|
12751
|
-
_this._onMeshChanged = _this._onMeshChanged.bind(
|
|
12903
|
+
_this._onMeshChanged = _this._onMeshChanged.bind(_assert_this_initialized(_this));
|
|
12752
12904
|
return _this;
|
|
12753
12905
|
}
|
|
12754
12906
|
var _proto = MeshRenderer.prototype;
|
|
@@ -12851,7 +13003,7 @@ var VertexChangedFlags;
|
|
|
12851
13003
|
type & MeshModifyFlags.Bounds && (this._dirtyUpdateFlag |= RendererUpdateFlags.WorldVolume);
|
|
12852
13004
|
type & MeshModifyFlags.VertexElements && (this._dirtyUpdateFlag |= 0x2);
|
|
12853
13005
|
};
|
|
12854
|
-
|
|
13006
|
+
_create_class(MeshRenderer, [
|
|
12855
13007
|
{
|
|
12856
13008
|
key: "mesh",
|
|
12857
13009
|
get: /**
|
|
@@ -12868,11 +13020,21 @@ var VertexChangedFlags;
|
|
|
12868
13020
|
]);
|
|
12869
13021
|
return MeshRenderer;
|
|
12870
13022
|
}(exports.Renderer);
|
|
12871
|
-
|
|
12872
|
-
MeshRenderer.
|
|
12873
|
-
|
|
12874
|
-
|
|
12875
|
-
MeshRenderer.
|
|
13023
|
+
(function() {
|
|
13024
|
+
MeshRenderer._uvMacro = Shader.getMacroByName("O3_HAS_UV");
|
|
13025
|
+
})();
|
|
13026
|
+
(function() {
|
|
13027
|
+
MeshRenderer._uv1Macro = Shader.getMacroByName("O3_HAS_UV1");
|
|
13028
|
+
})();
|
|
13029
|
+
(function() {
|
|
13030
|
+
MeshRenderer._normalMacro = Shader.getMacroByName("O3_HAS_NORMAL");
|
|
13031
|
+
})();
|
|
13032
|
+
(function() {
|
|
13033
|
+
MeshRenderer._tangentMacro = Shader.getMacroByName("O3_HAS_TANGENT");
|
|
13034
|
+
})();
|
|
13035
|
+
(function() {
|
|
13036
|
+
MeshRenderer._vertexColorMacro = Shader.getMacroByName("O3_HAS_VERTEXCOLOR");
|
|
13037
|
+
})();
|
|
12876
13038
|
__decorate([
|
|
12877
13039
|
ignoreClone
|
|
12878
13040
|
], MeshRenderer.prototype, "_mesh", void 0);
|
|
@@ -12975,7 +13137,7 @@ var rePropName = RegExp(// Match anything that isn't a dot or bracket.
|
|
|
12975
13137
|
// For renderer is "ANGLE (AMD, AMD Radeon(TM) Graphics Direct3011 vs_5_0 ps_5_0, D3011)", compile shader si very slow because of max uniform is 4096.
|
|
12976
13138
|
maxVertexUniformVectors = Math.min(maxVertexUniformVectors, 256);
|
|
12977
13139
|
_this._maxVertexUniformVectors = maxVertexUniformVectors;
|
|
12978
|
-
_this._onLocalBoundsChanged = _this._onLocalBoundsChanged.bind(
|
|
13140
|
+
_this._onLocalBoundsChanged = _this._onLocalBoundsChanged.bind(_assert_this_initialized(_this));
|
|
12979
13141
|
var localBounds = _this._localBounds;
|
|
12980
13142
|
// @ts-ignore
|
|
12981
13143
|
localBounds.min._onValueChanged = _this._onLocalBoundsChanged;
|
|
@@ -13173,7 +13335,7 @@ var rePropName = RegExp(// Match anything that isn't a dot or bracket.
|
|
|
13173
13335
|
_proto._onLocalBoundsChanged = function _onLocalBoundsChanged() {
|
|
13174
13336
|
this._dirtyUpdateFlag |= RendererUpdateFlags.WorldVolume;
|
|
13175
13337
|
};
|
|
13176
|
-
|
|
13338
|
+
_create_class(SkinnedMeshRenderer, [
|
|
13177
13339
|
{
|
|
13178
13340
|
key: "blendShapeWeights",
|
|
13179
13341
|
get: /**
|
|
@@ -13238,10 +13400,18 @@ var rePropName = RegExp(// Match anything that isn't a dot or bracket.
|
|
|
13238
13400
|
]);
|
|
13239
13401
|
return SkinnedMeshRenderer;
|
|
13240
13402
|
}(MeshRenderer);
|
|
13241
|
-
|
|
13242
|
-
SkinnedMeshRenderer.
|
|
13243
|
-
|
|
13244
|
-
|
|
13403
|
+
(function() {
|
|
13404
|
+
SkinnedMeshRenderer._tempMatrix = new miniprogram.Matrix();
|
|
13405
|
+
})();
|
|
13406
|
+
(function() {
|
|
13407
|
+
SkinnedMeshRenderer._jointCountProperty = Shader.getPropertyByName("u_jointCount");
|
|
13408
|
+
})();
|
|
13409
|
+
(function() {
|
|
13410
|
+
SkinnedMeshRenderer._jointSamplerProperty = Shader.getPropertyByName("u_jointSampler");
|
|
13411
|
+
})();
|
|
13412
|
+
(function() {
|
|
13413
|
+
SkinnedMeshRenderer._jointMatrixProperty = Shader.getPropertyByName("u_jointMatrix");
|
|
13414
|
+
})();
|
|
13245
13415
|
__decorate([
|
|
13246
13416
|
ignoreClone
|
|
13247
13417
|
], SkinnedMeshRenderer.prototype, "_hasInitSkin", void 0);
|
|
@@ -14007,7 +14177,7 @@ __decorate([
|
|
|
14007
14177
|
}
|
|
14008
14178
|
this._setIndexBufferBinding(binding);
|
|
14009
14179
|
};
|
|
14010
|
-
|
|
14180
|
+
_create_class(BufferMesh, [
|
|
14011
14181
|
{
|
|
14012
14182
|
key: "instanceCount",
|
|
14013
14183
|
get: /**
|
|
@@ -14121,7 +14291,7 @@ __decorate([
|
|
|
14121
14291
|
this._layoutChangeManager.dispatch(0, this);
|
|
14122
14292
|
}
|
|
14123
14293
|
};
|
|
14124
|
-
|
|
14294
|
+
_create_class(BlendShape, [
|
|
14125
14295
|
{
|
|
14126
14296
|
key: "frames",
|
|
14127
14297
|
get: /**
|
|
@@ -14279,8 +14449,12 @@ var Basic2DBatcher = /*#__PURE__*/ function() {
|
|
|
14279
14449
|
};
|
|
14280
14450
|
return Basic2DBatcher;
|
|
14281
14451
|
}();
|
|
14282
|
-
|
|
14283
|
-
Basic2DBatcher.
|
|
14452
|
+
(function() {
|
|
14453
|
+
/** The maximum number of vertex. */ Basic2DBatcher.MAX_VERTEX_COUNT = 4096;
|
|
14454
|
+
})();
|
|
14455
|
+
(function() {
|
|
14456
|
+
Basic2DBatcher._canUploadSameBuffer = true;
|
|
14457
|
+
})();
|
|
14284
14458
|
|
|
14285
14459
|
var SpriteMaskBatcher = /*#__PURE__*/ function(Basic2DBatcher) {
|
|
14286
14460
|
_inherits(SpriteMaskBatcher, Basic2DBatcher);
|
|
@@ -14495,9 +14669,15 @@ var TextRenderElement = /*#__PURE__*/ function(RenderElement) {
|
|
|
14495
14669
|
};
|
|
14496
14670
|
return Sky;
|
|
14497
14671
|
}();
|
|
14498
|
-
|
|
14499
|
-
Sky.
|
|
14500
|
-
|
|
14672
|
+
(function() {
|
|
14673
|
+
Sky._epsilon = 1e-6;
|
|
14674
|
+
})();
|
|
14675
|
+
(function() {
|
|
14676
|
+
Sky._viewProjMatrix = new miniprogram.Matrix();
|
|
14677
|
+
})();
|
|
14678
|
+
(function() {
|
|
14679
|
+
Sky._projectionMatrix = new miniprogram.Matrix(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, Sky._epsilon - 1, -1, 0, 0, 0, 0);
|
|
14680
|
+
})();
|
|
14501
14681
|
|
|
14502
14682
|
/**
|
|
14503
14683
|
* Background of scene.
|
|
@@ -14579,7 +14759,7 @@ Sky._projectionMatrix = new miniprogram.Matrix(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, Sky
|
|
|
14579
14759
|
mesh.addSubMesh(0, indices.length);
|
|
14580
14760
|
return mesh;
|
|
14581
14761
|
};
|
|
14582
|
-
|
|
14762
|
+
_create_class(Background, [
|
|
14583
14763
|
{
|
|
14584
14764
|
key: "texture",
|
|
14585
14765
|
get: /**
|
|
@@ -14747,7 +14927,7 @@ Sky._projectionMatrix = new miniprogram.Matrix(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, Sky
|
|
|
14747
14927
|
out[25] = src[25] * 0.429042;
|
|
14748
14928
|
out[26] = src[26] * 0.429042;
|
|
14749
14929
|
};
|
|
14750
|
-
|
|
14930
|
+
_create_class(AmbientLight, [
|
|
14751
14931
|
{
|
|
14752
14932
|
key: "specularTextureDecodeRGBM",
|
|
14753
14933
|
get: /**
|
|
@@ -14858,15 +15038,33 @@ Sky._projectionMatrix = new miniprogram.Matrix(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, Sky
|
|
|
14858
15038
|
]);
|
|
14859
15039
|
return AmbientLight;
|
|
14860
15040
|
}();
|
|
14861
|
-
|
|
14862
|
-
AmbientLight.
|
|
14863
|
-
|
|
14864
|
-
|
|
14865
|
-
AmbientLight.
|
|
14866
|
-
|
|
14867
|
-
|
|
14868
|
-
AmbientLight.
|
|
14869
|
-
|
|
15041
|
+
(function() {
|
|
15042
|
+
AmbientLight._shMacro = Shader.getMacroByName("O3_USE_SH");
|
|
15043
|
+
})();
|
|
15044
|
+
(function() {
|
|
15045
|
+
AmbientLight._specularMacro = Shader.getMacroByName("O3_USE_SPECULAR_ENV");
|
|
15046
|
+
})();
|
|
15047
|
+
(function() {
|
|
15048
|
+
AmbientLight._decodeRGBMMacro = Shader.getMacroByName("O3_DECODE_ENV_RGBM");
|
|
15049
|
+
})();
|
|
15050
|
+
(function() {
|
|
15051
|
+
AmbientLight._diffuseColorProperty = Shader.getPropertyByName("u_envMapLight.diffuse");
|
|
15052
|
+
})();
|
|
15053
|
+
(function() {
|
|
15054
|
+
AmbientLight._diffuseSHProperty = Shader.getPropertyByName("u_env_sh");
|
|
15055
|
+
})();
|
|
15056
|
+
(function() {
|
|
15057
|
+
AmbientLight._diffuseIntensityProperty = Shader.getPropertyByName("u_envMapLight.diffuseIntensity");
|
|
15058
|
+
})();
|
|
15059
|
+
(function() {
|
|
15060
|
+
AmbientLight._specularTextureProperty = Shader.getPropertyByName("u_env_specularSampler");
|
|
15061
|
+
})();
|
|
15062
|
+
(function() {
|
|
15063
|
+
AmbientLight._specularIntensityProperty = Shader.getPropertyByName("u_envMapLight.specularIntensity");
|
|
15064
|
+
})();
|
|
15065
|
+
(function() {
|
|
15066
|
+
AmbientLight._mipLevelProperty = Shader.getPropertyByName("u_envMapLight.mipMapLevel");
|
|
15067
|
+
})();
|
|
14870
15068
|
|
|
14871
15069
|
/**
|
|
14872
15070
|
* Scene.
|
|
@@ -14897,7 +15095,7 @@ AmbientLight._mipLevelProperty = Shader.getPropertyByName("u_envMapLight.mipMapL
|
|
|
14897
15095
|
var shaderData = _this.shaderData;
|
|
14898
15096
|
shaderData._addRefCount(1);
|
|
14899
15097
|
_this.ambientLight = new AmbientLight();
|
|
14900
|
-
engine.sceneManager._allScenes.push(
|
|
15098
|
+
engine.sceneManager._allScenes.push(_assert_this_initialized(_this));
|
|
14901
15099
|
shaderData.enableMacro("OASIS_FOG_MODE", _this._fogMode.toString());
|
|
14902
15100
|
shaderData.enableMacro("CASCADED_COUNT", _this.shadowCascades.toString());
|
|
14903
15101
|
shaderData.setColor(Scene._fogColorProperty, _this._fogColor);
|
|
@@ -15104,7 +15302,7 @@ AmbientLight._mipLevelProperty = Shader.getPropertyByName("u_envMapLight.mipMapL
|
|
|
15104
15302
|
this._fogParams.z = density / Math.LN2;
|
|
15105
15303
|
this._fogParams.w = density / Math.sqrt(Math.LN2);
|
|
15106
15304
|
};
|
|
15107
|
-
|
|
15305
|
+
_create_class(Scene, [
|
|
15108
15306
|
{
|
|
15109
15307
|
key: "shadowCascades",
|
|
15110
15308
|
get: /**
|
|
@@ -15232,8 +15430,12 @@ AmbientLight._mipLevelProperty = Shader.getPropertyByName("u_envMapLight.mipMapL
|
|
|
15232
15430
|
]);
|
|
15233
15431
|
return Scene;
|
|
15234
15432
|
}(EngineObject);
|
|
15235
|
-
|
|
15236
|
-
Scene.
|
|
15433
|
+
(function() {
|
|
15434
|
+
Scene._fogColorProperty = Shader.getPropertyByName("oasis_FogColor");
|
|
15435
|
+
})();
|
|
15436
|
+
(function() {
|
|
15437
|
+
Scene._fogParamsProperty = Shader.getPropertyByName("oasis_FogParams");
|
|
15438
|
+
})();
|
|
15237
15439
|
|
|
15238
15440
|
/**
|
|
15239
15441
|
* Scene manager.
|
|
@@ -15281,7 +15483,7 @@ Scene._fogParamsProperty = Shader.getPropertyByName("oasis_FogParams");
|
|
|
15281
15483
|
}
|
|
15282
15484
|
allScenes.length = 0;
|
|
15283
15485
|
};
|
|
15284
|
-
|
|
15486
|
+
_create_class(SceneManager, [
|
|
15285
15487
|
{
|
|
15286
15488
|
key: "activeScene",
|
|
15287
15489
|
get: /**
|
|
@@ -15452,8 +15654,8 @@ ShaderPool.init();
|
|
|
15452
15654
|
/** @internal */ _this._canSpriteBatch = true;
|
|
15453
15655
|
/** @internal @todo: temporary solution */ _this._macroCollection = new ShaderMacroCollection();
|
|
15454
15656
|
_this._settings = {};
|
|
15455
|
-
_this._resourceManager = new ResourceManager(
|
|
15456
|
-
_this._sceneManager = new SceneManager(
|
|
15657
|
+
_this._resourceManager = new ResourceManager(_assert_this_initialized(_this));
|
|
15658
|
+
_this._sceneManager = new SceneManager(_assert_this_initialized(_this));
|
|
15457
15659
|
_this._vSyncCount = 1;
|
|
15458
15660
|
_this._targetFrameRate = 60;
|
|
15459
15661
|
_this._time = new Time();
|
|
@@ -15477,25 +15679,25 @@ ShaderPool.init();
|
|
|
15477
15679
|
};
|
|
15478
15680
|
_this._hardwareRenderer = hardwareRenderer;
|
|
15479
15681
|
_this._hardwareRenderer.init(canvas);
|
|
15480
|
-
_this.physicsManager = new PhysicsManager(
|
|
15682
|
+
_this.physicsManager = new PhysicsManager(_assert_this_initialized(_this));
|
|
15481
15683
|
_this._canvas = canvas;
|
|
15482
|
-
_this._sceneManager.activeScene = new Scene(
|
|
15483
|
-
_this._spriteMaskManager = new SpriteMaskManager(
|
|
15684
|
+
_this._sceneManager.activeScene = new Scene(_assert_this_initialized(_this), "DefaultScene");
|
|
15685
|
+
_this._spriteMaskManager = new SpriteMaskManager(_assert_this_initialized(_this));
|
|
15484
15686
|
_this._spriteDefaultMaterial = _this._createSpriteMaterial();
|
|
15485
15687
|
_this._spriteMaskDefaultMaterial = _this._createSpriteMaskMaterial();
|
|
15486
|
-
_this._textDefaultFont = Font.createFromOS(
|
|
15688
|
+
_this._textDefaultFont = Font.createFromOS(_assert_this_initialized(_this), "Arial");
|
|
15487
15689
|
_this._textDefaultFont.isGCIgnored = false;
|
|
15488
|
-
_this.inputManager = new InputManager(
|
|
15690
|
+
_this.inputManager = new InputManager(_assert_this_initialized(_this));
|
|
15489
15691
|
var magentaPixel = new Uint8Array([
|
|
15490
15692
|
255,
|
|
15491
15693
|
0,
|
|
15492
15694
|
255,
|
|
15493
15695
|
255
|
|
15494
15696
|
]);
|
|
15495
|
-
var magentaTexture2D = new Texture2D(
|
|
15697
|
+
var magentaTexture2D = new Texture2D(_assert_this_initialized(_this), 1, 1, exports.TextureFormat.R8G8B8A8, false);
|
|
15496
15698
|
magentaTexture2D.setPixelBuffer(magentaPixel);
|
|
15497
15699
|
magentaTexture2D.isGCIgnored = true;
|
|
15498
|
-
var magentaTextureCube = new TextureCube(
|
|
15700
|
+
var magentaTextureCube = new TextureCube(_assert_this_initialized(_this), 1, exports.TextureFormat.R8G8B8A8, false);
|
|
15499
15701
|
magentaTextureCube.setPixelBuffer(exports.TextureCubeFace.PositiveX, magentaPixel);
|
|
15500
15702
|
magentaTextureCube.setPixelBuffer(exports.TextureCubeFace.NegativeX, magentaPixel);
|
|
15501
15703
|
magentaTextureCube.setPixelBuffer(exports.TextureCubeFace.PositiveY, magentaPixel);
|
|
@@ -15506,22 +15708,22 @@ ShaderPool.init();
|
|
|
15506
15708
|
if (!hardwareRenderer.canIUse(exports.GLCapabilityType.depthTexture)) {
|
|
15507
15709
|
_this._macroCollection.enable(Engine._noDepthTextureMacro);
|
|
15508
15710
|
} else {
|
|
15509
|
-
var depthTexture2D = new Texture2D(
|
|
15711
|
+
var depthTexture2D = new Texture2D(_assert_this_initialized(_this), 1, 1, exports.TextureFormat.Depth16, false);
|
|
15510
15712
|
depthTexture2D.isGCIgnored = true;
|
|
15511
15713
|
_this._depthTexture2D = depthTexture2D;
|
|
15512
15714
|
}
|
|
15513
15715
|
_this._magentaTexture2D = magentaTexture2D;
|
|
15514
15716
|
_this._magentaTextureCube = magentaTextureCube;
|
|
15515
15717
|
if (hardwareRenderer.isWebGL2) {
|
|
15516
|
-
var magentaTexture2DArray = new Texture2DArray(
|
|
15718
|
+
var magentaTexture2DArray = new Texture2DArray(_assert_this_initialized(_this), 1, 1, 1, exports.TextureFormat.R8G8B8A8, false);
|
|
15517
15719
|
magentaTexture2DArray.setPixelBuffer(0, magentaPixel);
|
|
15518
15720
|
magentaTexture2DArray.isGCIgnored = true;
|
|
15519
15721
|
_this._magentaTexture2DArray = magentaTexture2DArray;
|
|
15520
15722
|
}
|
|
15521
|
-
var magentaMaterial = new Material(
|
|
15723
|
+
var magentaMaterial = new Material(_assert_this_initialized(_this), Shader.find("unlit"));
|
|
15522
15724
|
magentaMaterial.shaderData.setColor("u_baseColor", new Color(1.0, 0.0, 1.01, 1.0));
|
|
15523
15725
|
_this._magentaMaterial = magentaMaterial;
|
|
15524
|
-
var backgroundTextureMaterial = new Material(
|
|
15726
|
+
var backgroundTextureMaterial = new Material(_assert_this_initialized(_this), Shader.find("background-texture"));
|
|
15525
15727
|
backgroundTextureMaterial.isGCIgnored = true;
|
|
15526
15728
|
backgroundTextureMaterial.renderState.depthState.compareFunction = exports.CompareFunction.LessEqual;
|
|
15527
15729
|
_this._backgroundTextureMaterial = backgroundTextureMaterial;
|
|
@@ -15692,7 +15894,7 @@ ShaderPool.init();
|
|
|
15692
15894
|
material.isGCIgnored = true;
|
|
15693
15895
|
return material;
|
|
15694
15896
|
};
|
|
15695
|
-
|
|
15897
|
+
_create_class(Engine, [
|
|
15696
15898
|
{
|
|
15697
15899
|
key: "settings",
|
|
15698
15900
|
get: /**
|
|
@@ -15780,9 +15982,15 @@ ShaderPool.init();
|
|
|
15780
15982
|
]);
|
|
15781
15983
|
return Engine;
|
|
15782
15984
|
}(EventDispatcher);
|
|
15783
|
-
|
|
15784
|
-
/** @internal */ Engine.
|
|
15785
|
-
|
|
15985
|
+
(function() {
|
|
15986
|
+
/** @internal */ Engine._gammaMacro = Shader.getMacroByName("OASIS_COLORSPACE_GAMMA");
|
|
15987
|
+
})();
|
|
15988
|
+
(function() {
|
|
15989
|
+
/** @internal */ Engine._noDepthTextureMacro = Shader.getMacroByName("OASIS_NO_DEPTH_TEXTURE");
|
|
15990
|
+
})();
|
|
15991
|
+
(function() {
|
|
15992
|
+
/** @internal Conversion of space units to pixel units for 2D. */ Engine._pixelsPerUnit = 100;
|
|
15993
|
+
})();
|
|
15786
15994
|
|
|
15787
15995
|
/**
|
|
15788
15996
|
* Script class, used for logic writing.
|
|
@@ -16097,7 +16305,9 @@ __decorate([
|
|
|
16097
16305
|
};
|
|
16098
16306
|
return SpriteBatcher;
|
|
16099
16307
|
}(Basic2DBatcher);
|
|
16100
|
-
|
|
16308
|
+
(function() {
|
|
16309
|
+
SpriteBatcher._textureProperty = Shader.getPropertyByName("u_spriteTexture");
|
|
16310
|
+
})();
|
|
16101
16311
|
|
|
16102
16312
|
/**
|
|
16103
16313
|
* Render queue.
|
|
@@ -16595,227 +16805,247 @@ var /**
|
|
|
16595
16805
|
};
|
|
16596
16806
|
return ShadowUtils;
|
|
16597
16807
|
}();
|
|
16598
|
-
|
|
16599
|
-
|
|
16600
|
-
|
|
16601
|
-
|
|
16602
|
-
|
|
16603
|
-
new miniprogram.
|
|
16604
|
-
|
|
16605
|
-
|
|
16606
|
-
|
|
16607
|
-
|
|
16608
|
-
|
|
16609
|
-
|
|
16610
|
-
|
|
16611
|
-
|
|
16612
|
-
|
|
16613
|
-
|
|
16614
|
-
|
|
16615
|
-
|
|
16616
|
-
|
|
16617
|
-
|
|
16618
|
-
|
|
16619
|
-
|
|
16620
|
-
|
|
16621
|
-
|
|
16622
|
-
|
|
16623
|
-
|
|
16624
|
-
|
|
16625
|
-
|
|
16626
|
-
|
|
16627
|
-
|
|
16628
|
-
|
|
16629
|
-
|
|
16630
|
-
|
|
16631
|
-
miniprogram.FrustumFace.Top,
|
|
16632
|
-
miniprogram.FrustumFace.Bottom
|
|
16633
|
-
],
|
|
16634
|
-
[
|
|
16635
|
-
miniprogram.FrustumFace.Near,
|
|
16636
|
-
miniprogram.FrustumFace.Far,
|
|
16637
|
-
miniprogram.FrustumFace.Top,
|
|
16638
|
-
miniprogram.FrustumFace.Bottom
|
|
16639
|
-
],
|
|
16640
|
-
[
|
|
16641
|
-
miniprogram.FrustumFace.Near,
|
|
16642
|
-
miniprogram.FrustumFace.Far,
|
|
16643
|
-
miniprogram.FrustumFace.Left,
|
|
16644
|
-
miniprogram.FrustumFace.Right
|
|
16645
|
-
],
|
|
16646
|
-
[
|
|
16647
|
-
miniprogram.FrustumFace.Near,
|
|
16648
|
-
miniprogram.FrustumFace.Far,
|
|
16649
|
-
miniprogram.FrustumFace.Left,
|
|
16650
|
-
miniprogram.FrustumFace.Right
|
|
16651
|
-
]
|
|
16652
|
-
];
|
|
16653
|
-
/** near, far, left, right, bottom, top */ ShadowUtils._frustumTwoPlaneCorners = [
|
|
16654
|
-
[
|
|
16655
|
-
// near, far, left, right, bottom, top
|
|
16656
|
-
[
|
|
16657
|
-
8,
|
|
16658
|
-
8
|
|
16659
|
-
],
|
|
16660
|
-
[
|
|
16661
|
-
8,
|
|
16662
|
-
8
|
|
16663
|
-
],
|
|
16664
|
-
[
|
|
16665
|
-
4,
|
|
16666
|
-
5
|
|
16667
|
-
],
|
|
16668
|
-
[
|
|
16669
|
-
6,
|
|
16670
|
-
7
|
|
16671
|
-
],
|
|
16672
|
-
[
|
|
16673
|
-
7,
|
|
16674
|
-
4
|
|
16675
|
-
],
|
|
16676
|
-
[
|
|
16677
|
-
5,
|
|
16678
|
-
6
|
|
16679
|
-
]
|
|
16680
|
-
],
|
|
16681
|
-
[
|
|
16682
|
-
// near, far, left, right, bottom, top
|
|
16683
|
-
[
|
|
16684
|
-
8,
|
|
16685
|
-
8
|
|
16686
|
-
],
|
|
16687
|
-
[
|
|
16688
|
-
8,
|
|
16689
|
-
8
|
|
16690
|
-
],
|
|
16691
|
-
[
|
|
16692
|
-
1,
|
|
16693
|
-
0
|
|
16694
|
-
],
|
|
16695
|
-
[
|
|
16696
|
-
3,
|
|
16697
|
-
2
|
|
16698
|
-
],
|
|
16699
|
-
[
|
|
16700
|
-
0,
|
|
16701
|
-
3
|
|
16702
|
-
],
|
|
16703
|
-
[
|
|
16704
|
-
2,
|
|
16705
|
-
1
|
|
16706
|
-
]
|
|
16707
|
-
],
|
|
16708
|
-
[
|
|
16709
|
-
// near, far, left, right, bottom, top
|
|
16710
|
-
[
|
|
16711
|
-
5,
|
|
16712
|
-
4
|
|
16713
|
-
],
|
|
16714
|
-
[
|
|
16715
|
-
0,
|
|
16716
|
-
1
|
|
16717
|
-
],
|
|
16718
|
-
[
|
|
16719
|
-
8,
|
|
16720
|
-
8
|
|
16721
|
-
],
|
|
16722
|
-
[
|
|
16723
|
-
8,
|
|
16724
|
-
8
|
|
16725
|
-
],
|
|
16726
|
-
[
|
|
16727
|
-
4,
|
|
16728
|
-
0
|
|
16729
|
-
],
|
|
16730
|
-
[
|
|
16731
|
-
1,
|
|
16732
|
-
5
|
|
16733
|
-
]
|
|
16734
|
-
],
|
|
16735
|
-
[
|
|
16736
|
-
// near, far, left, right, bottom, top
|
|
16737
|
-
[
|
|
16738
|
-
7,
|
|
16739
|
-
6
|
|
16740
|
-
],
|
|
16741
|
-
[
|
|
16742
|
-
2,
|
|
16743
|
-
3
|
|
16744
|
-
],
|
|
16745
|
-
[
|
|
16746
|
-
8,
|
|
16747
|
-
8
|
|
16748
|
-
],
|
|
16749
|
-
[
|
|
16750
|
-
8,
|
|
16751
|
-
8
|
|
16752
|
-
],
|
|
16753
|
-
[
|
|
16754
|
-
3,
|
|
16755
|
-
7
|
|
16756
|
-
],
|
|
16757
|
-
[
|
|
16758
|
-
6,
|
|
16759
|
-
2
|
|
16760
|
-
]
|
|
16761
|
-
],
|
|
16762
|
-
[
|
|
16763
|
-
// near, far, left, right, bottom, top
|
|
16808
|
+
(function() {
|
|
16809
|
+
ShadowUtils._tempMatrix0 = new miniprogram.Matrix();
|
|
16810
|
+
})();
|
|
16811
|
+
(function() {
|
|
16812
|
+
// prettier-ignore
|
|
16813
|
+
/** @internal */ ShadowUtils._shadowMapCoordMatrix = new miniprogram.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);
|
|
16814
|
+
})();
|
|
16815
|
+
(function() {
|
|
16816
|
+
ShadowUtils._frustumCorners = [
|
|
16817
|
+
new miniprogram.Vector3(),
|
|
16818
|
+
new miniprogram.Vector3(),
|
|
16819
|
+
new miniprogram.Vector3(),
|
|
16820
|
+
new miniprogram.Vector3(),
|
|
16821
|
+
new miniprogram.Vector3(),
|
|
16822
|
+
new miniprogram.Vector3(),
|
|
16823
|
+
new miniprogram.Vector3(),
|
|
16824
|
+
new miniprogram.Vector3()
|
|
16825
|
+
];
|
|
16826
|
+
})();
|
|
16827
|
+
(function() {
|
|
16828
|
+
ShadowUtils._adjustNearPlane = new miniprogram.Plane(new miniprogram.Vector3());
|
|
16829
|
+
})();
|
|
16830
|
+
(function() {
|
|
16831
|
+
ShadowUtils._adjustFarPlane = new miniprogram.Plane(new miniprogram.Vector3());
|
|
16832
|
+
})();
|
|
16833
|
+
(function() {
|
|
16834
|
+
ShadowUtils._backPlaneFaces = new Array(5);
|
|
16835
|
+
})();
|
|
16836
|
+
(function() {
|
|
16837
|
+
ShadowUtils._edgePlanePoint2 = new miniprogram.Vector3();
|
|
16838
|
+
})();
|
|
16839
|
+
(function() {
|
|
16840
|
+
/** near, far, left, right, bottom, top */ ShadowUtils._frustumPlaneNeighbors = [
|
|
16764
16841
|
[
|
|
16765
|
-
|
|
16766
|
-
|
|
16842
|
+
miniprogram.FrustumFace.Left,
|
|
16843
|
+
miniprogram.FrustumFace.Right,
|
|
16844
|
+
miniprogram.FrustumFace.Top,
|
|
16845
|
+
miniprogram.FrustumFace.Bottom
|
|
16767
16846
|
],
|
|
16768
16847
|
[
|
|
16769
|
-
|
|
16770
|
-
|
|
16848
|
+
miniprogram.FrustumFace.Left,
|
|
16849
|
+
miniprogram.FrustumFace.Right,
|
|
16850
|
+
miniprogram.FrustumFace.Top,
|
|
16851
|
+
miniprogram.FrustumFace.Bottom
|
|
16771
16852
|
],
|
|
16772
16853
|
[
|
|
16773
|
-
|
|
16774
|
-
|
|
16854
|
+
miniprogram.FrustumFace.Near,
|
|
16855
|
+
miniprogram.FrustumFace.Far,
|
|
16856
|
+
miniprogram.FrustumFace.Top,
|
|
16857
|
+
miniprogram.FrustumFace.Bottom
|
|
16775
16858
|
],
|
|
16776
16859
|
[
|
|
16777
|
-
|
|
16778
|
-
|
|
16860
|
+
miniprogram.FrustumFace.Near,
|
|
16861
|
+
miniprogram.FrustumFace.Far,
|
|
16862
|
+
miniprogram.FrustumFace.Top,
|
|
16863
|
+
miniprogram.FrustumFace.Bottom
|
|
16779
16864
|
],
|
|
16780
16865
|
[
|
|
16781
|
-
|
|
16782
|
-
|
|
16866
|
+
miniprogram.FrustumFace.Near,
|
|
16867
|
+
miniprogram.FrustumFace.Far,
|
|
16868
|
+
miniprogram.FrustumFace.Left,
|
|
16869
|
+
miniprogram.FrustumFace.Right
|
|
16783
16870
|
],
|
|
16784
16871
|
[
|
|
16785
|
-
|
|
16786
|
-
|
|
16872
|
+
miniprogram.FrustumFace.Near,
|
|
16873
|
+
miniprogram.FrustumFace.Far,
|
|
16874
|
+
miniprogram.FrustumFace.Left,
|
|
16875
|
+
miniprogram.FrustumFace.Right
|
|
16787
16876
|
]
|
|
16788
|
-
]
|
|
16789
|
-
|
|
16790
|
-
|
|
16877
|
+
];
|
|
16878
|
+
})();
|
|
16879
|
+
(function() {
|
|
16880
|
+
/** near, far, left, right, bottom, top */ ShadowUtils._frustumTwoPlaneCorners = [
|
|
16791
16881
|
[
|
|
16792
|
-
|
|
16793
|
-
|
|
16882
|
+
// near, far, left, right, bottom, top
|
|
16883
|
+
[
|
|
16884
|
+
8,
|
|
16885
|
+
8
|
|
16886
|
+
],
|
|
16887
|
+
[
|
|
16888
|
+
8,
|
|
16889
|
+
8
|
|
16890
|
+
],
|
|
16891
|
+
[
|
|
16892
|
+
4,
|
|
16893
|
+
5
|
|
16894
|
+
],
|
|
16895
|
+
[
|
|
16896
|
+
6,
|
|
16897
|
+
7
|
|
16898
|
+
],
|
|
16899
|
+
[
|
|
16900
|
+
7,
|
|
16901
|
+
4
|
|
16902
|
+
],
|
|
16903
|
+
[
|
|
16904
|
+
5,
|
|
16905
|
+
6
|
|
16906
|
+
]
|
|
16794
16907
|
],
|
|
16795
16908
|
[
|
|
16796
|
-
|
|
16797
|
-
|
|
16909
|
+
// near, far, left, right, bottom, top
|
|
16910
|
+
[
|
|
16911
|
+
8,
|
|
16912
|
+
8
|
|
16913
|
+
],
|
|
16914
|
+
[
|
|
16915
|
+
8,
|
|
16916
|
+
8
|
|
16917
|
+
],
|
|
16918
|
+
[
|
|
16919
|
+
1,
|
|
16920
|
+
0
|
|
16921
|
+
],
|
|
16922
|
+
[
|
|
16923
|
+
3,
|
|
16924
|
+
2
|
|
16925
|
+
],
|
|
16926
|
+
[
|
|
16927
|
+
0,
|
|
16928
|
+
3
|
|
16929
|
+
],
|
|
16930
|
+
[
|
|
16931
|
+
2,
|
|
16932
|
+
1
|
|
16933
|
+
]
|
|
16798
16934
|
],
|
|
16799
16935
|
[
|
|
16800
|
-
|
|
16801
|
-
|
|
16936
|
+
// near, far, left, right, bottom, top
|
|
16937
|
+
[
|
|
16938
|
+
5,
|
|
16939
|
+
4
|
|
16940
|
+
],
|
|
16941
|
+
[
|
|
16942
|
+
0,
|
|
16943
|
+
1
|
|
16944
|
+
],
|
|
16945
|
+
[
|
|
16946
|
+
8,
|
|
16947
|
+
8
|
|
16948
|
+
],
|
|
16949
|
+
[
|
|
16950
|
+
8,
|
|
16951
|
+
8
|
|
16952
|
+
],
|
|
16953
|
+
[
|
|
16954
|
+
4,
|
|
16955
|
+
0
|
|
16956
|
+
],
|
|
16957
|
+
[
|
|
16958
|
+
1,
|
|
16959
|
+
5
|
|
16960
|
+
]
|
|
16802
16961
|
],
|
|
16803
16962
|
[
|
|
16804
|
-
|
|
16805
|
-
|
|
16963
|
+
// near, far, left, right, bottom, top
|
|
16964
|
+
[
|
|
16965
|
+
7,
|
|
16966
|
+
6
|
|
16967
|
+
],
|
|
16968
|
+
[
|
|
16969
|
+
2,
|
|
16970
|
+
3
|
|
16971
|
+
],
|
|
16972
|
+
[
|
|
16973
|
+
8,
|
|
16974
|
+
8
|
|
16975
|
+
],
|
|
16976
|
+
[
|
|
16977
|
+
8,
|
|
16978
|
+
8
|
|
16979
|
+
],
|
|
16980
|
+
[
|
|
16981
|
+
3,
|
|
16982
|
+
7
|
|
16983
|
+
],
|
|
16984
|
+
[
|
|
16985
|
+
6,
|
|
16986
|
+
2
|
|
16987
|
+
]
|
|
16806
16988
|
],
|
|
16807
16989
|
[
|
|
16808
|
-
|
|
16809
|
-
|
|
16990
|
+
// near, far, left, right, bottom, top
|
|
16991
|
+
[
|
|
16992
|
+
4,
|
|
16993
|
+
7
|
|
16994
|
+
],
|
|
16995
|
+
[
|
|
16996
|
+
3,
|
|
16997
|
+
0
|
|
16998
|
+
],
|
|
16999
|
+
[
|
|
17000
|
+
0,
|
|
17001
|
+
4
|
|
17002
|
+
],
|
|
17003
|
+
[
|
|
17004
|
+
7,
|
|
17005
|
+
3
|
|
17006
|
+
],
|
|
17007
|
+
[
|
|
17008
|
+
8,
|
|
17009
|
+
8
|
|
17010
|
+
],
|
|
17011
|
+
[
|
|
17012
|
+
8,
|
|
17013
|
+
8
|
|
17014
|
+
]
|
|
16810
17015
|
],
|
|
16811
17016
|
[
|
|
16812
|
-
|
|
16813
|
-
|
|
17017
|
+
// near, far, left, right, bottom, top
|
|
17018
|
+
[
|
|
17019
|
+
6,
|
|
17020
|
+
5
|
|
17021
|
+
],
|
|
17022
|
+
[
|
|
17023
|
+
1,
|
|
17024
|
+
2
|
|
17025
|
+
],
|
|
17026
|
+
[
|
|
17027
|
+
5,
|
|
17028
|
+
1
|
|
17029
|
+
],
|
|
17030
|
+
[
|
|
17031
|
+
2,
|
|
17032
|
+
6
|
|
17033
|
+
],
|
|
17034
|
+
[
|
|
17035
|
+
8,
|
|
17036
|
+
8
|
|
17037
|
+
],
|
|
17038
|
+
[
|
|
17039
|
+
8,
|
|
17040
|
+
8
|
|
17041
|
+
]
|
|
16814
17042
|
]
|
|
16815
|
-
]
|
|
16816
|
-
|
|
16817
|
-
|
|
16818
|
-
|
|
17043
|
+
];
|
|
17044
|
+
})();
|
|
17045
|
+
(function() {
|
|
17046
|
+
//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.
|
|
17047
|
+
ShadowUtils.atlasBorderSize = 4.0;
|
|
17048
|
+
})();
|
|
16819
17049
|
|
|
16820
17050
|
/**
|
|
16821
17051
|
* Cascade shadow caster.
|
|
@@ -17052,18 +17282,42 @@ ShadowUtils.atlasBorderSize = 4.0;
|
|
|
17052
17282
|
};
|
|
17053
17283
|
return CascadedShadowCasterPass;
|
|
17054
17284
|
}();
|
|
17055
|
-
|
|
17056
|
-
CascadedShadowCasterPass.
|
|
17057
|
-
|
|
17058
|
-
|
|
17059
|
-
CascadedShadowCasterPass.
|
|
17060
|
-
|
|
17061
|
-
|
|
17062
|
-
CascadedShadowCasterPass.
|
|
17063
|
-
|
|
17064
|
-
|
|
17065
|
-
CascadedShadowCasterPass.
|
|
17066
|
-
|
|
17285
|
+
(function() {
|
|
17286
|
+
CascadedShadowCasterPass._lightShadowBiasProperty = Shader.getPropertyByName("u_shadowBias");
|
|
17287
|
+
})();
|
|
17288
|
+
(function() {
|
|
17289
|
+
CascadedShadowCasterPass._lightDirectionProperty = Shader.getPropertyByName("u_lightDirection");
|
|
17290
|
+
})();
|
|
17291
|
+
(function() {
|
|
17292
|
+
CascadedShadowCasterPass._shadowMatricesProperty = Shader.getPropertyByName("u_shadowMatrices");
|
|
17293
|
+
})();
|
|
17294
|
+
(function() {
|
|
17295
|
+
CascadedShadowCasterPass._shadowMapSize = Shader.getPropertyByName("u_shadowMapSize");
|
|
17296
|
+
})();
|
|
17297
|
+
(function() {
|
|
17298
|
+
CascadedShadowCasterPass._shadowInfosProperty = Shader.getPropertyByName("u_shadowInfo");
|
|
17299
|
+
})();
|
|
17300
|
+
(function() {
|
|
17301
|
+
CascadedShadowCasterPass._shadowMapsProperty = Shader.getPropertyByName("u_shadowMap");
|
|
17302
|
+
})();
|
|
17303
|
+
(function() {
|
|
17304
|
+
CascadedShadowCasterPass._shadowSplitSpheresProperty = Shader.getPropertyByName("u_shadowSplitSpheres");
|
|
17305
|
+
})();
|
|
17306
|
+
(function() {
|
|
17307
|
+
CascadedShadowCasterPass._maxCascades = 4;
|
|
17308
|
+
})();
|
|
17309
|
+
(function() {
|
|
17310
|
+
CascadedShadowCasterPass._cascadesSplitDistance = new Array(CascadedShadowCasterPass._maxCascades + 1);
|
|
17311
|
+
})();
|
|
17312
|
+
(function() {
|
|
17313
|
+
CascadedShadowCasterPass._clearColor = new miniprogram.Color(1, 1, 1, 1);
|
|
17314
|
+
})();
|
|
17315
|
+
(function() {
|
|
17316
|
+
CascadedShadowCasterPass._tempVector = new miniprogram.Vector3();
|
|
17317
|
+
})();
|
|
17318
|
+
(function() {
|
|
17319
|
+
CascadedShadowCasterPass._tempMatrix0 = new miniprogram.Matrix();
|
|
17320
|
+
})();
|
|
17067
17321
|
|
|
17068
17322
|
var passNum = 0;
|
|
17069
17323
|
/**
|
|
@@ -17296,7 +17550,7 @@ var passNum = 0;
|
|
|
17296
17550
|
renderer._prepareRender(context);
|
|
17297
17551
|
}
|
|
17298
17552
|
};
|
|
17299
|
-
|
|
17553
|
+
_create_class(BasicRenderPipeline, [
|
|
17300
17554
|
{
|
|
17301
17555
|
key: "defaultRenderPass",
|
|
17302
17556
|
get: /**
|
|
@@ -17308,15 +17562,25 @@ var passNum = 0;
|
|
|
17308
17562
|
]);
|
|
17309
17563
|
return BasicRenderPipeline;
|
|
17310
17564
|
}();
|
|
17311
|
-
|
|
17312
|
-
BasicRenderPipeline.
|
|
17565
|
+
(function() {
|
|
17566
|
+
BasicRenderPipeline._tempVector0 = new miniprogram.Vector3();
|
|
17567
|
+
})();
|
|
17568
|
+
(function() {
|
|
17569
|
+
BasicRenderPipeline._tempVector1 = new miniprogram.Vector3();
|
|
17570
|
+
})();
|
|
17313
17571
|
|
|
17314
17572
|
var _Camera;
|
|
17315
17573
|
var MathTemp = function MathTemp() {
|
|
17316
17574
|
};
|
|
17317
|
-
|
|
17318
|
-
MathTemp.
|
|
17319
|
-
|
|
17575
|
+
(function() {
|
|
17576
|
+
MathTemp.tempVec4 = new miniprogram.Vector4();
|
|
17577
|
+
})();
|
|
17578
|
+
(function() {
|
|
17579
|
+
MathTemp.tempVec3 = new miniprogram.Vector3();
|
|
17580
|
+
})();
|
|
17581
|
+
(function() {
|
|
17582
|
+
MathTemp.tempVec2 = new miniprogram.Vector2();
|
|
17583
|
+
})();
|
|
17320
17584
|
exports.Camera = (_Camera = /*#__PURE__*/ function(Component) {
|
|
17321
17585
|
_inherits(Camera1, Component);
|
|
17322
17586
|
function Camera1(entity) {
|
|
@@ -17334,6 +17598,8 @@ exports.Camera = (_Camera = /*#__PURE__*/ function(Component) {
|
|
|
17334
17598
|
* @remarks Support bit manipulation, corresponding to `Layer`.
|
|
17335
17599
|
*/ _this.cullingMask = exports.Layer.Everything;
|
|
17336
17600
|
/** @internal */ _this._globalShaderMacro = new ShaderMacroCollection();
|
|
17601
|
+
/** @internal */ _this._frustum = new miniprogram.BoundingFrustum();
|
|
17602
|
+
/** @internal */ _this._virtualCamera = new VirtualCamera();
|
|
17337
17603
|
_this._isProjMatSetting = false;
|
|
17338
17604
|
_this._nearClipPlane = 0.1;
|
|
17339
17605
|
_this._farClipPlane = 100;
|
|
@@ -17344,8 +17610,6 @@ exports.Camera = (_Camera = /*#__PURE__*/ function(Component) {
|
|
|
17344
17610
|
_this._isFrustumProjectDirty = true;
|
|
17345
17611
|
_this._customAspectRatio = undefined;
|
|
17346
17612
|
_this._renderTarget = null;
|
|
17347
|
-
/** @internal */ _this._frustum = new miniprogram.BoundingFrustum();
|
|
17348
|
-
/** @internal */ _this._virtualCamera = new VirtualCamera();
|
|
17349
17613
|
_this._viewport = new miniprogram.Vector4(0, 0, 1, 1);
|
|
17350
17614
|
_this._inverseProjectionMatrix = new miniprogram.Matrix();
|
|
17351
17615
|
_this._lastAspectSize = new miniprogram.Vector2(0, 0);
|
|
@@ -17355,7 +17619,7 @@ exports.Camera = (_Camera = /*#__PURE__*/ function(Component) {
|
|
|
17355
17619
|
_this._isViewMatrixDirty = transform.registerWorldChangeFlag();
|
|
17356
17620
|
_this._isInvViewProjDirty = transform.registerWorldChangeFlag();
|
|
17357
17621
|
_this._frustumViewChangeFlag = transform.registerWorldChangeFlag();
|
|
17358
|
-
_this._renderPipeline = new BasicRenderPipeline(
|
|
17622
|
+
_this._renderPipeline = new BasicRenderPipeline(_assert_this_initialized(_this));
|
|
17359
17623
|
_this.shaderData._addRefCount(1);
|
|
17360
17624
|
return _this;
|
|
17361
17625
|
}
|
|
@@ -17572,7 +17836,7 @@ exports.Camera = (_Camera = /*#__PURE__*/ function(Component) {
|
|
|
17572
17836
|
}
|
|
17573
17837
|
return this._inverseProjectionMatrix;
|
|
17574
17838
|
};
|
|
17575
|
-
|
|
17839
|
+
_create_class(Camera1, [
|
|
17576
17840
|
{
|
|
17577
17841
|
key: "nearClipPlane",
|
|
17578
17842
|
get: /**
|
|
@@ -17736,7 +18000,11 @@ exports.Camera = (_Camera = /*#__PURE__*/ function(Component) {
|
|
|
17736
18000
|
}
|
|
17737
18001
|
]);
|
|
17738
18002
|
return Camera1;
|
|
17739
|
-
}(Component),
|
|
18003
|
+
}(Component), function() {
|
|
18004
|
+
/** @internal */ _Camera._inverseViewMatrixProperty = Shader.getPropertyByName("u_viewInvMat");
|
|
18005
|
+
}(), function() {
|
|
18006
|
+
/** @internal */ _Camera._cameraPositionProperty = Shader.getPropertyByName("u_cameraPos");
|
|
18007
|
+
}(), _Camera);
|
|
17740
18008
|
__decorate([
|
|
17741
18009
|
deepClone
|
|
17742
18010
|
], exports.Camera.prototype, "_frustum", void 0);
|
|
@@ -17947,7 +18215,9 @@ var MultiExecutor = /*#__PURE__*/ function() {
|
|
|
17947
18215
|
};
|
|
17948
18216
|
return Loader;
|
|
17949
18217
|
}();
|
|
17950
|
-
|
|
18218
|
+
(function() {
|
|
18219
|
+
Loader._engineObjects = {};
|
|
18220
|
+
})();
|
|
17951
18221
|
|
|
17952
18222
|
/**
|
|
17953
18223
|
* Asset Type.
|
|
@@ -18100,7 +18370,7 @@ var BaseMaterial = /*#__PURE__*/ function(Material) {
|
|
|
18100
18370
|
target._isTransparent = this._isTransparent;
|
|
18101
18371
|
target._blendMode = this._blendMode;
|
|
18102
18372
|
};
|
|
18103
|
-
|
|
18373
|
+
_create_class(BaseMaterial, [
|
|
18104
18374
|
{
|
|
18105
18375
|
key: "shader",
|
|
18106
18376
|
get: /**
|
|
@@ -18200,19 +18470,45 @@ var BaseMaterial = /*#__PURE__*/ function(Material) {
|
|
|
18200
18470
|
]);
|
|
18201
18471
|
return BaseMaterial;
|
|
18202
18472
|
}(Material);
|
|
18203
|
-
|
|
18204
|
-
BaseMaterial.
|
|
18205
|
-
|
|
18206
|
-
|
|
18207
|
-
BaseMaterial.
|
|
18208
|
-
|
|
18209
|
-
|
|
18210
|
-
BaseMaterial.
|
|
18211
|
-
|
|
18212
|
-
|
|
18213
|
-
BaseMaterial.
|
|
18214
|
-
|
|
18215
|
-
|
|
18473
|
+
(function() {
|
|
18474
|
+
BaseMaterial._baseColorProp = Shader.getPropertyByName("u_baseColor");
|
|
18475
|
+
})();
|
|
18476
|
+
(function() {
|
|
18477
|
+
BaseMaterial._baseTextureProp = Shader.getPropertyByName("u_baseTexture");
|
|
18478
|
+
})();
|
|
18479
|
+
(function() {
|
|
18480
|
+
BaseMaterial._baseTextureMacro = Shader.getMacroByName("BASETEXTURE");
|
|
18481
|
+
})();
|
|
18482
|
+
(function() {
|
|
18483
|
+
BaseMaterial._tilingOffsetProp = Shader.getPropertyByName("u_tilingOffset");
|
|
18484
|
+
})();
|
|
18485
|
+
(function() {
|
|
18486
|
+
BaseMaterial._normalTextureProp = Shader.getPropertyByName("u_normalTexture");
|
|
18487
|
+
})();
|
|
18488
|
+
(function() {
|
|
18489
|
+
BaseMaterial._normalIntensityProp = Shader.getPropertyByName("u_normalIntensity");
|
|
18490
|
+
})();
|
|
18491
|
+
(function() {
|
|
18492
|
+
BaseMaterial._normalTextureMacro = Shader.getMacroByName("NORMALTEXTURE");
|
|
18493
|
+
})();
|
|
18494
|
+
(function() {
|
|
18495
|
+
BaseMaterial._emissiveColorProp = Shader.getPropertyByName("u_emissiveColor");
|
|
18496
|
+
})();
|
|
18497
|
+
(function() {
|
|
18498
|
+
BaseMaterial._emissiveTextureProp = Shader.getPropertyByName("u_emissiveTexture");
|
|
18499
|
+
})();
|
|
18500
|
+
(function() {
|
|
18501
|
+
BaseMaterial._emissiveTextureMacro = Shader.getMacroByName("EMISSIVETEXTURE");
|
|
18502
|
+
})();
|
|
18503
|
+
(function() {
|
|
18504
|
+
BaseMaterial._transparentMacro = Shader.getMacroByName("OASIS_TRANSPARENT");
|
|
18505
|
+
})();
|
|
18506
|
+
(function() {
|
|
18507
|
+
BaseMaterial._alphaCutoffProp = Shader.getPropertyByName("u_alphaCutoff");
|
|
18508
|
+
})();
|
|
18509
|
+
(function() {
|
|
18510
|
+
BaseMaterial._alphaCutoffMacro = Shader.getMacroByName("ALPHA_CUTOFF");
|
|
18511
|
+
})();
|
|
18216
18512
|
|
|
18217
18513
|
/**
|
|
18218
18514
|
* Blinn-phong Material.
|
|
@@ -18240,7 +18536,7 @@ BaseMaterial._alphaCutoffMacro = Shader.getMacroByName("ALPHA_CUTOFF");
|
|
|
18240
18536
|
this.cloneTo(dest);
|
|
18241
18537
|
return dest;
|
|
18242
18538
|
};
|
|
18243
|
-
|
|
18539
|
+
_create_class(BlinnPhongMaterial, [
|
|
18244
18540
|
{
|
|
18245
18541
|
key: "baseColor",
|
|
18246
18542
|
get: /**
|
|
@@ -18386,9 +18682,15 @@ BaseMaterial._alphaCutoffMacro = Shader.getMacroByName("ALPHA_CUTOFF");
|
|
|
18386
18682
|
]);
|
|
18387
18683
|
return BlinnPhongMaterial;
|
|
18388
18684
|
}(BaseMaterial);
|
|
18389
|
-
|
|
18390
|
-
BlinnPhongMaterial.
|
|
18391
|
-
|
|
18685
|
+
(function() {
|
|
18686
|
+
BlinnPhongMaterial._specularColorProp = Shader.getPropertyByName("u_specularColor");
|
|
18687
|
+
})();
|
|
18688
|
+
(function() {
|
|
18689
|
+
BlinnPhongMaterial._shininessProp = Shader.getPropertyByName("u_shininess");
|
|
18690
|
+
})();
|
|
18691
|
+
(function() {
|
|
18692
|
+
BlinnPhongMaterial._specularTextureProp = Shader.getPropertyByName("u_specularTexture");
|
|
18693
|
+
})();
|
|
18392
18694
|
|
|
18393
18695
|
/**
|
|
18394
18696
|
* Texture UV coordinate.
|
|
@@ -18424,7 +18726,7 @@ BlinnPhongMaterial._specularTextureProp = Shader.getPropertyByName("u_specularTe
|
|
|
18424
18726
|
shaderData.setFloat(PBRBaseMaterial._clearCoatRoughnessProp, 0);
|
|
18425
18727
|
return _this;
|
|
18426
18728
|
}
|
|
18427
|
-
|
|
18729
|
+
_create_class(PBRBaseMaterial, [
|
|
18428
18730
|
{
|
|
18429
18731
|
key: "baseColor",
|
|
18430
18732
|
get: /**
|
|
@@ -18648,14 +18950,30 @@ BlinnPhongMaterial._specularTextureProp = Shader.getPropertyByName("u_specularTe
|
|
|
18648
18950
|
]);
|
|
18649
18951
|
return PBRBaseMaterial;
|
|
18650
18952
|
}(BaseMaterial);
|
|
18651
|
-
|
|
18652
|
-
PBRBaseMaterial.
|
|
18653
|
-
|
|
18654
|
-
|
|
18655
|
-
PBRBaseMaterial.
|
|
18656
|
-
|
|
18657
|
-
|
|
18658
|
-
PBRBaseMaterial.
|
|
18953
|
+
(function() {
|
|
18954
|
+
PBRBaseMaterial._occlusionTextureIntensityProp = Shader.getPropertyByName("u_occlusionIntensity");
|
|
18955
|
+
})();
|
|
18956
|
+
(function() {
|
|
18957
|
+
PBRBaseMaterial._occlusionTextureCoordProp = Shader.getPropertyByName("u_occlusionTextureCoord");
|
|
18958
|
+
})();
|
|
18959
|
+
(function() {
|
|
18960
|
+
PBRBaseMaterial._occlusionTextureProp = Shader.getPropertyByName("u_occlusionTexture");
|
|
18961
|
+
})();
|
|
18962
|
+
(function() {
|
|
18963
|
+
PBRBaseMaterial._clearCoatProp = Shader.getPropertyByName("u_clearCoat");
|
|
18964
|
+
})();
|
|
18965
|
+
(function() {
|
|
18966
|
+
PBRBaseMaterial._clearCoatTextureProp = Shader.getPropertyByName("u_clearCoatTexture");
|
|
18967
|
+
})();
|
|
18968
|
+
(function() {
|
|
18969
|
+
PBRBaseMaterial._clearCoatRoughnessProp = Shader.getPropertyByName("u_clearCoatRoughness");
|
|
18970
|
+
})();
|
|
18971
|
+
(function() {
|
|
18972
|
+
PBRBaseMaterial._clearCoatRoughnessTextureProp = Shader.getPropertyByName("u_clearCoatRoughnessTexture");
|
|
18973
|
+
})();
|
|
18974
|
+
(function() {
|
|
18975
|
+
PBRBaseMaterial._clearCoatNormalTextureProp = Shader.getPropertyByName("u_clearCoatNormalTexture");
|
|
18976
|
+
})();
|
|
18659
18977
|
|
|
18660
18978
|
/**
|
|
18661
18979
|
* PBR (Metallic-Roughness Workflow) Material.
|
|
@@ -18676,7 +18994,7 @@ PBRBaseMaterial._clearCoatNormalTextureProp = Shader.getPropertyByName("u_clearC
|
|
|
18676
18994
|
this.cloneTo(dest);
|
|
18677
18995
|
return dest;
|
|
18678
18996
|
};
|
|
18679
|
-
|
|
18997
|
+
_create_class(PBRMaterial, [
|
|
18680
18998
|
{
|
|
18681
18999
|
key: "metallic",
|
|
18682
19000
|
get: /**
|
|
@@ -18719,9 +19037,15 @@ PBRBaseMaterial._clearCoatNormalTextureProp = Shader.getPropertyByName("u_clearC
|
|
|
18719
19037
|
]);
|
|
18720
19038
|
return PBRMaterial;
|
|
18721
19039
|
}(PBRBaseMaterial);
|
|
18722
|
-
|
|
18723
|
-
PBRMaterial.
|
|
18724
|
-
|
|
19040
|
+
(function() {
|
|
19041
|
+
PBRMaterial._metallicProp = Shader.getPropertyByName("u_metal");
|
|
19042
|
+
})();
|
|
19043
|
+
(function() {
|
|
19044
|
+
PBRMaterial._roughnessProp = Shader.getPropertyByName("u_roughness");
|
|
19045
|
+
})();
|
|
19046
|
+
(function() {
|
|
19047
|
+
PBRMaterial._roughnessMetallicTextureProp = Shader.getPropertyByName("u_roughnessMetallicTexture");
|
|
19048
|
+
})();
|
|
18725
19049
|
|
|
18726
19050
|
/**
|
|
18727
19051
|
* PBR (Specular-Glossiness Workflow) Material.
|
|
@@ -18742,7 +19066,7 @@ PBRMaterial._roughnessMetallicTextureProp = Shader.getPropertyByName("u_roughnes
|
|
|
18742
19066
|
this.cloneTo(dest);
|
|
18743
19067
|
return dest;
|
|
18744
19068
|
};
|
|
18745
|
-
|
|
19069
|
+
_create_class(PBRSpecularMaterial, [
|
|
18746
19070
|
{
|
|
18747
19071
|
key: "specularColor",
|
|
18748
19072
|
get: /**
|
|
@@ -18788,10 +19112,18 @@ PBRMaterial._roughnessMetallicTextureProp = Shader.getPropertyByName("u_roughnes
|
|
|
18788
19112
|
]);
|
|
18789
19113
|
return PBRSpecularMaterial;
|
|
18790
19114
|
}(PBRBaseMaterial);
|
|
18791
|
-
|
|
18792
|
-
PBRSpecularMaterial.
|
|
18793
|
-
|
|
18794
|
-
|
|
19115
|
+
(function() {
|
|
19116
|
+
PBRSpecularMaterial._specularColorProp = Shader.getPropertyByName("u_PBRSpecularColor");
|
|
19117
|
+
})();
|
|
19118
|
+
(function() {
|
|
19119
|
+
PBRSpecularMaterial._glossinessProp = Shader.getPropertyByName("u_glossiness");
|
|
19120
|
+
})();
|
|
19121
|
+
(function() {
|
|
19122
|
+
PBRSpecularMaterial._specularGlossinessTextureProp = Shader.getPropertyByName("u_specularGlossinessTexture");
|
|
19123
|
+
})();
|
|
19124
|
+
(function() {
|
|
19125
|
+
PBRSpecularMaterial._specularGlossinessTextureMacro = Shader.getMacroByName("SPECULARGLOSSINESSTEXTURE");
|
|
19126
|
+
})();
|
|
18795
19127
|
|
|
18796
19128
|
/**
|
|
18797
19129
|
* Unlit Material.
|
|
@@ -18815,7 +19147,7 @@ PBRSpecularMaterial._specularGlossinessTextureMacro = Shader.getMacroByName("SPE
|
|
|
18815
19147
|
this.cloneTo(dest);
|
|
18816
19148
|
return dest;
|
|
18817
19149
|
};
|
|
18818
|
-
|
|
19150
|
+
_create_class(UnlitMaterial, [
|
|
18819
19151
|
{
|
|
18820
19152
|
key: "baseColor",
|
|
18821
19153
|
get: /**
|
|
@@ -18949,7 +19281,7 @@ exports.TextVerticalAlignment = void 0;
|
|
|
18949
19281
|
this._sprites = null;
|
|
18950
19282
|
this._spriteNamesToIndex = null;
|
|
18951
19283
|
};
|
|
18952
|
-
|
|
19284
|
+
_create_class(SpriteAtlas, [
|
|
18953
19285
|
{
|
|
18954
19286
|
key: "sprites",
|
|
18955
19287
|
get: /**
|
|
@@ -19120,7 +19452,7 @@ exports.TextVerticalAlignment = void 0;
|
|
|
19120
19452
|
}
|
|
19121
19453
|
this._updateFlagManager.dispatch(type);
|
|
19122
19454
|
};
|
|
19123
|
-
|
|
19455
|
+
_create_class(Sprite, [
|
|
19124
19456
|
{
|
|
19125
19457
|
key: "texture",
|
|
19126
19458
|
get: /**
|
|
@@ -19409,7 +19741,9 @@ var SlicedSpriteAssembler = (_SlicedSpriteAssembler = /*#__PURE__*/ function() {
|
|
|
19409
19741
|
};
|
|
19410
19742
|
SlicedSpriteAssembler1.updateUVs = function updateUVs(renderer) {};
|
|
19411
19743
|
return SlicedSpriteAssembler1;
|
|
19412
|
-
}(),
|
|
19744
|
+
}(), function() {
|
|
19745
|
+
_SlicedSpriteAssembler._worldMatrix = new miniprogram.Matrix();
|
|
19746
|
+
}(), _SlicedSpriteAssembler);
|
|
19413
19747
|
SlicedSpriteAssembler = __decorate([
|
|
19414
19748
|
StaticInterfaceImplement()
|
|
19415
19749
|
], SlicedSpriteAssembler);
|
|
@@ -19432,7 +19766,7 @@ SlicedSpriteAssembler = __decorate([
|
|
|
19432
19766
|
_this._renderData = new RenderData2D(4, [], [], null, _this._color);
|
|
19433
19767
|
_this.drawMode = exports.SpriteDrawMode.Simple;
|
|
19434
19768
|
_this.setMaterial(_this._engine._spriteDefaultMaterial);
|
|
19435
|
-
_this._onSpriteChange = _this._onSpriteChange.bind(
|
|
19769
|
+
_this._onSpriteChange = _this._onSpriteChange.bind(_assert_this_initialized(_this));
|
|
19436
19770
|
return _this;
|
|
19437
19771
|
}
|
|
19438
19772
|
var _proto = SpriteRenderer.prototype;
|
|
@@ -19537,7 +19871,7 @@ SlicedSpriteAssembler = __decorate([
|
|
|
19537
19871
|
break;
|
|
19538
19872
|
}
|
|
19539
19873
|
};
|
|
19540
|
-
|
|
19874
|
+
_create_class(SpriteRenderer, [
|
|
19541
19875
|
{
|
|
19542
19876
|
key: "drawMode",
|
|
19543
19877
|
get: /**
|
|
@@ -19686,7 +20020,9 @@ SlicedSpriteAssembler = __decorate([
|
|
|
19686
20020
|
]);
|
|
19687
20021
|
return SpriteRenderer;
|
|
19688
20022
|
}(exports.Renderer);
|
|
19689
|
-
|
|
20023
|
+
(function() {
|
|
20024
|
+
/** @internal */ SpriteRenderer._textureProperty = Shader.getPropertyByName("u_spriteTexture");
|
|
20025
|
+
})();
|
|
19690
20026
|
__decorate([
|
|
19691
20027
|
ignoreClone
|
|
19692
20028
|
], SpriteRenderer.prototype, "_renderData", void 0);
|
|
@@ -19743,14 +20079,16 @@ var /**
|
|
|
19743
20079
|
];
|
|
19744
20080
|
this.renderData = new RenderData2D(4, positions, null, CharRenderData.triangles, null);
|
|
19745
20081
|
};
|
|
19746
|
-
|
|
19747
|
-
|
|
19748
|
-
|
|
19749
|
-
|
|
19750
|
-
|
|
19751
|
-
|
|
19752
|
-
|
|
19753
|
-
|
|
20082
|
+
(function() {
|
|
20083
|
+
CharRenderData.triangles = [
|
|
20084
|
+
0,
|
|
20085
|
+
2,
|
|
20086
|
+
1,
|
|
20087
|
+
2,
|
|
20088
|
+
0,
|
|
20089
|
+
3
|
|
20090
|
+
];
|
|
20091
|
+
})();
|
|
19754
20092
|
|
|
19755
20093
|
/**
|
|
19756
20094
|
* @internal
|
|
@@ -20074,23 +20412,37 @@ CharRenderData.triangles = [
|
|
|
20074
20412
|
};
|
|
20075
20413
|
return TextUtils;
|
|
20076
20414
|
}();
|
|
20077
|
-
|
|
20078
|
-
|
|
20079
|
-
|
|
20080
|
-
|
|
20081
|
-
|
|
20082
|
-
|
|
20083
|
-
|
|
20084
|
-
|
|
20085
|
-
|
|
20086
|
-
|
|
20087
|
-
|
|
20088
|
-
|
|
20089
|
-
|
|
20090
|
-
|
|
20091
|
-
TextUtils.
|
|
20092
|
-
|
|
20093
|
-
|
|
20415
|
+
(function() {
|
|
20416
|
+
/** @internal */ TextUtils._genericFontFamilies = [
|
|
20417
|
+
"serif",
|
|
20418
|
+
"sans-serif",
|
|
20419
|
+
"monospace",
|
|
20420
|
+
"cursive",
|
|
20421
|
+
"fantasy",
|
|
20422
|
+
"system-ui",
|
|
20423
|
+
"math",
|
|
20424
|
+
"emoji",
|
|
20425
|
+
"fangsong"
|
|
20426
|
+
];
|
|
20427
|
+
})();
|
|
20428
|
+
(function() {
|
|
20429
|
+
/** These characters are all tall to help calculate the height required for text. */ TextUtils._measureString = "|\xc9q\xc5";
|
|
20430
|
+
})();
|
|
20431
|
+
(function() {
|
|
20432
|
+
TextUtils._measureBaseline = "M";
|
|
20433
|
+
})();
|
|
20434
|
+
(function() {
|
|
20435
|
+
TextUtils._heightMultiplier = 2;
|
|
20436
|
+
})();
|
|
20437
|
+
(function() {
|
|
20438
|
+
TextUtils._baselineMultiplier = 1.4;
|
|
20439
|
+
})();
|
|
20440
|
+
(function() {
|
|
20441
|
+
TextUtils._fontSizeInfoCache = {};
|
|
20442
|
+
})();
|
|
20443
|
+
(function() {
|
|
20444
|
+
TextUtils._textContext = null;
|
|
20445
|
+
})();
|
|
20094
20446
|
|
|
20095
20447
|
/**
|
|
20096
20448
|
* Renders a text for 2D graphics.
|
|
@@ -20117,7 +20469,7 @@ TextUtils._textContext = null;
|
|
|
20117
20469
|
_this._overflowMode = exports.OverflowMode.Overflow;
|
|
20118
20470
|
_this._maskInteraction = exports.SpriteMaskInteraction.None;
|
|
20119
20471
|
_this._maskLayer = exports.SpriteMaskLayer.Layer0;
|
|
20120
|
-
var engine =
|
|
20472
|
+
var engine = _assert_this_initialized(_this).engine;
|
|
20121
20473
|
_this._font = engine._textDefaultFont;
|
|
20122
20474
|
_this._font._addRefCount(1);
|
|
20123
20475
|
_this.setMaterial(engine._spriteDefaultMaterial);
|
|
@@ -20356,7 +20708,7 @@ TextUtils._textContext = null;
|
|
|
20356
20708
|
Renderer.prototype._onTransformChanged.call(this, bit);
|
|
20357
20709
|
this._setDirtyFlagTrue(0x4 | 0x8);
|
|
20358
20710
|
};
|
|
20359
|
-
|
|
20711
|
+
_create_class(TextRenderer, [
|
|
20360
20712
|
{
|
|
20361
20713
|
key: "color",
|
|
20362
20714
|
get: /**
|
|
@@ -20569,9 +20921,15 @@ TextUtils._textContext = null;
|
|
|
20569
20921
|
]);
|
|
20570
20922
|
return TextRenderer;
|
|
20571
20923
|
}(exports.Renderer);
|
|
20572
|
-
|
|
20573
|
-
TextRenderer.
|
|
20574
|
-
|
|
20924
|
+
(function() {
|
|
20925
|
+
TextRenderer._charRenderDataPool = new CharRenderDataPool(CharRenderData, 50);
|
|
20926
|
+
})();
|
|
20927
|
+
(function() {
|
|
20928
|
+
TextRenderer._tempVec30 = new miniprogram.Vector3();
|
|
20929
|
+
})();
|
|
20930
|
+
(function() {
|
|
20931
|
+
TextRenderer._tempVec31 = new miniprogram.Vector3();
|
|
20932
|
+
})();
|
|
20575
20933
|
__decorate([
|
|
20576
20934
|
assignmentClone
|
|
20577
20935
|
], TextRenderer.prototype, "_subFont", void 0);
|
|
@@ -20788,7 +21146,9 @@ var DirtyFlag;
|
|
|
20788
21146
|
};
|
|
20789
21147
|
return AnimationCurveOwner;
|
|
20790
21148
|
}();
|
|
20791
|
-
|
|
21149
|
+
(function() {
|
|
21150
|
+
AnimationCurveOwner._assemblerMap = new Map();
|
|
21151
|
+
})();
|
|
20792
21152
|
|
|
20793
21153
|
/**
|
|
20794
21154
|
* @internal
|
|
@@ -20962,7 +21322,7 @@ AnimationCurveOwner.registerAssembler(SkinnedMeshRenderer, "blendShapeWeights",
|
|
|
20962
21322
|
}
|
|
20963
21323
|
}
|
|
20964
21324
|
};
|
|
20965
|
-
|
|
21325
|
+
_create_class(AnimationClip, [
|
|
20966
21326
|
{
|
|
20967
21327
|
key: "events",
|
|
20968
21328
|
get: /**
|
|
@@ -21110,7 +21470,7 @@ AnimationCurveOwner.registerAssembler(SkinnedMeshRenderer, "blendShapeWeights",
|
|
|
21110
21470
|
var result = this._evaluate(time, evaluateData);
|
|
21111
21471
|
return this._type._subtractValue(result, this.keys[0].value, evaluateData.value);
|
|
21112
21472
|
};
|
|
21113
|
-
|
|
21473
|
+
_create_class(AnimationCurve, [
|
|
21114
21474
|
{
|
|
21115
21475
|
key: "interpolation",
|
|
21116
21476
|
get: /**
|
|
@@ -21220,7 +21580,11 @@ exports.AnimationArrayCurve = (_AnimationArrayCurve = /*#__PURE__*/ function(Ani
|
|
|
21220
21580
|
return out;
|
|
21221
21581
|
};
|
|
21222
21582
|
return AnimationArrayCurve;
|
|
21223
|
-
}(AnimationCurve),
|
|
21583
|
+
}(AnimationCurve), function() {
|
|
21584
|
+
/** @internal */ _AnimationArrayCurve._isReferenceType = true;
|
|
21585
|
+
}(), function() {
|
|
21586
|
+
/** @internal */ _AnimationArrayCurve._isInterpolationType = true;
|
|
21587
|
+
}(), _AnimationArrayCurve);
|
|
21224
21588
|
exports.AnimationArrayCurve = __decorate([
|
|
21225
21589
|
StaticInterfaceImplement()
|
|
21226
21590
|
], exports.AnimationArrayCurve);
|
|
@@ -21273,7 +21637,11 @@ exports.AnimationBoolCurve = (_AnimationBoolCurve = /*#__PURE__*/ function(Anima
|
|
|
21273
21637
|
return frame.value;
|
|
21274
21638
|
};
|
|
21275
21639
|
return AnimationBoolCurve;
|
|
21276
|
-
}(AnimationCurve),
|
|
21640
|
+
}(AnimationCurve), function() {
|
|
21641
|
+
/** @internal */ _AnimationBoolCurve._isReferenceType = false;
|
|
21642
|
+
}(), function() {
|
|
21643
|
+
/** @internal */ _AnimationBoolCurve._isInterpolationType = false;
|
|
21644
|
+
}(), _AnimationBoolCurve);
|
|
21277
21645
|
exports.AnimationBoolCurve = __decorate([
|
|
21278
21646
|
StaticInterfaceImplement()
|
|
21279
21647
|
], exports.AnimationBoolCurve);
|
|
@@ -21366,7 +21734,11 @@ exports.AnimationColorCurve = (_AnimationColorCurve = /*#__PURE__*/ function(Ani
|
|
|
21366
21734
|
return out;
|
|
21367
21735
|
};
|
|
21368
21736
|
return AnimationColorCurve;
|
|
21369
|
-
}(AnimationCurve),
|
|
21737
|
+
}(AnimationCurve), function() {
|
|
21738
|
+
/** @internal */ _AnimationColorCurve._isReferenceType = true;
|
|
21739
|
+
}(), function() {
|
|
21740
|
+
/** @internal */ _AnimationColorCurve._isInterpolationType = true;
|
|
21741
|
+
}(), _AnimationColorCurve);
|
|
21370
21742
|
exports.AnimationColorCurve = __decorate([
|
|
21371
21743
|
StaticInterfaceImplement()
|
|
21372
21744
|
], exports.AnimationColorCurve);
|
|
@@ -21462,7 +21834,11 @@ exports.AnimationFloatArrayCurve = (_AnimationFloatArrayCurve = /*#__PURE__*/ fu
|
|
|
21462
21834
|
return out;
|
|
21463
21835
|
};
|
|
21464
21836
|
return AnimationFloatArrayCurve;
|
|
21465
|
-
}(AnimationCurve),
|
|
21837
|
+
}(AnimationCurve), function() {
|
|
21838
|
+
/** @internal */ _AnimationFloatArrayCurve._isReferenceType = true;
|
|
21839
|
+
}(), function() {
|
|
21840
|
+
/** @internal */ _AnimationFloatArrayCurve._isInterpolationType = true;
|
|
21841
|
+
}(), _AnimationFloatArrayCurve);
|
|
21466
21842
|
exports.AnimationFloatArrayCurve = __decorate([
|
|
21467
21843
|
StaticInterfaceImplement()
|
|
21468
21844
|
], exports.AnimationFloatArrayCurve);
|
|
@@ -21527,7 +21903,11 @@ exports.AnimationFloatCurve = (_AnimationFloatCurve = /*#__PURE__*/ function(Ani
|
|
|
21527
21903
|
}
|
|
21528
21904
|
};
|
|
21529
21905
|
return AnimationFloatCurve;
|
|
21530
|
-
}(AnimationCurve),
|
|
21906
|
+
}(AnimationCurve), function() {
|
|
21907
|
+
/** @internal */ _AnimationFloatCurve._isReferenceType = false;
|
|
21908
|
+
}(), function() {
|
|
21909
|
+
/** @internal */ _AnimationFloatCurve._isInterpolationType = true;
|
|
21910
|
+
}(), _AnimationFloatCurve);
|
|
21531
21911
|
exports.AnimationFloatCurve = __decorate([
|
|
21532
21912
|
StaticInterfaceImplement()
|
|
21533
21913
|
], exports.AnimationFloatCurve);
|
|
@@ -21625,7 +22005,13 @@ exports.AnimationQuaternionCurve = (_AnimationQuaternionCurve = /*#__PURE__*/ fu
|
|
|
21625
22005
|
return out;
|
|
21626
22006
|
};
|
|
21627
22007
|
return AnimationQuaternionCurve1;
|
|
21628
|
-
}(AnimationCurve),
|
|
22008
|
+
}(AnimationCurve), function() {
|
|
22009
|
+
/** @internal */ _AnimationQuaternionCurve._isInterpolationType = true;
|
|
22010
|
+
}(), function() {
|
|
22011
|
+
/** @internal */ _AnimationQuaternionCurve._isReferenceType = true;
|
|
22012
|
+
}(), function() {
|
|
22013
|
+
/** @internal */ _AnimationQuaternionCurve._tempConjugateQuat = new miniprogram.Quaternion();
|
|
22014
|
+
}(), _AnimationQuaternionCurve);
|
|
21629
22015
|
exports.AnimationQuaternionCurve = __decorate([
|
|
21630
22016
|
StaticInterfaceImplement()
|
|
21631
22017
|
], exports.AnimationQuaternionCurve);
|
|
@@ -21706,7 +22092,11 @@ exports.AnimationVector2Curve = (_AnimationVector2Curve = /*#__PURE__*/ function
|
|
|
21706
22092
|
return out;
|
|
21707
22093
|
};
|
|
21708
22094
|
return AnimationVector2Curve;
|
|
21709
|
-
}(AnimationCurve),
|
|
22095
|
+
}(AnimationCurve), function() {
|
|
22096
|
+
/** @internal */ _AnimationVector2Curve._isReferenceType = true;
|
|
22097
|
+
}(), function() {
|
|
22098
|
+
/** @internal */ _AnimationVector2Curve._isInterpolationType = true;
|
|
22099
|
+
}(), _AnimationVector2Curve);
|
|
21710
22100
|
exports.AnimationVector2Curve = __decorate([
|
|
21711
22101
|
StaticInterfaceImplement()
|
|
21712
22102
|
], exports.AnimationVector2Curve);
|
|
@@ -21799,7 +22189,11 @@ exports.AnimationVector3Curve = (_AnimationVector3Curve = /*#__PURE__*/ function
|
|
|
21799
22189
|
return out;
|
|
21800
22190
|
};
|
|
21801
22191
|
return AnimationVector3Curve;
|
|
21802
|
-
}(AnimationCurve),
|
|
22192
|
+
}(AnimationCurve), function() {
|
|
22193
|
+
/** @internal */ _AnimationVector3Curve._isReferenceType = true;
|
|
22194
|
+
}(), function() {
|
|
22195
|
+
/** @internal */ _AnimationVector3Curve._isInterpolationType = true;
|
|
22196
|
+
}(), _AnimationVector3Curve);
|
|
21803
22197
|
exports.AnimationVector3Curve = __decorate([
|
|
21804
22198
|
StaticInterfaceImplement()
|
|
21805
22199
|
], exports.AnimationVector3Curve);
|
|
@@ -21892,7 +22286,11 @@ exports.AnimationVector4Curve = (_AnimationVector4Curve = /*#__PURE__*/ function
|
|
|
21892
22286
|
return out;
|
|
21893
22287
|
};
|
|
21894
22288
|
return AnimationVector4Curve;
|
|
21895
|
-
}(AnimationCurve),
|
|
22289
|
+
}(AnimationCurve), function() {
|
|
22290
|
+
/** @internal */ _AnimationVector4Curve._isReferenceType = true;
|
|
22291
|
+
}(), function() {
|
|
22292
|
+
/** @internal */ _AnimationVector4Curve._isInterpolationType = true;
|
|
22293
|
+
}(), _AnimationVector4Curve);
|
|
21896
22294
|
exports.AnimationVector4Curve = __decorate([
|
|
21897
22295
|
StaticInterfaceImplement()
|
|
21898
22296
|
], exports.AnimationVector4Curve);
|
|
@@ -22608,7 +23006,7 @@ exports.AnimatorLayerBlendingMode = void 0;
|
|
|
22608
23006
|
}
|
|
22609
23007
|
}
|
|
22610
23008
|
};
|
|
22611
|
-
|
|
23009
|
+
_create_class(Animator, [
|
|
22612
23010
|
{
|
|
22613
23011
|
key: "animatorController",
|
|
22614
23012
|
get: /**
|
|
@@ -22699,7 +23097,7 @@ __decorate([
|
|
|
22699
23097
|
*/ _proto._registerChangeFlag = function _registerChangeFlag() {
|
|
22700
23098
|
return this._updateFlagManager.createFlag(BoolUpdateFlag);
|
|
22701
23099
|
};
|
|
22702
|
-
|
|
23100
|
+
_create_class(AnimatorController, [
|
|
22703
23101
|
{
|
|
22704
23102
|
key: "layers",
|
|
22705
23103
|
get: /**
|
|
@@ -22833,7 +23231,7 @@ __decorate([
|
|
|
22833
23231
|
index2 !== -1 && this._onStateExitScripts.splice(index2, 1);
|
|
22834
23232
|
}
|
|
22835
23233
|
};
|
|
22836
|
-
|
|
23234
|
+
_create_class(AnimatorState, [
|
|
22837
23235
|
{
|
|
22838
23236
|
key: "transitions",
|
|
22839
23237
|
get: /**
|
|
@@ -22965,7 +23363,7 @@ exports.AnimatorConditionMode = void 0;
|
|
|
22965
23363
|
_this.shaderData.setVector4("u_cubeDecodeParam", _this._decodeParam);
|
|
22966
23364
|
return _this;
|
|
22967
23365
|
}
|
|
22968
|
-
|
|
23366
|
+
_create_class(SkyBoxMaterial, [
|
|
22969
23367
|
{
|
|
22970
23368
|
key: "textureDecodeRGBM",
|
|
22971
23369
|
get: /**
|
|
@@ -23064,7 +23462,7 @@ exports.ParticleRendererBlendMode = void 0;
|
|
|
23064
23462
|
_this._isFadeOut = false;
|
|
23065
23463
|
_this._playOnEnable = true;
|
|
23066
23464
|
_this._blendMode = 0;
|
|
23067
|
-
_this._onColorChanged = _this._onColorChanged.bind(
|
|
23465
|
+
_this._onColorChanged = _this._onColorChanged.bind(_assert_this_initialized(_this));
|
|
23068
23466
|
//@ts-ignore
|
|
23069
23467
|
_this._color._onValueChanged = _this._onColorChanged;
|
|
23070
23468
|
_this.setMaterial(_this._createMaterial());
|
|
@@ -23341,7 +23739,7 @@ exports.ParticleRendererBlendMode = void 0;
|
|
|
23341
23739
|
ParticleRenderer._getRandom = function _getRandom() {
|
|
23342
23740
|
return Math.random() - 0.5;
|
|
23343
23741
|
};
|
|
23344
|
-
|
|
23742
|
+
_create_class(ParticleRenderer, [
|
|
23345
23743
|
{
|
|
23346
23744
|
key: "texture",
|
|
23347
23745
|
get: /**
|
|
@@ -23772,7 +24170,9 @@ exports.ParticleRendererBlendMode = void 0;
|
|
|
23772
24170
|
]);
|
|
23773
24171
|
return ParticleRenderer;
|
|
23774
24172
|
}(MeshRenderer);
|
|
23775
|
-
|
|
24173
|
+
(function() {
|
|
24174
|
+
/** The max number of indices that Uint16Array can support. */ ParticleRenderer._uint16VertexLimit = 65535;
|
|
24175
|
+
})();
|
|
23776
24176
|
__decorate([
|
|
23777
24177
|
ignoreClone
|
|
23778
24178
|
], ParticleRenderer.prototype, "_onColorChanged", null);
|
|
@@ -24042,7 +24442,7 @@ var _tempVector3 = new miniprogram.Vector3();
|
|
|
24042
24442
|
this._camera.renderTarget = this._oriCameraRenderTarget;
|
|
24043
24443
|
this._camera.cullingMask = this._oriCameraCullingMask;
|
|
24044
24444
|
};
|
|
24045
|
-
|
|
24445
|
+
_create_class(Probe, [
|
|
24046
24446
|
{
|
|
24047
24447
|
key: "_texture",
|
|
24048
24448
|
get: function get() {
|