@galacean/effects-threejs 2.1.0-alpha.3 → 2.1.0-alpha.5
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/index.js +64 -34
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +2 -2
- package/dist/index.min.js.map +1 -1
- package/dist/index.mjs +64 -34
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Description: Galacean Effects runtime threejs plugin for the web
|
|
4
4
|
* Author: Ant Group CO., Ltd.
|
|
5
5
|
* Contributors: 燃然,飂兮,十弦,云垣,茂安,意绮
|
|
6
|
-
* Version: v2.1.0-alpha.
|
|
6
|
+
* Version: v2.1.0-alpha.5
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
'use strict';
|
|
@@ -4277,6 +4277,9 @@ var MaterialBlending;
|
|
|
4277
4277
|
/**
|
|
4278
4278
|
* 自发光
|
|
4279
4279
|
*/ RenderMode3D["emissive"] = "emissive";
|
|
4280
|
+
/**
|
|
4281
|
+
* 漫反射
|
|
4282
|
+
*/ RenderMode3D["diffuse"] = "diffuse";
|
|
4280
4283
|
})(RenderMode3D || (RenderMode3D = {}));
|
|
4281
4284
|
|
|
4282
4285
|
var TextOverflow;
|
|
@@ -10329,10 +10332,11 @@ var BezierCurve = /*#__PURE__*/ function(ValueGetter) {
|
|
|
10329
10332
|
timeEnd: Number(e.x)
|
|
10330
10333
|
};
|
|
10331
10334
|
}
|
|
10335
|
+
this.keyTimeData = Object.keys(this.curveMap);
|
|
10332
10336
|
};
|
|
10333
10337
|
_proto.getValue = function getValue(time) {
|
|
10334
10338
|
var result = 0;
|
|
10335
|
-
var keyTimeData =
|
|
10339
|
+
var keyTimeData = this.keyTimeData;
|
|
10336
10340
|
var keyTimeStart = this.curveMap[keyTimeData[0]].timeStart;
|
|
10337
10341
|
var keyTimeEnd = this.curveMap[keyTimeData[keyTimeData.length - 1]].timeEnd;
|
|
10338
10342
|
// const keyTimeStart = Number(keyTimeData[0].split('&')[0]);
|
|
@@ -11609,7 +11613,7 @@ var valueDefine = "#ifdef SHADER_VERTEX\n#define CURVE_VALUE_TEXTURE uVCurveValu
|
|
|
11609
11613
|
|
|
11610
11614
|
var screenMeshVert = "precision highp float;attribute vec2 aPos;varying vec2 uv;void main(){gl_Position=vec4(aPos,0.,1.0);uv=(aPos+vec2(1.0))/2.;}";
|
|
11611
11615
|
|
|
11612
|
-
var colorGradingFrag = "precision highp float;\n#define HALF_MAX 60000.0\n#define ACEScc_MIDGRAY 0.4135884\nvarying vec2 uv;uniform sampler2D _GaussianTex;uniform sampler2D _SceneTex;uniform float _BloomIntensity;uniform float _Brightness;uniform float _Saturation;uniform float _Contrast;uniform bool _UseBloom;uniform bool _UseToneMapping;uniform vec3 _VignetteColor;uniform vec2 _VignetteCenter;uniform float _VignetteIntensity;uniform float _VignetteSmoothness;uniform float _VignetteRoundness;mat3 LinearToACES=mat3(0.59719,0.07600,0.02840,0.35458,0.90834,0.13383,0.04823,0.01566,0.83777);mat3 ACESToLinear=mat3(1.60475,-0.10208,-0.00327,-0.53108,1.10813,-0.07276,-0.07367,-0.00605,1.07602);float log10(float x){return log(x)/log(10.0);}vec3 log10(vec3 v){return vec3(log10(v.x),log10(v.y),log10(v.z));}vec3 LinearToLogC(vec3 x){return 0.244161*log10(5.555556*x+0.047996)+0.386036;}vec3 LogCToLinear(vec3 x){return(pow(vec3(10.0),(x-0.386036)/0.244161)-0.047996)/5.555556;}vec3 rrt_and_odt_fit(vec3 col){vec3 a=col*(col+0.0245786)-0.000090537;vec3 b=col*(0.983729*col+0.4329510)+0.238081;return a/b;}vec3 ACESToneMapping(vec3 col){vec3 aces=LinearToACES*col;aces=rrt_and_odt_fit(aces);col=ACESToLinear*aces;return col;}vec3 LinearToSrgb(vec3 c){return mix(1.055*pow(c,vec3(1./2.4))-0.055,12.92*c,step(c,vec3(0.0031308)));}vec3 GammaCorrection(vec3 c){return pow(c,vec3(1.0/2.2));}vec3 ApplyVignette(vec3 inputColor,vec2 uv,vec2 center,float intensity,float roundness,float smoothness,vec3 color){vec2 dist=abs(uv-center)*intensity;dist.x*=roundness;float vfactor=pow(clamp((1.0-dot(dist,dist)),0.0,1.0),smoothness);return inputColor*mix(color,vec3(1.0),vfactor);}void main(){vec4 hdrColor=texture2D(_SceneTex,uv);hdrColor
|
|
11616
|
+
var colorGradingFrag = "precision highp float;\n#define HALF_MAX 60000.0\n#define ACEScc_MIDGRAY 0.4135884\nvarying vec2 uv;uniform sampler2D _GaussianTex;uniform sampler2D _SceneTex;uniform float _BloomIntensity;uniform float _Brightness;uniform float _Saturation;uniform float _Contrast;uniform bool _UseBloom;uniform bool _UseToneMapping;uniform vec3 _VignetteColor;uniform vec2 _VignetteCenter;uniform float _VignetteIntensity;uniform float _VignetteSmoothness;uniform float _VignetteRoundness;mat3 LinearToACES=mat3(0.59719,0.07600,0.02840,0.35458,0.90834,0.13383,0.04823,0.01566,0.83777);mat3 ACESToLinear=mat3(1.60475,-0.10208,-0.00327,-0.53108,1.10813,-0.07276,-0.07367,-0.00605,1.07602);float log10(float x){return log(x)/log(10.0);}vec3 log10(vec3 v){return vec3(log10(v.x),log10(v.y),log10(v.z));}vec3 LinearToLogC(vec3 x){return 0.244161*log10(5.555556*x+0.047996)+0.386036;}vec3 LogCToLinear(vec3 x){return(pow(vec3(10.0),(x-0.386036)/0.244161)-0.047996)/5.555556;}vec3 rrt_and_odt_fit(vec3 col){vec3 a=col*(col+0.0245786)-0.000090537;vec3 b=col*(0.983729*col+0.4329510)+0.238081;return a/b;}vec3 ACESToneMapping(vec3 col){vec3 aces=LinearToACES*col;aces=rrt_and_odt_fit(aces);col=ACESToLinear*aces;return col;}vec3 LinearToSrgb(vec3 c){return mix(1.055*pow(c,vec3(1./2.4))-0.055,12.92*c,step(c,vec3(0.0031308)));}vec3 GammaCorrection(vec3 c){return pow(c,vec3(1.0/2.2));}vec3 ApplyVignette(vec3 inputColor,vec2 uv,vec2 center,float intensity,float roundness,float smoothness,vec3 color){vec2 dist=abs(uv-center)*intensity;dist.x*=roundness;float vfactor=pow(clamp((1.0-dot(dist,dist)),0.0,1.0),smoothness);return inputColor*mix(color,vec3(1.0),vfactor);}void main(){vec4 hdrColor=texture2D(_SceneTex,uv);hdrColor.rgb=pow(hdrColor.rgb,vec3(2.2));vec3 finalColor=hdrColor.rgb;if(_UseBloom){vec4 bloomColor=texture2D(_GaussianTex,uv);bloomColor.rgb*=_BloomIntensity;finalColor+=bloomColor.rgb;}if(_VignetteIntensity>0.0){finalColor=ApplyVignette(finalColor,uv,_VignetteCenter,_VignetteIntensity,_VignetteRoundness,_VignetteSmoothness,_VignetteColor);}finalColor=finalColor*_Brightness;vec3 colorLog=LinearToLogC(finalColor);colorLog=(colorLog-ACEScc_MIDGRAY)*_Contrast+ACEScc_MIDGRAY;finalColor=LogCToLinear(colorLog);finalColor=max(finalColor,0.0);float luminance=0.2125*finalColor.r+0.7154*finalColor.g+0.0721*finalColor.b;vec3 luminanceColor=vec3(luminance,luminance,luminance);finalColor=(finalColor-luminanceColor)*_Saturation+luminanceColor;finalColor=max(finalColor,0.0);if(_UseToneMapping){finalColor=max(vec3(0.0),ACESToneMapping(finalColor));}float alpha=min(hdrColor.a,1.0);gl_FragColor=vec4(clamp(GammaCorrection(finalColor),0.0,1.0),alpha);}";
|
|
11613
11617
|
|
|
11614
11618
|
var gaussianDown_frag = "precision highp float;varying vec2 uv;uniform sampler2D _MainTex;uniform vec2 _TextureSize;float GaussWeight2D(float x,float y,float sigma){float PI=3.14159265358;float E=2.71828182846;float sigma_2=pow(sigma,2.0);float a=-(x*x+y*y)/(2.0*sigma_2);return pow(E,a)/(2.0*PI*sigma_2);}vec3 GaussNxN(sampler2D tex,vec2 uv,vec2 stride,float sigma){vec3 color=vec3(0.,0.,0.);const int r=5/2;float weight=0.0;for(int i=-r;i<=r;i++){for(int j=-r;j<=r;j++){float w=GaussWeight2D(float(i),float(j),sigma);vec2 coord=uv+vec2(i,j)*stride;color+=texture2D(tex,coord).rgb*w;weight+=w;}}color/=weight;return color;}void main(){vec4 mainColor=texture2D(_MainTex,uv);vec3 color=mainColor.rgb;color=GaussNxN(_MainTex,uv,1.0/_TextureSize,1.0);gl_FragColor=vec4(color,1.0);}";
|
|
11615
11619
|
|
|
@@ -18096,10 +18100,10 @@ var ParticleMesh = /*#__PURE__*/ function() {
|
|
|
18096
18100
|
};
|
|
18097
18101
|
_proto.onUpdate = function onUpdate(dt) {
|
|
18098
18102
|
var aPosArray = this.geometry.getAttributeData("aPos"); // vector3
|
|
18099
|
-
var
|
|
18100
|
-
this.applyTranslation(
|
|
18101
|
-
this.applyRotation(
|
|
18102
|
-
this.applyLinearMove(
|
|
18103
|
+
var vertexCount = Math.ceil(aPosArray.length / 12);
|
|
18104
|
+
this.applyTranslation(vertexCount, dt);
|
|
18105
|
+
this.applyRotation(vertexCount, dt);
|
|
18106
|
+
this.applyLinearMove(vertexCount, dt);
|
|
18103
18107
|
};
|
|
18104
18108
|
_proto.minusTime = function minusTime(time) {
|
|
18105
18109
|
var aOffset = this.geometry.getAttributeData("aOffset");
|
|
@@ -18133,7 +18137,9 @@ var ParticleMesh = /*#__PURE__*/ function() {
|
|
|
18133
18137
|
aPos: new Float32Array(48),
|
|
18134
18138
|
aRot: new Float32Array(32),
|
|
18135
18139
|
aOffset: new Float32Array(16),
|
|
18136
|
-
aTranslation: new Float32Array(12)
|
|
18140
|
+
aTranslation: new Float32Array(12),
|
|
18141
|
+
aLinearMove: new Float32Array(12),
|
|
18142
|
+
aRotation0: new Float32Array(36)
|
|
18137
18143
|
};
|
|
18138
18144
|
var useSprite = this.useSprite;
|
|
18139
18145
|
if (useSprite) {
|
|
@@ -18242,13 +18248,13 @@ var ParticleMesh = /*#__PURE__*/ function() {
|
|
|
18242
18248
|
geometry.setDrawCount(this.particleCount * 6);
|
|
18243
18249
|
}
|
|
18244
18250
|
};
|
|
18245
|
-
_proto.applyTranslation = function applyTranslation(
|
|
18251
|
+
_proto.applyTranslation = function applyTranslation(vertexCount, deltaTime) {
|
|
18246
18252
|
var localTime = this.time;
|
|
18247
18253
|
var aTranslationArray = this.geometry.getAttributeData("aTranslation");
|
|
18248
18254
|
var aVelArray = this.geometry.getAttributeData("aVel"); // vector3
|
|
18249
18255
|
var aOffsetArray = this.geometry.getAttributeData("aOffset");
|
|
18250
|
-
if (aTranslationArray.length <
|
|
18251
|
-
aTranslationArray = this.expandArray(aTranslationArray,
|
|
18256
|
+
if (aTranslationArray.length < vertexCount * 3) {
|
|
18257
|
+
aTranslationArray = this.expandArray(aTranslationArray, vertexCount * 3);
|
|
18252
18258
|
}
|
|
18253
18259
|
// const velocity = this.cachedVelocity;
|
|
18254
18260
|
var velocityX = 0;
|
|
@@ -18256,7 +18262,7 @@ var ParticleMesh = /*#__PURE__*/ function() {
|
|
|
18256
18262
|
var velocityZ = 0;
|
|
18257
18263
|
var uAcceleration = this.mesh.material.getVector4("uAcceleration");
|
|
18258
18264
|
var uGravityModifierValue = this.mesh.material.getVector4("uGravityModifierValue");
|
|
18259
|
-
for(var i = 0; i <
|
|
18265
|
+
for(var i = 0; i < vertexCount; i += 4){
|
|
18260
18266
|
var velOffset = i * 12 + 3;
|
|
18261
18267
|
velocityX = aVelArray[velOffset];
|
|
18262
18268
|
velocityY = aVelArray[velOffset + 1];
|
|
@@ -18288,24 +18294,36 @@ var ParticleMesh = /*#__PURE__*/ function() {
|
|
|
18288
18294
|
var aTranslationOffset = i * 3;
|
|
18289
18295
|
if (aOffsetArray[i * 4 + 2] < localTime) {
|
|
18290
18296
|
// const translation = velocity.multiply(deltaTime / 1000);
|
|
18291
|
-
|
|
18292
|
-
|
|
18293
|
-
|
|
18297
|
+
var aTranslationX = velocityX * (deltaTime / 1000);
|
|
18298
|
+
var aTranslationY = velocityY * (deltaTime / 1000);
|
|
18299
|
+
var aTranslationZ = velocityZ * (deltaTime / 1000);
|
|
18300
|
+
aTranslationArray[aTranslationOffset] += aTranslationX;
|
|
18301
|
+
aTranslationArray[aTranslationOffset + 1] += aTranslationY;
|
|
18302
|
+
aTranslationArray[aTranslationOffset + 2] += aTranslationZ;
|
|
18303
|
+
aTranslationArray[aTranslationOffset + 3] += aTranslationX;
|
|
18304
|
+
aTranslationArray[aTranslationOffset + 4] += aTranslationY;
|
|
18305
|
+
aTranslationArray[aTranslationOffset + 5] += aTranslationZ;
|
|
18306
|
+
aTranslationArray[aTranslationOffset + 6] += aTranslationX;
|
|
18307
|
+
aTranslationArray[aTranslationOffset + 7] += aTranslationY;
|
|
18308
|
+
aTranslationArray[aTranslationOffset + 8] += aTranslationZ;
|
|
18309
|
+
aTranslationArray[aTranslationOffset + 9] += aTranslationX;
|
|
18310
|
+
aTranslationArray[aTranslationOffset + 10] += aTranslationY;
|
|
18311
|
+
aTranslationArray[aTranslationOffset + 11] += aTranslationZ;
|
|
18294
18312
|
}
|
|
18295
18313
|
}
|
|
18296
18314
|
this.geometry.setAttributeData("aTranslation", aTranslationArray);
|
|
18297
18315
|
};
|
|
18298
|
-
_proto.applyRotation = function applyRotation(
|
|
18316
|
+
_proto.applyRotation = function applyRotation(vertexCount, deltaTime) {
|
|
18299
18317
|
var aRotationArray = this.geometry.getAttributeData("aRotation0");
|
|
18300
18318
|
var aOffsetArray = this.geometry.getAttributeData("aOffset");
|
|
18301
18319
|
var aRotArray = this.geometry.getAttributeData("aRot"); // vector3
|
|
18302
18320
|
var aSeedArray = this.geometry.getAttributeData("aSeed"); // float
|
|
18303
18321
|
var localTime = this.time;
|
|
18304
18322
|
var aRotationMatrix = this.cachedRotationMatrix;
|
|
18305
|
-
if (aRotationArray.length <
|
|
18306
|
-
aRotationArray = this.expandArray(aRotationArray,
|
|
18323
|
+
if (aRotationArray.length < vertexCount * 9) {
|
|
18324
|
+
aRotationArray = this.expandArray(aRotationArray, vertexCount * 9);
|
|
18307
18325
|
}
|
|
18308
|
-
for(var i = 0; i <
|
|
18326
|
+
for(var i = 0; i < vertexCount; i += 4){
|
|
18309
18327
|
var time = localTime - aOffsetArray[i * 4 + 2];
|
|
18310
18328
|
var duration = aOffsetArray[i * 4 + 3];
|
|
18311
18329
|
var life = clamp$1(time / duration, 0.0, 1.0);
|
|
@@ -18383,20 +18401,25 @@ var ParticleMesh = /*#__PURE__*/ function() {
|
|
|
18383
18401
|
var aRotationOffset = i * 9;
|
|
18384
18402
|
var matrixArray = aRotationMatrix.elements;
|
|
18385
18403
|
aRotationArray.set(matrixArray, aRotationOffset);
|
|
18404
|
+
if (i + 4 <= vertexCount) {
|
|
18405
|
+
aRotationArray.set(matrixArray, aRotationOffset + 9);
|
|
18406
|
+
aRotationArray.set(matrixArray, aRotationOffset + 18);
|
|
18407
|
+
aRotationArray.set(matrixArray, aRotationOffset + 27);
|
|
18408
|
+
}
|
|
18386
18409
|
}
|
|
18387
18410
|
this.geometry.setAttributeData("aRotation0", aRotationArray);
|
|
18388
18411
|
};
|
|
18389
|
-
_proto.applyLinearMove = function applyLinearMove(
|
|
18412
|
+
_proto.applyLinearMove = function applyLinearMove(vertexCount, deltaTime) {
|
|
18390
18413
|
var aLinearMoveArray = this.geometry.getAttributeData("aLinearMove");
|
|
18391
18414
|
var aOffsetArray = this.geometry.getAttributeData("aOffset");
|
|
18392
18415
|
var aSeedArray = this.geometry.getAttributeData("aSeed"); // float
|
|
18393
18416
|
var localTime = this.time;
|
|
18394
|
-
if (aLinearMoveArray.length <
|
|
18395
|
-
aLinearMoveArray = this.expandArray(aLinearMoveArray,
|
|
18417
|
+
if (aLinearMoveArray.length < vertexCount * 3) {
|
|
18418
|
+
aLinearMoveArray = this.expandArray(aLinearMoveArray, vertexCount * 3);
|
|
18396
18419
|
}
|
|
18397
18420
|
var linearMove = this.cachedLinearMove;
|
|
18398
18421
|
if (this.linearVelOverLifetime && this.linearVelOverLifetime.enabled) {
|
|
18399
|
-
for(var i = 0; i <
|
|
18422
|
+
for(var i = 0; i < vertexCount; i += 4){
|
|
18400
18423
|
var time = localTime - aOffsetArray[i * 4 + 2];
|
|
18401
18424
|
var duration = aOffsetArray[i * 4 + 3];
|
|
18402
18425
|
// const life = math.clamp(time / duration, 0.0, 1.0);
|
|
@@ -18453,6 +18476,15 @@ var ParticleMesh = /*#__PURE__*/ function() {
|
|
|
18453
18476
|
aLinearMoveArray[aLinearMoveOffset] = linearMove.x;
|
|
18454
18477
|
aLinearMoveArray[aLinearMoveOffset + 1] = linearMove.y;
|
|
18455
18478
|
aLinearMoveArray[aLinearMoveOffset + 2] = linearMove.z;
|
|
18479
|
+
aLinearMoveArray[aLinearMoveOffset + 3] = linearMove.x;
|
|
18480
|
+
aLinearMoveArray[aLinearMoveOffset + 4] = linearMove.y;
|
|
18481
|
+
aLinearMoveArray[aLinearMoveOffset + 5] = linearMove.z;
|
|
18482
|
+
aLinearMoveArray[aLinearMoveOffset + 6] = linearMove.x;
|
|
18483
|
+
aLinearMoveArray[aLinearMoveOffset + 7] = linearMove.y;
|
|
18484
|
+
aLinearMoveArray[aLinearMoveOffset + 8] = linearMove.z;
|
|
18485
|
+
aLinearMoveArray[aLinearMoveOffset + 9] = linearMove.x;
|
|
18486
|
+
aLinearMoveArray[aLinearMoveOffset + 10] = linearMove.y;
|
|
18487
|
+
aLinearMoveArray[aLinearMoveOffset + 11] = linearMove.z;
|
|
18456
18488
|
}
|
|
18457
18489
|
}
|
|
18458
18490
|
this.geometry.setAttributeData("aLinearMove", aLinearMoveArray);
|
|
@@ -21205,6 +21237,7 @@ exports.VFXItem = /*#__PURE__*/ function(EffectsObject) {
|
|
|
21205
21237
|
var component = _step.value;
|
|
21206
21238
|
if (component.enabled && !component.isStartCalled) {
|
|
21207
21239
|
component.onStart();
|
|
21240
|
+
component.isStartCalled = true;
|
|
21208
21241
|
}
|
|
21209
21242
|
}
|
|
21210
21243
|
for(var _iterator1 = _create_for_of_iterator_helper_loose(this.components), _step1; !(_step1 = _iterator1()).done;){
|
|
@@ -25428,7 +25461,6 @@ var LateUpdateTickData = /*#__PURE__*/ function(TickData) {
|
|
|
25428
25461
|
}));
|
|
25429
25462
|
_this.url = scene.url;
|
|
25430
25463
|
_this.assigned = true;
|
|
25431
|
-
_this.globalTime = 0;
|
|
25432
25464
|
_this.interactive = true;
|
|
25433
25465
|
_this.handleItemMessage = handleItemMessage;
|
|
25434
25466
|
_this.createRenderFrame();
|
|
@@ -25591,7 +25623,6 @@ var LateUpdateTickData = /*#__PURE__*/ function(TickData) {
|
|
|
25591
25623
|
* 重置状态函数
|
|
25592
25624
|
*/ _proto.reset = function reset() {
|
|
25593
25625
|
this.rendererOptions = null;
|
|
25594
|
-
this.globalTime = 0;
|
|
25595
25626
|
this.rootItem.ended = false;
|
|
25596
25627
|
this.pluginSystem.resetComposition(this, this.renderFrame);
|
|
25597
25628
|
};
|
|
@@ -25629,9 +25660,8 @@ var LateUpdateTickData = /*#__PURE__*/ function(TickData) {
|
|
|
25629
25660
|
if (!this.assigned || this.paused) {
|
|
25630
25661
|
return;
|
|
25631
25662
|
}
|
|
25632
|
-
var
|
|
25633
|
-
this.
|
|
25634
|
-
this.updateRootComposition();
|
|
25663
|
+
var dt = this.getUpdateTime(deltaTime * this.speed);
|
|
25664
|
+
this.updateRootComposition(dt / 1000);
|
|
25635
25665
|
this.updateVideo();
|
|
25636
25666
|
// 更新 model-tree-plugin
|
|
25637
25667
|
this.updatePluginLoaders(deltaTime);
|
|
@@ -25640,8 +25670,8 @@ var LateUpdateTickData = /*#__PURE__*/ function(TickData) {
|
|
|
25640
25670
|
this.callAwake(this.rootItem);
|
|
25641
25671
|
this.rootItem.beginPlay();
|
|
25642
25672
|
}
|
|
25643
|
-
this.sceneTicking.update.tick(
|
|
25644
|
-
this.sceneTicking.lateUpdate.tick(
|
|
25673
|
+
this.sceneTicking.update.tick(dt);
|
|
25674
|
+
this.sceneTicking.lateUpdate.tick(dt);
|
|
25645
25675
|
this.updateCamera();
|
|
25646
25676
|
this.prepareRender();
|
|
25647
25677
|
if (this.shouldDispose()) {
|
|
@@ -25782,9 +25812,9 @@ var LateUpdateTickData = /*#__PURE__*/ function(TickData) {
|
|
|
25782
25812
|
};
|
|
25783
25813
|
/**
|
|
25784
25814
|
* 更新主合成组件
|
|
25785
|
-
*/ _proto.updateRootComposition = function updateRootComposition() {
|
|
25815
|
+
*/ _proto.updateRootComposition = function updateRootComposition(deltaTime) {
|
|
25786
25816
|
if (this.rootComposition.isActiveAndEnabled) {
|
|
25787
|
-
var localTime = this.toLocalTime(this.
|
|
25817
|
+
var localTime = this.toLocalTime(this.time + deltaTime);
|
|
25788
25818
|
this.rootComposition.time = localTime;
|
|
25789
25819
|
}
|
|
25790
25820
|
};
|
|
@@ -28127,7 +28157,7 @@ registerPlugin("sprite", SpriteLoader, exports.VFXItem, true);
|
|
|
28127
28157
|
registerPlugin("particle", ParticleLoader, exports.VFXItem, true);
|
|
28128
28158
|
registerPlugin("cal", CalculateLoader, exports.VFXItem, true);
|
|
28129
28159
|
registerPlugin("interact", InteractLoader, exports.VFXItem, true);
|
|
28130
|
-
var version$1 = "2.1.0-alpha.
|
|
28160
|
+
var version$1 = "2.1.0-alpha.5";
|
|
28131
28161
|
logger.info("Core version: " + version$1 + ".");
|
|
28132
28162
|
|
|
28133
28163
|
var _obj;
|
|
@@ -29808,7 +29838,7 @@ setMaxSpriteMeshItemCount(8);
|
|
|
29808
29838
|
*/ Mesh.create = function(engine, props) {
|
|
29809
29839
|
return new ThreeMesh(engine, props);
|
|
29810
29840
|
};
|
|
29811
|
-
var version = "2.1.0-alpha.
|
|
29841
|
+
var version = "2.1.0-alpha.5";
|
|
29812
29842
|
logger.info("THREEJS plugin version: " + version + ".");
|
|
29813
29843
|
|
|
29814
29844
|
exports.AbstractPlugin = AbstractPlugin;
|