@galacean/effects-core 2.3.0-alpha.0 → 2.3.0-alpha.1
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/components/base-render-component.d.ts +2 -0
- package/dist/components/shape-component.d.ts +88 -2
- package/dist/index.js +123 -32
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +123 -32
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Description: Galacean Effects runtime core for the web
|
|
4
4
|
* Author: Ant Group CO., Ltd.
|
|
5
5
|
* Contributors: 燃然,飂兮,十弦,云垣,茂安,意绮
|
|
6
|
-
* Version: v2.3.0-alpha.
|
|
6
|
+
* Version: v2.3.0-alpha.1
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
@@ -10182,7 +10182,7 @@ var integrate = "float calculateMovement(float t,vec2 p1,vec2 p2,vec2 p3,vec2 p4
|
|
|
10182
10182
|
|
|
10183
10183
|
var itemVert = "precision highp float;attribute vec2 atlasOffset;attribute vec3 aPos;varying vec2 vTexCoord;varying vec3 vParams;varying vec4 vColor;uniform vec2 _Size;uniform vec3 _Scale;uniform vec4 _Color;uniform vec4 _TexParams;uniform vec4 _TexOffset;uniform mat4 effects_MatrixVP;uniform mat4 effects_ObjectToWorld;uniform mat4 effects_MatrixV;\n#ifdef ENV_EDITOR\nuniform vec4 uEditorTransform;\n#endif\nvoid main(){vec4 texParams=_TexParams;vTexCoord=vec2(atlasOffset.xy*_TexOffset.zw+_TexOffset.xy);vColor=_Color;vParams=vec3(0.0,texParams.y,texParams.x);if(texParams.z==1.0){vec4 pos=vec4(aPos.xy*_Size,aPos.z,1.0);gl_Position=effects_MatrixVP*effects_ObjectToWorld*pos;}else{mat4 view=effects_MatrixV;vec3 camRight=vec3(view[0][0],view[1][0],view[2][0]);vec3 camUp=vec3(view[0][1],view[1][1],view[2][1]);vec3 worldPosition=vec3(effects_ObjectToWorld*vec4(0.0,0.0,0.0,1.0));vec3 vertexPosition=worldPosition+camRight*aPos.x*_Size.x*_Scale.x+camUp*aPos.y*_Size.y*_Scale.y;gl_Position=effects_MatrixVP*vec4(vertexPosition,1.0);}\n#ifdef ENV_EDITOR\ngl_Position=vec4(gl_Position.xy*uEditorTransform.xy+uEditorTransform.zw*gl_Position.w,gl_Position.zw);\n#endif\n}";
|
|
10184
10184
|
|
|
10185
|
-
var itemFrag = "precision highp float;varying vec4 vColor;varying vec2 vTexCoord;varying vec3 vParams;uniform sampler2D _MainTex;vec4 blendColor(vec4 color,vec4 vc,float mode){vec4 ret=color*vc;float alpha=ret.a;if(mode==1.){ret.rgb*=alpha;}else if(mode==2.){ret.rgb*=alpha;ret.a=dot(ret.rgb,vec3(0.33333333));}else if(mode==3.){alpha=color.r*alpha;ret=vec4(vc.rgb*alpha,alpha);}return ret;}void main(){vec4 color=vec4(0.);vec4 texColor=texture2D(_MainTex,vTexCoord.xy)
|
|
10185
|
+
var itemFrag = "precision highp float;varying vec4 vColor;varying vec2 vTexCoord;varying vec3 vParams;uniform sampler2D _MainTex;vec4 blendColor(vec4 color,vec4 vc,float mode){vec4 ret=color*vc;float alpha=ret.a;if(mode==1.){ret.rgb*=alpha;}else if(mode==2.){ret.rgb*=alpha;ret.a=dot(ret.rgb,vec3(0.33333333));}else if(mode==3.){alpha=color.r*alpha;ret=vec4(vc.rgb*alpha,alpha);}return ret;}void main(){vec4 color=vec4(0.);\n#ifdef TRANSPARENT_VIDEO\nvec2 uv_rgb=vec2(vTexCoord.x*0.5000,vTexCoord.y);vec2 uv_alpha=vec2(vTexCoord.x*0.5000+0.5000,vTexCoord.y);vec3 rgb=texture2D(_MainTex,uv_rgb).rgb;float alpha=texture2D(_MainTex,uv_alpha).r;vec4 texColor=vec4(rgb/alpha,alpha);\n#else\nvec4 texColor=texture2D(_MainTex,vTexCoord.xy);\n#endif\ncolor=blendColor(texColor,vColor,floor(0.5+vParams.y));\n#ifdef ALPHA_CLIP\nif(vParams.z==0.&&color.a<0.04){discard;}\n#endif\ncolor.a=clamp(color.a,0.0,1.0);gl_FragColor=color;}";
|
|
10186
10186
|
|
|
10187
10187
|
var particleFrag = "#version 100\nprecision mediump float;vec4 blendColor(vec4 color,vec4 vc,float mode){vec4 ret=color*vc;float alpha=ret.a;if(mode==1.){ret.rgb*=alpha;}else if(mode==2.){ret.rgb*=alpha;ret.a=dot(ret.rgb,vec3(0.33333333));}else if(mode==3.){alpha=color.r*alpha;ret=vec4(vc.rgb*alpha,alpha);}return ret;}\n#define PATICLE_SHADER 1\nvarying float vLife;varying vec2 vTexCoord;varying vec4 vColor;uniform vec3 emissionColor;uniform float emissionIntensity;uniform sampler2D uMaskTex;uniform vec4 uColorParams;uniform vec2 uTexOffset;\n#ifdef COLOR_OVER_LIFETIME\nuniform sampler2D uColorOverLifetime;\n#endif\n#ifdef USE_SPRITE\nvarying vec4 vTexCoordBlend;\n#endif\nvarying float vSeed;\n#ifdef PREVIEW_BORDER\nuniform vec4 uPreviewColor;\n#endif\n#ifdef USE_SPRITE\nvec4 getTextureColor(sampler2D tex,vec2 texCoord){if(vTexCoordBlend.w>0.){return mix(texture2D(tex,texCoord),texture2D(tex,vTexCoordBlend.xy+texCoord),vTexCoordBlend.z);}return texture2D(tex,texCoord);}\n#else\n#define getTextureColor texture2D\n#endif\n#ifndef WEBGL2\n#define round(a) floor(0.5+a)\n#endif\n#ifdef PREVIEW_BORDER\nvoid main(){gl_FragColor=uPreviewColor;}\n#else\nvoid main(){vec4 color=vec4(1.0);vec4 tempColor=vColor;vec2 texOffset=uTexOffset;if(vLife<0.){discard;}if(uColorParams.x>0.0){color=getTextureColor(uMaskTex,vTexCoord);}\n#ifdef COLOR_OVER_LIFETIME\n#ifndef ENABLE_VERTEX_TEXTURE\ntempColor*=texture2D(uColorOverLifetime,vec2(vLife,0.));\n#endif\n#endif\ncolor=blendColor(color,tempColor,round(uColorParams.y));if(color.a<=0.01&&uColorParams.w>0.){float _at=texture2D(uMaskTex,vTexCoord+texOffset).a+texture2D(uMaskTex,vTexCoord+texOffset*-1.).a;if(_at<=0.02){discard;}}vec3 emission=emissionColor*pow(2.0,emissionIntensity);color=vec4(pow(pow(color.rgb,vec3(2.2))+emission,vec3(1.0/2.2)),color.a);gl_FragColor=color;}\n#endif\n";
|
|
10188
10188
|
|
|
@@ -13564,11 +13564,14 @@ var ColorCurve = /*#__PURE__*/ function(ValueGetter) {
|
|
|
13564
13564
|
maxVertex: 4
|
|
13565
13565
|
});
|
|
13566
13566
|
};
|
|
13567
|
-
_proto.
|
|
13568
|
-
|
|
13569
|
-
var materialProps = {
|
|
13567
|
+
_proto.getMaterialProps = function getMaterialProps(renderInfo, count) {
|
|
13568
|
+
return {
|
|
13570
13569
|
shader: spriteMeshShaderFromRenderInfo(renderInfo, count, 1)
|
|
13571
13570
|
};
|
|
13571
|
+
};
|
|
13572
|
+
_proto.createMaterial = function createMaterial(renderInfo, count) {
|
|
13573
|
+
var side = renderInfo.side, occlusion = renderInfo.occlusion, blending = renderInfo.blending, maskMode = renderInfo.maskMode, mask = renderInfo.mask;
|
|
13574
|
+
var materialProps = this.getMaterialProps(renderInfo, count);
|
|
13572
13575
|
this.preMultiAlpha = getPreMultiAlpha(blending);
|
|
13573
13576
|
var material = Material.create(this.engine, materialProps);
|
|
13574
13577
|
var states = {
|
|
@@ -16437,6 +16440,13 @@ var ShapeComponent = /*#__PURE__*/ function(MeshComponent) {
|
|
|
16437
16440
|
join: "miter",
|
|
16438
16441
|
miterLimit: 10
|
|
16439
16442
|
};
|
|
16443
|
+
_this.shapeAttribute = {
|
|
16444
|
+
type: ShapePrimitiveType.Custom,
|
|
16445
|
+
points: [],
|
|
16446
|
+
easingIns: [],
|
|
16447
|
+
easingOuts: [],
|
|
16448
|
+
shapes: []
|
|
16449
|
+
};
|
|
16440
16450
|
return _this;
|
|
16441
16451
|
}
|
|
16442
16452
|
var _proto = ShapeComponent.prototype;
|
|
@@ -16445,7 +16455,7 @@ var ShapeComponent = /*#__PURE__*/ function(MeshComponent) {
|
|
|
16445
16455
|
};
|
|
16446
16456
|
_proto.onUpdate = function onUpdate(dt) {
|
|
16447
16457
|
if (this.shapeDirty) {
|
|
16448
|
-
this.buildPath(this.
|
|
16458
|
+
this.buildPath(this.shapeAttribute);
|
|
16449
16459
|
this.buildGeometryFromPath(this.graphicsPath.shapePath);
|
|
16450
16460
|
this.shapeDirty = false;
|
|
16451
16461
|
}
|
|
@@ -16503,17 +16513,16 @@ var ShapeComponent = /*#__PURE__*/ function(MeshComponent) {
|
|
|
16503
16513
|
this.geometry.setIndexData(indexArray);
|
|
16504
16514
|
this.geometry.setDrawCount(indices.length);
|
|
16505
16515
|
};
|
|
16506
|
-
_proto.buildPath = function buildPath(
|
|
16516
|
+
_proto.buildPath = function buildPath(shapeAttribute) {
|
|
16507
16517
|
this.graphicsPath.clear();
|
|
16508
|
-
|
|
16509
|
-
switch(shapeData.type){
|
|
16518
|
+
switch(shapeAttribute.type){
|
|
16510
16519
|
case ShapePrimitiveType.Custom:
|
|
16511
16520
|
{
|
|
16512
|
-
var
|
|
16513
|
-
var points =
|
|
16514
|
-
var easingIns =
|
|
16515
|
-
var easingOuts =
|
|
16516
|
-
for(var _iterator = _create_for_of_iterator_helper_loose(
|
|
16521
|
+
var customShapeAtribute = this.shapeAttribute;
|
|
16522
|
+
var points = customShapeAtribute.points;
|
|
16523
|
+
var easingIns = customShapeAtribute.easingIns;
|
|
16524
|
+
var easingOuts = customShapeAtribute.easingOuts;
|
|
16525
|
+
for(var _iterator = _create_for_of_iterator_helper_loose(customShapeAtribute.shapes), _step; !(_step = _iterator()).done;){
|
|
16517
16526
|
var shape = _step.value;
|
|
16518
16527
|
this.curveValues = [];
|
|
16519
16528
|
this.setFillColor(shape.fill);
|
|
@@ -16546,28 +16555,28 @@ var ShapeComponent = /*#__PURE__*/ function(MeshComponent) {
|
|
|
16546
16555
|
}
|
|
16547
16556
|
case ShapePrimitiveType.Ellipse:
|
|
16548
16557
|
{
|
|
16549
|
-
var ellipseData =
|
|
16558
|
+
var ellipseData = shapeAttribute;
|
|
16550
16559
|
this.graphicsPath.ellipse(0, 0, ellipseData.xRadius, ellipseData.yRadius);
|
|
16551
16560
|
this.setFillColor(ellipseData.fill);
|
|
16552
16561
|
break;
|
|
16553
16562
|
}
|
|
16554
16563
|
case ShapePrimitiveType.Rectangle:
|
|
16555
16564
|
{
|
|
16556
|
-
var rectangleData =
|
|
16565
|
+
var rectangleData = shapeAttribute;
|
|
16557
16566
|
this.graphicsPath.rect(-rectangleData.width / 2, -rectangleData.height / 2, rectangleData.width, rectangleData.height);
|
|
16558
16567
|
this.setFillColor(rectangleData.fill);
|
|
16559
16568
|
break;
|
|
16560
16569
|
}
|
|
16561
16570
|
case ShapePrimitiveType.Star:
|
|
16562
16571
|
{
|
|
16563
|
-
var starData =
|
|
16572
|
+
var starData = shapeAttribute;
|
|
16564
16573
|
this.graphicsPath.polyStar(starData.pointCount, starData.outerRadius, starData.innerRadius, starData.outerRoundness, starData.innerRoundness, StarType.Star);
|
|
16565
16574
|
this.setFillColor(starData.fill);
|
|
16566
16575
|
break;
|
|
16567
16576
|
}
|
|
16568
16577
|
case ShapePrimitiveType.Polygon:
|
|
16569
16578
|
{
|
|
16570
|
-
var polygonData =
|
|
16579
|
+
var polygonData = shapeAttribute;
|
|
16571
16580
|
this.graphicsPath.polyStar(polygonData.pointCount, polygonData.radius, polygonData.radius, polygonData.roundness, polygonData.roundness, StarType.Polygon);
|
|
16572
16581
|
this.setFillColor(polygonData.fill);
|
|
16573
16582
|
break;
|
|
@@ -16582,13 +16591,93 @@ var ShapeComponent = /*#__PURE__*/ function(MeshComponent) {
|
|
|
16582
16591
|
};
|
|
16583
16592
|
_proto.fromData = function fromData(data) {
|
|
16584
16593
|
MeshComponent.prototype.fromData.call(this, data);
|
|
16585
|
-
this.data = data;
|
|
16586
16594
|
this.shapeDirty = true;
|
|
16587
16595
|
var strokeParam = data.stroke;
|
|
16588
16596
|
if (strokeParam) {
|
|
16589
16597
|
this.isStroke = true;
|
|
16590
16598
|
this.strokeAttributes.width = strokeParam.width;
|
|
16591
16599
|
}
|
|
16600
|
+
switch(data.type){
|
|
16601
|
+
case ShapePrimitiveType.Custom:
|
|
16602
|
+
{
|
|
16603
|
+
this.shapeAttribute = {
|
|
16604
|
+
type: ShapePrimitiveType.Custom,
|
|
16605
|
+
points: [],
|
|
16606
|
+
easingIns: [],
|
|
16607
|
+
easingOuts: [],
|
|
16608
|
+
shapes: []
|
|
16609
|
+
};
|
|
16610
|
+
var customShapeData = data;
|
|
16611
|
+
var customShapeAttribute = this.shapeAttribute;
|
|
16612
|
+
for(var _iterator = _create_for_of_iterator_helper_loose(customShapeData.points), _step; !(_step = _iterator()).done;){
|
|
16613
|
+
var point = _step.value;
|
|
16614
|
+
customShapeAttribute.points.push(new Vector2(point.x, point.y));
|
|
16615
|
+
}
|
|
16616
|
+
for(var _iterator1 = _create_for_of_iterator_helper_loose(customShapeData.easingIns), _step1; !(_step1 = _iterator1()).done;){
|
|
16617
|
+
var easingIn = _step1.value;
|
|
16618
|
+
customShapeAttribute.easingIns.push(new Vector2(easingIn.x, easingIn.y));
|
|
16619
|
+
}
|
|
16620
|
+
for(var _iterator2 = _create_for_of_iterator_helper_loose(customShapeData.easingOuts), _step2; !(_step2 = _iterator2()).done;){
|
|
16621
|
+
var easingOut = _step2.value;
|
|
16622
|
+
customShapeAttribute.easingOuts.push(new Vector2(easingOut.x, easingOut.y));
|
|
16623
|
+
}
|
|
16624
|
+
customShapeAttribute.shapes = customShapeData.shapes;
|
|
16625
|
+
break;
|
|
16626
|
+
}
|
|
16627
|
+
case ShapePrimitiveType.Ellipse:
|
|
16628
|
+
{
|
|
16629
|
+
var ellipseData = data;
|
|
16630
|
+
var ellipseAttribute = {
|
|
16631
|
+
type: ShapePrimitiveType.Ellipse,
|
|
16632
|
+
xRadius: ellipseData.xRadius,
|
|
16633
|
+
yRadius: ellipseData.yRadius,
|
|
16634
|
+
fill: ellipseData.fill
|
|
16635
|
+
};
|
|
16636
|
+
this.shapeAttribute = ellipseAttribute;
|
|
16637
|
+
break;
|
|
16638
|
+
}
|
|
16639
|
+
case ShapePrimitiveType.Rectangle:
|
|
16640
|
+
{
|
|
16641
|
+
var rectangleData = data;
|
|
16642
|
+
var rectangleAttribute = {
|
|
16643
|
+
type: ShapePrimitiveType.Rectangle,
|
|
16644
|
+
width: rectangleData.width,
|
|
16645
|
+
height: rectangleData.height,
|
|
16646
|
+
roundness: rectangleData.roundness,
|
|
16647
|
+
fill: rectangleData.fill
|
|
16648
|
+
};
|
|
16649
|
+
this.shapeAttribute = rectangleAttribute;
|
|
16650
|
+
break;
|
|
16651
|
+
}
|
|
16652
|
+
case ShapePrimitiveType.Star:
|
|
16653
|
+
{
|
|
16654
|
+
var starData = data;
|
|
16655
|
+
var starAttribute = {
|
|
16656
|
+
type: ShapePrimitiveType.Star,
|
|
16657
|
+
pointCount: starData.pointCount,
|
|
16658
|
+
innerRadius: starData.innerRadius,
|
|
16659
|
+
outerRadius: starData.outerRadius,
|
|
16660
|
+
innerRoundness: starData.innerRoundness,
|
|
16661
|
+
outerRoundness: starData.outerRoundness,
|
|
16662
|
+
fill: starData.fill
|
|
16663
|
+
};
|
|
16664
|
+
this.shapeAttribute = starAttribute;
|
|
16665
|
+
break;
|
|
16666
|
+
}
|
|
16667
|
+
case ShapePrimitiveType.Polygon:
|
|
16668
|
+
{
|
|
16669
|
+
var polygonData = data;
|
|
16670
|
+
var polygonAttribute = {
|
|
16671
|
+
type: ShapePrimitiveType.Polygon,
|
|
16672
|
+
pointCount: polygonData.pointCount,
|
|
16673
|
+
radius: polygonData.radius,
|
|
16674
|
+
roundness: polygonData.roundness,
|
|
16675
|
+
fill: polygonData.fill
|
|
16676
|
+
};
|
|
16677
|
+
this.shapeAttribute = polygonAttribute;
|
|
16678
|
+
break;
|
|
16679
|
+
}
|
|
16680
|
+
}
|
|
16592
16681
|
var material = this.material;
|
|
16593
16682
|
//@ts-expect-error // TODO 新版蒙版上线后重构
|
|
16594
16683
|
material.stencilRef = data.renderer.mask !== undefined ? [
|
|
@@ -16600,10 +16689,10 @@ var ShapeComponent = /*#__PURE__*/ function(MeshComponent) {
|
|
|
16600
16689
|
};
|
|
16601
16690
|
_create_class(ShapeComponent, [
|
|
16602
16691
|
{
|
|
16603
|
-
key: "
|
|
16692
|
+
key: "shape",
|
|
16604
16693
|
get: function get() {
|
|
16605
16694
|
this.shapeDirty = true;
|
|
16606
|
-
return this.
|
|
16695
|
+
return this.shapeAttribute;
|
|
16607
16696
|
}
|
|
16608
16697
|
}
|
|
16609
16698
|
]);
|
|
@@ -21008,19 +21097,17 @@ var ParticleSystem = /*#__PURE__*/ function(Component) {
|
|
|
21008
21097
|
rotation: rotation,
|
|
21009
21098
|
path: path
|
|
21010
21099
|
};
|
|
21011
|
-
var parentTransform = this.transform.parentTransform;
|
|
21012
21100
|
var selfPos = position.clone();
|
|
21013
21101
|
if (path) {
|
|
21014
21102
|
selfPos.add(path.getValue(0));
|
|
21015
21103
|
}
|
|
21016
21104
|
this.transform.setPosition(selfPos.x, selfPos.y, selfPos.z);
|
|
21017
|
-
if (this.options.particleFollowParent
|
|
21018
|
-
var worldMatrix =
|
|
21105
|
+
if (this.options.particleFollowParent) {
|
|
21106
|
+
var worldMatrix = this.transform.getWorldMatrix();
|
|
21019
21107
|
this.renderer.updateWorldMatrix(worldMatrix);
|
|
21020
21108
|
}
|
|
21021
21109
|
};
|
|
21022
21110
|
_proto.updateEmitterTransform = function updateEmitterTransform(time) {
|
|
21023
|
-
var parentTransform = this.transform.parentTransform;
|
|
21024
21111
|
var _this_basicTransform = this.basicTransform, path = _this_basicTransform.path, position = _this_basicTransform.position;
|
|
21025
21112
|
var selfPos = position.clone();
|
|
21026
21113
|
if (path) {
|
|
@@ -21028,8 +21115,8 @@ var ParticleSystem = /*#__PURE__*/ function(Component) {
|
|
|
21028
21115
|
selfPos.add(path.getValue(time / duration));
|
|
21029
21116
|
}
|
|
21030
21117
|
this.transform.setPosition(selfPos.x, selfPos.y, selfPos.z);
|
|
21031
|
-
if (this.options.particleFollowParent
|
|
21032
|
-
var worldMatrix =
|
|
21118
|
+
if (this.options.particleFollowParent) {
|
|
21119
|
+
var worldMatrix = this.transform.getWorldMatrix();
|
|
21033
21120
|
this.renderer.updateWorldMatrix(worldMatrix);
|
|
21034
21121
|
}
|
|
21035
21122
|
};
|
|
@@ -21417,7 +21504,7 @@ var ParticleSystem = /*#__PURE__*/ function(Component) {
|
|
|
21417
21504
|
var lifetime = this.lifetime;
|
|
21418
21505
|
var shape = this.shape;
|
|
21419
21506
|
var speed = options.startSpeed.getValue(lifetime);
|
|
21420
|
-
var matrix4 = options.particleFollowParent ?
|
|
21507
|
+
var matrix4 = options.particleFollowParent ? Matrix4.IDENTITY : this.transform.getWorldMatrix();
|
|
21421
21508
|
var pointPosition = data.position;
|
|
21422
21509
|
// 粒子的位置受发射器的位置影响,自身的旋转和缩放不受影响
|
|
21423
21510
|
var position = matrix4.transformPoint(pointPosition, new Vector3());
|
|
@@ -24239,7 +24326,7 @@ var SerializationHelper = /*#__PURE__*/ function() {
|
|
|
24239
24326
|
this.timelinePlayable.setTime(time);
|
|
24240
24327
|
// The properties of the object may change dynamically,
|
|
24241
24328
|
// so reset the track binding to avoid invalidation of the previously obtained binding object.
|
|
24242
|
-
|
|
24329
|
+
this.resolveBindings();
|
|
24243
24330
|
this.timelinePlayable.evaluate();
|
|
24244
24331
|
this.graph.evaluate(dt);
|
|
24245
24332
|
};
|
|
@@ -24478,7 +24565,10 @@ var Vector4PropertyMixerPlayable = /*#__PURE__*/ function(PropertyMixerPlayable)
|
|
|
24478
24565
|
}
|
|
24479
24566
|
var _proto = Vector4PropertyMixerPlayable.prototype;
|
|
24480
24567
|
_proto.resetPropertyValue = function resetPropertyValue() {
|
|
24481
|
-
this.propertyValue.
|
|
24568
|
+
this.propertyValue.x = 0;
|
|
24569
|
+
this.propertyValue.y = 0;
|
|
24570
|
+
this.propertyValue.z = 0;
|
|
24571
|
+
this.propertyValue.w = 0;
|
|
24482
24572
|
};
|
|
24483
24573
|
_proto.addWeightedValue = function addWeightedValue(curveValue, weight) {
|
|
24484
24574
|
var result = this.propertyValue;
|
|
@@ -24496,7 +24586,8 @@ var Vector2PropertyMixerPlayable = /*#__PURE__*/ function(PropertyMixerPlayable)
|
|
|
24496
24586
|
}
|
|
24497
24587
|
var _proto = Vector2PropertyMixerPlayable.prototype;
|
|
24498
24588
|
_proto.resetPropertyValue = function resetPropertyValue() {
|
|
24499
|
-
this.propertyValue.
|
|
24589
|
+
this.propertyValue.x = 0;
|
|
24590
|
+
this.propertyValue.y = 0;
|
|
24500
24591
|
};
|
|
24501
24592
|
_proto.addWeightedValue = function addWeightedValue(curveValue, weight) {
|
|
24502
24593
|
var result = this.propertyValue;
|
|
@@ -31983,7 +32074,7 @@ registerPlugin("sprite", SpriteLoader, VFXItem, true);
|
|
|
31983
32074
|
registerPlugin("particle", ParticleLoader, VFXItem, true);
|
|
31984
32075
|
registerPlugin("cal", CalculateLoader, VFXItem, true);
|
|
31985
32076
|
registerPlugin("interact", InteractLoader, VFXItem, true);
|
|
31986
|
-
var version = "2.3.0-alpha.
|
|
32077
|
+
var version = "2.3.0-alpha.1";
|
|
31987
32078
|
logger.info("Core version: " + version + ".");
|
|
31988
32079
|
|
|
31989
32080
|
export { AbstractPlugin, ActivationPlayable, ActivationPlayableAsset, ActivationTrack, AnimationClip, AnimationClipPlayable, Asset, AssetLoader, AssetManager, BYTES_TYPE_MAP, BaseRenderComponent, Behaviour, BezierCurve, BezierCurvePath, BezierCurveQuat, BinaryAsset, COMPRESSED_TEXTURE, COPY_FRAGMENT_SHADER, COPY_MESH_SHADER_ID, COPY_VERTEX_SHADER, CalculateLoader, Camera, CameraController, CameraVFXItemLoader, ColorCurve, ColorPropertyPlayableAsset, ColorPropertyTrack, Component, Composition, CompositionComponent, CompositionSourceManager, DEFAULT_FONTS, DEFAULT_FPS, Database, DestroyOptions, Downloader, EFFECTS_COPY_MESH_NAME, EVENT_TYPE_CLICK, EVENT_TYPE_TOUCH_END, EVENT_TYPE_TOUCH_MOVE, EVENT_TYPE_TOUCH_START, EffectComponent, EffectsObject, EffectsPackage, Engine, EventEmitter, EventSystem, Fake3DAnimationMode, Fake3DComponent, FilterMode, Float16ArrayWrapper, FloatPropertyPlayableAsset, FloatPropertyTrack, Framebuffer, GLSLVersion, GPUCapability, Geometry, GlobalUniforms, GradientValue, HELP_LINK, HitTestType, InteractComponent, InteractLoader, InteractMesh, Item, KTXTexture, LineSegments, LinearValue, Material, MaterialDataBlock, MaterialRenderType, MaterialTrack, Mesh, MeshCollider, ObjectBindingTrack, OrderType, PLAYER_OPTIONS_ENV_EDITOR, POST_PROCESS_SETTINGS, ParticleBehaviourPlayable, ParticleBehaviourPlayableAsset, ParticleLoader, ParticleMesh, ParticleSystem, ParticleSystemRenderer, ParticleTrack, PassTextureCache, PathSegments, PluginSystem, PostProcessVolume, PropertyTrack, RENDER_PASS_NAME_PREFIX, RENDER_PREFER_LOOKUP_TEXTURE, RUNTIME_ENV, RandomSetValue, RandomValue, RandomVectorValue, RenderFrame, RenderPass, RenderPassAttachmentStorageType, RenderPassDestroyAttachmentType, RenderPassPriorityNormal, RenderPassPriorityPostprocess, RenderPassPriorityPrepare, RenderTargetHandle, RenderTextureFormat, Renderbuffer, Renderer, RendererComponent, RuntimeClip, SEMANTIC_MAIN_PRE_COLOR_ATTACHMENT_0, SEMANTIC_MAIN_PRE_COLOR_ATTACHMENT_SIZE_0, SEMANTIC_PRE_COLOR_ATTACHMENT_0, SEMANTIC_PRE_COLOR_ATTACHMENT_SIZE_0, SPRITE_VERTEX_STRIDE, Scene, SemanticMap, SerializationHelper, Shader, ShaderCompileResultStatus, ShaderFactory, ShaderType, ShaderVariant, ShapeComponent, SpriteColorPlayableAsset, SpriteColorTrack, SpriteComponent, SpriteLoader, StaticValue, SubCompositionPlayableAsset, SubCompositionTrack, TEMPLATE_USE_OFFSCREEN_CANVAS, TextComponent, TextComponentBase, TextLayout, TextLoader, TextStyle, Texture, TextureFactory, TextureLoadAction, TextureSourceType, TextureStoreAction, Ticker, TimelineAsset, TimelineClip, TimelinePlayable, TrackAsset, TrackSortWrapper, TrackType, Transform, TransformAnimationPlayable, TransformPlayableAsset, TransformTrack, VFXItem, ValueGetter, Vector2Curve, Vector2PropertyPlayableAsset, Vector2PropertyTrack, Vector4Curve, Vector4PropertyPlayableAsset, Vector4PropertyTrack, addByOrder, addItem, addItemWithOrder, applyMixins, assertExist, asserts, base64ToFile, blend, calculateTranslation, canvasPool, colorGradingFrag, colorStopsFromGradient, colorToArr$1 as colorToArr, combineImageTemplate, createCopyShader, createGLContext, createKeyFrameMeta, createShape, createValueGetter, decimalEqual, defaultPlugins, deserializeMipmapTexture, earcut, effectsClass, effectsClassStore, enlargeBuffer, ensureFixedNumber, ensureVec3, findPreviousRenderPass, gaussianDown_frag as gaussianDownFrag, gaussianDownHFrag, gaussianDownVFrag, gaussianUpFrag, generateEmptyTypedArray, generateGUID, generateHalfFloatTexture, generateTransparentTexture, generateWhiteTexture, getBackgroundImage, getColorFromGradientStops, getConfig, getDefaultTextureFactory, getGeometryByShape, getGeometryTriangles, getImageItemRenderInfo, getKTXTextureOptions, getKeyFrameMetaByRawValue, getMergedStore, getParticleMeshShader, getPixelRatio, getPreMultiAlpha, getStandardComposition, getStandardImage, getStandardItem, getStandardJSON, getTextureSize, glContext, glType2VertexFormatType, gpuTimer, imageDataFromColor, imageDataFromGradient, initErrors, initGLContext, integrate, interpolateColor, isAlipayMiniApp, isAndroid, isArray, isCanvas, isFunction, isIOS, isIOSByUA, isMiniProgram, isObject, isSimulatorCellPhone, isString, isUniformStruct, isUniformStructArray, isValidFontFamily, isWebGL2, isWechatMiniApp, itemFrag, itemFrameFrag, itemVert, loadAVIFOptional, loadBinary, loadBlob, loadImage, loadMedia, loadVideo, loadWebPOptional, logger, index as math, maxSpriteMeshItemCount, modifyMaxKeyframeShader, nearestPowerOfTwo, noop, normalizeColor, numberToFix, parsePercent$1 as parsePercent, particleFrag, particleOriginTranslateMap$1 as particleOriginTranslateMap, particleUniformTypeMap, particleVert, passRenderLevel, pluginLoaderMap, randomInRange, registerPlugin, removeItem, rotateVec2, screenMeshVert, serialize, setBlendMode, setConfig, setDefaultTextureFactory, setMaskMode, setMaxSpriteMeshItemCount, setRayFromCamera, setSideMode, setSpriteMeshMaxItemCountByGPU, sortByOrder, index$1 as spec, spriteMeshShaderFromFilter, spriteMeshShaderFromRenderInfo, spriteMeshShaderIdFromRenderInfo, thresholdFrag, throwDestroyedError, trailVert, translatePoint, trianglesFromRect, unregisterPlugin, valIfUndefined, value, valueDefine, vecFill, vecMulCombine, version, vertexFormatType2GLType };
|